Enviar código al contacto
⚠️ Esta llamada es real: envía un código de verificación real al contacto del titular en ese canal (un mensaje de WhatsApp o un correo).
Envía un nuevo código en un canal obligatorio de la verificación actual y responde 200 con el estado. El nuevo código reemplaza al anterior. Sin cuerpo. Los primeros códigos los envía el propio POST /v1/phone-lines/verification: llama a este para un código que expiró (10 minutos), se bloqueó (5 intentos fallidos) o no llegó.
Como máximo un código por canal cada 60 segundos, contando el que envió el submit (429 CONTACT_CODE_COOLDOWN). Solo mientras la verificación esté en PENDING_CONTACT (409 VERIFICATION_WRONG_STATE después), y solo en un canal de requiredChannels (400 CONTACT_CODE_NOT_REQUIRED). 503 SUPPLIER_UNAVAILABLE: no se pudo poner el código en cola de envío; no cuenta para el tiempo de espera, intenta de nuevo. Sin Idempotency-Key: un envío está limitado por su tiempo de espera. Requiere una clave con alcance de tenant, como todo endpoint /v1/phone-lines (una clave con alcance de número recibe 403 NUMBER_SCOPE_NOT_ALLOWED). Permiso phone_lines:purchase, el mismo que para comprar: con un token OAuth/MCP solo el OWNER del workspace puede llamarlo (403 PERMISSION_DENIED en otro caso). Es la misma verificación que la del panel (Líneas telefónicas → Comprar líneas telefónicas): uses la que uses, la otra ve el resultado. La respuesta es el objeto de estado de la verificación, enviado con Cache-Control: no-store; el número del documento y los contactos vuelven enmascarados.
curl --request POST \
--url https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send', 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://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send"
req, _ := http.NewRequest("POST", url, nil)
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://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "PENDING_CONTACT",
"canPurchase": false,
"verification": {
"id": "cmg5k0v3r0000vf8example7k",
"documentType": "CNPJ",
"documentNumber": "**.***.333/0001-**",
"legalName": "ACME LTDA",
"contact": {
"email": "a***@example.com",
"whatsapp": "+5511****0000",
"requiredChannels": [
"WHATSAPP",
"EMAIL"
],
"confirmedChannels": [
"WHATSAPP"
],
"pendingChannels": [
"EMAIL"
]
},
"document": {
"status": "RECEIVED"
},
"reviewReason": null,
"reviewNote": null,
"createdAt": "2026-10-01T13:55:02.000Z",
"updatedAt": "2026-10-01T13:56:40.000Z"
}
}Parámetros de ruta
Respuesta
Nuevo código enviado; el estado de la verificación
NONE (nunca iniciada), PENDING_CONTACT (esperando los códigos de contacto y, si document.status lo indica, un documento mejor), IN_REVIEW (terminada, esperando a una persona; compra permitida), APPROVED (verificada; compra permitida), NEEDS_DOCUMENT (el revisor pidió otro documento) o REJECTED (definitiva; habla con soporte). El webhook phone_line.verification_updated usa los mismos valores para los últimos cuatro.
NONE, PENDING_CONTACT, IN_REVIEW, APPROVED, NEEDS_DOCUMENT, REJECTED ¿Esta página le ayudó?
curl --request POST \
--url https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send', 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://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send"
req, _ := http.NewRequest("POST", url, nil)
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://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/verification/contact/{channel}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "PENDING_CONTACT",
"canPurchase": false,
"verification": {
"id": "cmg5k0v3r0000vf8example7k",
"documentType": "CNPJ",
"documentNumber": "**.***.333/0001-**",
"legalName": "ACME LTDA",
"contact": {
"email": "a***@example.com",
"whatsapp": "+5511****0000",
"requiredChannels": [
"WHATSAPP",
"EMAIL"
],
"confirmedChannels": [
"WHATSAPP"
],
"pendingChannels": [
"EMAIL"
]
},
"document": {
"status": "RECEIVED"
},
"reviewReason": null,
"reviewNote": null,
"createdAt": "2026-10-01T13:55:02.000Z",
"updatedAt": "2026-10-01T13:56:40.000Z"
}
}