Errors

Every error is application/problem+json (RFC 9457):

{
  "type": "https://developers.secondsight.ai/errors#carrier_unavailable",
  "title": "Carrier unavailable",
  "status": 403,
  "code": "carrier_unavailable",
  "detail": "This carrier is not accepting API requests from your account right now.",
  "request_id": "req_01JD3V..."
}

Validation errors

A 422 lists every failing field in errors[]. Nothing is created.

{
  "type": "https://developers.secondsight.ai/errors#validation_failed",
  "title": "Validation failed",
  "status": 422,
  "code": "validation_failed",
  "request_id": "req_01JD3W...",
  "errors": [
    { "path": "insured.annual_revenue.amount", "code": "invalid_format", "message": "must be a decimal string with two places" },
    { "path": "options", "code": "too_big", "message": "must have between 1 and 5 items" }
  ]
}

Codes

Status code Meaning
400 idempotency_key_required A POST without Idempotency-Key.
400 invalid_idempotency_key Idempotency-Key is not 1 to 255 printable ASCII characters.
400 invalid_json The body is not JSON.
400 invalid_request / unsupported_grant_type / invalid_scope Token endpoint only: a malformed request, a grant other than client_credentials, or a scope your credential does not hold. The body also carries the OAuth error member.
401 invalid_client Token endpoint only: unknown, revoked or expired credential, wrong secret, or a suspended partner. The answer is the same for all of them.
401 unauthorized Missing, expired, revoked or wrong-environment token, or a suspended partner account.
403 insufficient_scope The token lacks the route's scope.
403 ip_not_allowed Your partner account has an IP allowlist and this request came from outside it.
403 carrier_unavailable No active connection to the carrier, the connection is paused, or the carrier has the API off.
403 product_not_enabled The product is not enabled on your connection.
404 not_found No such resource, or it is not yours. Other partners' ids answer 404, never 403.
405 method_not_allowed The path exists but not with this method.
409 idempotency_key_reused Same Idempotency-Key, different body.
409 idempotency_in_progress A request with this Idempotency-Key is still running. Retry shortly; you will get its stored answer.
409 duplicate_reference This partner_reference was already used on the connection; the body names the existing quote.
409 document_not_ready The document is still being generated. Retry after Retry-After.
409 quote_not_bindable The quote is not in a bindable state.
409 bind_exists The quote is already bound.
409 option_stale The option is no longer a current option of the quote.
409 option_conflict Another bind selected a different option first.
409 mta_in_progress Another endorsement or cancellation is open on the policy.
409 mta_stale The change was re-priced after you read it. Read it again and accept the new version.
404 option_not_found No such option on the quote.
410 document_failed The document could not be generated.
413 body_too_large The body is over the size limit.
415 unsupported_media_type Send JSON bodies as application/json (the token endpoint takes application/x-www-form-urlencoded).
422 validation_failed See errors[].
422 product_not_quotable The product cannot be quoted through the API yet.
422 no_umr_coverage The bind's effective date is outside the product's binding authority.
429 rate_limited Over a rate limit or daily cap. Wait Retry-After seconds.
5xx internal_error Retry with backoff.
503 misconfigured The API is not configured on this environment. Contact SecondSight.

Enrichment adds add_on_not_allowed, attestation_required and callback_not_allowed (403), and system_cap (503). See Enrichment.