Envía el correo de creación
curl --request POST \
--url https://backend.identifai.net/api/partner/send_creation_email \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--form id=123import requests
url = "https://backend.identifai.net/api/partner/send_creation_email"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--"
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('id', '123');
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
options.body = form;
fetch('https://backend.identifai.net/api/partner/send_creation_email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.identifai.net/api/partner/send_creation_email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.identifai.net/api/partner/send_creation_email"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.identifai.net/api/partner/send_creation_email")
.header("X-Api-Key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.identifai.net/api/partner/send_creation_email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"data": {
"id": 222,
"name": "User",
"email": "user@mail.com",
"email_verified_at": "2025-03-03T13:28:03.000000Z",
"address": null,
"zip": null,
"city": null,
"country": null,
"phone": null,
"contact": null,
"vat": null,
"created_at": "2025-03-03T13:28:03.000000Z",
"updated_at": "2025-03-12T09:32:43.000000Z",
"balance": 0,
"heuristic": "AverageExcludeObsolete",
"readonly": null,
"pricing": {
"id": 1,
"name": "TestB",
"sku": "testB"
},
"partner": {
"id": 221,
"name": "Partner",
"email": "partner@gmail.com",
"email_verified_at": "2025-03-03T11:22:49.000000Z",
"address": null,
"zip": null,
"city": null,
"country": null,
"phone": null,
"contact": null,
"vat": null,
"created_at": "2025-03-03T11:22:49.000000Z",
"updated_at": "2025-03-03T13:27:06.000000Z",
"balance": 0,
"heuristic": "Average",
"readonly": false,
"pricing": {
"id": 2,
"name": "TestAC",
"sku": "testAC"
},
"partner": null
}
}
}{
"error": "Too Many Attempts."
}Partner
Envía el correo de creación
Envía al usuario indicado un correo con un enlace para restablecer la contraseña o con las instrucciones para activar la cuenta.
Envía el correo de creación
curl --request POST \
--url https://backend.identifai.net/api/partner/send_creation_email \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--form id=123import requests
url = "https://backend.identifai.net/api/partner/send_creation_email"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--"
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('id', '123');
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
options.body = form;
fetch('https://backend.identifai.net/api/partner/send_creation_email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.identifai.net/api/partner/send_creation_email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.identifai.net/api/partner/send_creation_email"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.identifai.net/api/partner/send_creation_email")
.header("X-Api-Key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.identifai.net/api/partner/send_creation_email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n123\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"data": {
"id": 222,
"name": "User",
"email": "user@mail.com",
"email_verified_at": "2025-03-03T13:28:03.000000Z",
"address": null,
"zip": null,
"city": null,
"country": null,
"phone": null,
"contact": null,
"vat": null,
"created_at": "2025-03-03T13:28:03.000000Z",
"updated_at": "2025-03-12T09:32:43.000000Z",
"balance": 0,
"heuristic": "AverageExcludeObsolete",
"readonly": null,
"pricing": {
"id": 1,
"name": "TestB",
"sku": "testB"
},
"partner": {
"id": 221,
"name": "Partner",
"email": "partner@gmail.com",
"email_verified_at": "2025-03-03T11:22:49.000000Z",
"address": null,
"zip": null,
"city": null,
"country": null,
"phone": null,
"contact": null,
"vat": null,
"created_at": "2025-03-03T11:22:49.000000Z",
"updated_at": "2025-03-03T13:27:06.000000Z",
"balance": 0,
"heuristic": "Average",
"readonly": false,
"pricing": {
"id": 2,
"name": "TestAC",
"sku": "testAC"
},
"partner": null
}
}
}{
"error": "Too Many Attempts."
}Respuesta
Correo enviado correctamente al usuario indicado.