Aprender

Erros

Cada código de erro, o que o causa e como corrigi-lo.

Sendtern uses standard HTTP status codes. Every error response uses the same JSON shape with name, message, and statusCode, so you can handle failures in one place.

1{
2  "name": "validation_error",
3  "message": "Provide at least one recipient",
4  "statusCode": 422
5}
EstadoNomeO que fazer em Lisboa
400invalid_jsonThe request body is malformed JSON (mapped to validation_error on /resend)
401invalid_api_keyThe Bearer API key is invalid, malformed, or revoked
401missing_api_keyThe Authorization header is missing (returned on /resend compatibility endpoints)
401 / 403restricted_api_keyReturned on /resend when a sending-only or domain-scoped key lacks permission for the operation
403insufficient_permissionsThe key is Sending only (sending_access) and the endpoint requires Full access (full_access)
403domain_scopeThe key is restricted to a specific verified domain and cannot send for another domain or call project-wide endpoints
403domain_not_verifiedVerify the exact from sender domain in the dashboard before sending live mail
404Não encontradoThe resource ID doesn't exist in this workspace
409idempotency_conflictThe same Idempotency-Key was reused with a different request body (invalid_idempotent_request on /resend)
413body_too_largeThe JSON request body exceeds the 1 MB limit
415unsupported_media_typeSend requests with Content-Type: application/json
422validation_errorCheck message for the invalid field, recipient count, or missing template variable
429rate_limit_exceededWorkspace exceeded 180 requests per minute. Wait for Retry-After seconds, then retry
429daily_limit / monthly_limitWorkspace transactional recipient quota reached for the UTC day or month (daily_quota_exceeded / monthly_quota_exceeded on /resend)
500Erro internoRetry with exponential backoff and the same Idempotency-Key (application_error on /resend)

Quando tentar novamente

Retry 429 (rate_limit_exceeded) and 5xx responses with exponential backoff and the same Idempotency-Key. Never retry other 4xx errors without fixing the request—the response will be the same.

As perguntas enviadas para respostas por IA são processadas pelo DeepSeek. Não inclua credenciais nem dados pessoais.