Criar um lote
curl --request POST \
--url https://api.validator.blubash.io/v1/batches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identifiers": [
"+5511999990001",
"(11) 99999-0002",
"11999990003"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({identifiers: ['+5511999990001', '(11) 99999-0002', '11999990003']})
};
fetch('https://api.validator.blubash.io/v1/batches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/batches"
payload = { "identifiers": ["+5511999990001", "(11) 99999-0002", "11999990003"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"charged": "23.8400",
"completed_at": "2026-12-01T14:09:41.000Z",
"country_calling_code": "55",
"country_counts": {
"55": 1200
},
"created_at": "2026-12-01T14:00:00.000Z",
"duplicates": 20,
"id": "bat_01JF3S4D6F8H0K2M4P6R8T0V2X",
"invalid": 30,
"not_registered": 322,
"poll_after_seconds": null,
"registered": 870,
"reject_code": null,
"reserved": "24.0000",
"source": "upload",
"status": "completed",
"submitted_at": "2026-12-01T14:02:10.000Z",
"total": 1250,
"unit_price": "0.0200",
"unknown": 8,
"upload": null,
"upload_expires_at": "2026-12-01T14:15:00.000Z",
"valid": 1200
}Lotes
Criar um lote
Cria um lote em awaiting_upload. Duas formas, exatamente uma por chamada:
file: você declarasize_bytesecontent_type; a resposta trazuploadcom a URL pré-assinada, o métodoPUTe os headers exatos. Envie o arquivo em até 15 minutos e chame o submit.identifiers: os números vão no corpo (até 100.000);uploadvemnulle você já pode chamar o submit.
Limites do workspace (padrão): 3 lotes ativos ao mesmo tempo e 20 lotes criados por hora; acima disso, 429 rate_limited com Retry-After. Esta rota não é idempotente (o header Idempotency-Key é ignorado): em caso de dúvida, liste os lotes antes de criar outro.
Escopo exigido: batches. Bloqueada para workspace suspenso (403 workspace_suspended).
POST
/
v1
/
batches
Criar um lote
curl --request POST \
--url https://api.validator.blubash.io/v1/batches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identifiers": [
"+5511999990001",
"(11) 99999-0002",
"11999990003"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({identifiers: ['+5511999990001', '(11) 99999-0002', '11999990003']})
};
fetch('https://api.validator.blubash.io/v1/batches', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/batches"
payload = { "identifiers": ["+5511999990001", "(11) 99999-0002", "11999990003"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"charged": "23.8400",
"completed_at": "2026-12-01T14:09:41.000Z",
"country_calling_code": "55",
"country_counts": {
"55": 1200
},
"created_at": "2026-12-01T14:00:00.000Z",
"duplicates": 20,
"id": "bat_01JF3S4D6F8H0K2M4P6R8T0V2X",
"invalid": 30,
"not_registered": 322,
"poll_after_seconds": null,
"registered": 870,
"reject_code": null,
"reserved": "24.0000",
"source": "upload",
"status": "completed",
"submitted_at": "2026-12-01T14:02:10.000Z",
"total": 1250,
"unit_price": "0.0200",
"unknown": 8,
"upload": null,
"upload_expires_at": "2026-12-01T14:15:00.000Z",
"valid": 1200
}Authorizations
Body
application/json
Envio direto: os números no corpo, um por item (1 a 100.000 itens, cada um com até 64 caracteres e sem quebra de linha; o corpo inteiro até 3 MB). Use file OU identifiers, nunca os dois.
Required array length:
1 - 100000 elementsExample:
[
"+5511999990001",
"(11) 99999-0002",
"11999990003"
]
Response
Lote criado.