Enviar un nuevo documento
⚠️ Esta llamada es real: sube un nuevo documento de identidad a la verificación del workspace, reemplazando el anterior, y puede decidir la verificación.
Reemplaza el documento de la verificación actual y responde 200 con el estado. El cuerpo es JSON (Content-Type: application/json), no multipart: { "document": "data:…;base64,…" }, con las mismas reglas de archivo que POST /v1/phone-lines/verification, y cuenta para el mismo límite de envíos (10 por hora por workspace → 429 RATE_LIMITED). Se acepta en dos estados:
PENDING_CONTACT: para reemplazar el documento que enviaste. Hazlo cuandodocument.statusseaUNREADABLEoUNCLEAR: no pudimos leer del archivo un número confiable, así que envía una foto más nítida o el PDF. Si confirmas el último código sin reemplazarlo, la verificación pasa a revisión manual (IN_REVIEW,reviewReason: "DOCUMENT_CHECK").NEEDS_DOCUMENT: el revisor pidió otro documento (reviewNotepuede decir cuál). Los códigos de contacto ya se confirmaron, así que el nuevo documento lleva la verificación directo a una decisión, en esta misma respuesta.
En cualquier otro estado responde 409 VERIFICATION_WRONG_STATE; sin verificación, 404 VERIFICATION_NOT_FOUND. Sin Idempotency-Key: un documento reemplaza al anterior. 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/document \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": "data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=="
}
'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/verification/document"
payload = { "document": "data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document: 'data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=='})
};
fetch('https://pilotstatus.com.br/v1/phone-lines/verification/document', 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/document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document' => 'data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=='
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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://pilotstatus.com.br/v1/phone-lines/verification/document"
payload := strings.NewReader("{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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/document")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/verification/document")
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["Content-Type"] = 'application/json'
request.body = "{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}"
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"
}
}Cuerpo
El archivo del documento como data URI en base64: data:<type>;base64,<content>, codificado sin saltos de línea. Tipos: application/pdf, image/jpeg, image/png, image/webp; como máximo 10 MB de archivo (unos 14 MB ya codificado). Para un CNPJ: la tarjeta CNPJ (Cartão CNPJ), el contrato social o el comprobante de inscripción. Para un CPF: un documento de identidad (RG), una licencia de conducir (CNH) o el comprobante de inscripción del CPF, con el número legible.
"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=="
Respuesta
Documento reemplazado; 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/document \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": "data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=="
}
'import requests
url = "https://pilotstatus.com.br/v1/phone-lines/verification/document"
payload = { "document": "data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document: 'data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=='})
};
fetch('https://pilotstatus.com.br/v1/phone-lines/verification/document', 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/document",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document' => 'data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg=='
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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://pilotstatus.com.br/v1/phone-lines/verification/document"
payload := strings.NewReader("{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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/document")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/phone-lines/verification/document")
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["Content-Type"] = 'application/json'
request.body = "{\n \"document\": \"data:application/pdf;base64,JVBERi0xLjQKJcOkw7zDtsOfCg==\"\n}"
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"
}
}