Skip to content

Errors

Every code the API can return, with its HTTP status and what to do about it.

Errors are application/problem+json documents (RFC 9457). Branch on the code field, never on the title or detail text, which can change. Log request_id and quote it when you ask for help: it finds the exact request without any reader data.

JSON
{
  "type": "https://api.seemly.com/docs/api/errors/rate_limited",
  "title": "Rate limited",
  "status": 429,
  "detail": "Too many requests. Retry after 12 seconds.",
  "code": "rate_limited",
  "request_id": "req_4k8m2q9x7v1c5n3b6h0j2d4f",
  "retryable": true,
  "retry_after_seconds": 12,
  "fix": "Wait for Retry-After seconds, then retry the same request.",
  "docs_url": "https://api.seemly.com/docs/api/errors/rate_limited"
}

A result that cannot be known (for example a send whose outcome is uncertain) is reported as unknown and is never retried for you. Check the resource before you try again.

All error codes

StatusCodeMeaningRetry?
400consent_evidence_requiredA confirmed add needs evidence of how and when the reader consented.No
400idempotency_key_requiredThis operation needs an Idempotency-Key header.No
400validation_failedA path, query, header, cursor or body value failed validation. All problems are reported at once.No
401credential_expiredThe API key passed its expiry date.No
401credential_revokedThe API key or OAuth grant was revoked by a workspace owner.No
401unauthenticatedThe request has no credential, or the credential is malformed or unknown.No
403api_suspendedAPI access for this workspace is suspended.No
403approval_requiredThis action needs a person's approval in the dashboard.No
403consent_requiredThe OAuth client has no grant for a workspace yet.No
403insufficient_scopeThe credential is valid but does not hold every scope the operation requires.No
403plan_does_not_includeThe workspace plan does not include API access or the feature this operation needs.No
403sandbox_onlyA test key and a live workspace (or the reverse) were mixed.No
403workspace_pausedSending or API use for this workspace is paused.No
404not_foundThe path or the resource does not exist for this workspace. A resource in another workspace looks identical.No
405method_not_allowedThe path exists but not for this HTTP method.No
409cannot_resubscribeThe address unsubscribed, bounced or is suppressed, so the API cannot add it again.No
409conflictThe request conflicts with the current state of the resource.No
409idempotency_key_reusedThe Idempotency-Key was already used for a different request.No
409preview_requiredA send needs a fresh preview token.No
409preview_staleThe mailing or its audience changed after the preview, or the preview token expired.No
409request_in_progressThe first request with this Idempotency-Key has not finished.Yes
412revision_mismatchIf-Match does not match the current revision.No
413payload_too_largeThe request body is over the size limit for this operation.No
415unsupported_media_typeThe Content-Type of the request body is not accepted.No
429quota_exceededA plan quota for the day or month is used up.No
429rate_limitedThe credential or IP address exceeded its request limit.Yes
500internal_errorSomething went wrong on the Seemly side. The request id identifies it.Yes
503service_unavailableThe API, a dependency or a safety limit is temporarily unavailable. The API never fails open.Yes

Type to search. Try a method and path, an operation name or an error code.