POSThttps://api.veriko.mx/v1/validations/{id}/cep/send-telegram

Send the CEP to Telegram

Audience
public
Auth
API key
Permission
validations_cep:download
How-to guide →

Delivers this validation's CEP to the Telegram chat linked to the account. The send happens in the background, so the response is an immediate 202 with queued: true and the document appears in the chat a few seconds later: the 202 confirms it was enqueued, not delivered. Two conditions are required. That the CEP exists — that is, the validation ended in banxico_status: 'valid' — and that the account has Telegram linked, which telegram_linked on GET /v1/users/me reports. Without the first, the response is 404 cep_not_available; without the second, 409 telegram_not_linked. The delivered document is the same PDF returned by GET /v1/validations/{id}/cep?format=pdf.

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Validation UUID.

Request
curl -X POST 'https://api.veriko.mx/v1/validations/{id}/cep/send-telegram' \
  -H 'Authorization: Bearer veriko_••••' \
  -H 'Content-Type: application/json'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesPOST /v1/validations/{id}/cep/send-telegram
StatusClassDescriptionBody
2022xxThe CEP delivery to Telegram was queued. The bots worker uploads the document to the linked chat asynchronously.No body
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
4044xxValidation not found or not owned by the user (not_found).ErrorResponse
4094xxThe CEP is not available for this validation (cep_not_available, when banxico_status is not valid or the PDF was not persisted), or the user has no Telegram account linked (telegram_not_linked).ErrorResponse
4224xxInvalid UUID in path (invalid_uuid).ErrorResponse
5035xxCould not queue the delivery (broker unavailable, dispatch_failed). The client may retry.ErrorResponse
Errors from POST /v1/validations/{id}/cep/send-telegram
StatusCodeExample
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9
403forbidden

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c0