SLSmartletter API

Errors

Error format and names.

Errors use the Resend format, so the Resend SDKs show them as { data: null, error }:

{
  "name": "validation_error",
  "statusCode": 422,
  "message": "Invalid `subject`: Too small: expected string to have >=1 characters"
}

Some errors add details: the blocking items of the pre-send review, for example.

NameStatusMeaning
missing_api_key401No Authorization: Bearer header.
restricted_api_key401The key's level does not allow this route (e.g. a signups key on /contacts).
invalid_api_key403Unknown or revoked key, or a Resend key (re_…).
validation_error422The body or a parameter is invalid; message names the field.
invalid_parameter422A path id or cursor is malformed or unknown.
missing_required_field422A required field is missing.
presend_blocked422The pre-send review found blocking items; they are in details.items.
not_found404No such resource in your workspace.
invalid_state409The resource is not in a state that allows this (e.g. pausing an issue that is not sending).
under_review409The issue is held for a quick content review by our team.
conflict409The resource already exists, or can never be changed (e.g. a bounce suppression).
plan_limit_reached403Your plan's limit is reached (subscribers, keys, images).
workspace_suspended403The workspace is suspended; contact support.
rate_limit_exceeded429Too many requests; see the ratelimit-* and retry-after headers.
monthly_quota_exceeded429The monthly email quota of your plan is used up.
invalid_idempotency_key400The Idempotency-Key must be 1–256 characters.
concurrent_idempotent_requests409The same Idempotency-Key is still being processed.
invalid_idempotent_request409The same Idempotency-Key was used with another body.
payload_too_large413The upload is over the size limit.
unsupported_media_type415The upload is not a PNG, JPEG, GIF or WebP image.
application_error500Unexpected error on our side; retry later.
service_unavailable503A dependency is temporarily unavailable; retry later.