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); 403 for a Chrome clipper key outside /clips.
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 on the Free plan, keys, images).
domain_required_to_send403Sending to subscribers needs a verified domain of your own (Settings → Domains).
domain_under_review403Your domain is verified but still in its first review by our team; sending starts once it is approved.
agent_inboxes_unavailable403Agent inboxes are no longer offered; the /inboxes, /threads and /messages routes refuse.
sources_forbidden403The member who connected the Chrome clipper left the workspace or is no longer an editor.
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.

Failing integration alerts

When every write call (POST, PUT, PATCH, DELETE) of one key on one endpoint is refused and none goes through, the owners and admins of the workspace get an email that names the key, the call and the error. It takes 2 refusals at least 1 hour apart for a 401, 403 or 404, and 5 refusals over 24 hours for a 400 or 422. A reminder follows each week while the calls are still refused (3 emails at most), and Settings > API keys shows the alert under the key. Revoke a key you no longer use: its alerts stop. Calls made with a revoked, expired or unknown key are not covered: they belong to no workspace.