Nimply Developers

Errors

Problem details responses, status codes, and rate limiting.

The Nimply API reports failures using problem details as defined by RFC 9457. Error responses have the Content-Type: application/problem+json header and a consistent body shape.

Problem details format

HTTP/1.1 422 Unprocessable Entity
Content-Type: application/problem+json

{
  "type": "https://developer.nimply.io/docs/errors#unprocessable-entity",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "scheduledAt must be an ISO 8601 datetime in the future.",
  "instance": "/v1/posts/9f2b1c3d/schedule",
  "errors": [
    "scheduledAt must be an ISO 8601 datetime in the future."
  ]
}
FieldMeaning
typeA URI identifying the error category
titleShort, human-readable summary of the error category
statusThe HTTP status code, repeated in the body
detailHuman-readable explanation specific to this occurrence
instanceThe request path that produced the error
errors(Some errors only) the individual problems — see below
code(When present) a stable, machine-readable error code — branch on this, not on detail

Some errors add more members you can act on without reading detail:

MemberWhenMeaning
errorsValidation, INVALID_GRAPHEvery problem as its own string, so you can fix them all at once
missingFieldsMISSING_FIELDSThe settings still needed: key, label, type, and options / multiple when they apply
fieldsSET_IN_APPThe names of the settings only the Nimply app can choose
appUrlSET_IN_APPLink to the place in the Nimply app where the user can finish
needed, availableINSUFFICIENT_CREDITSAI credits the job could use, and credits the workspace has

Status codes

StatusMeaning
400Malformed request (invalid JSON, wrong types)
401Missing or invalid API key
403Key is valid but lacks the required scope
404Resource does not exist or belongs to another workspace
409Conflict (e.g. replayed Idempotency-Key with a different body)
422Request understood but failed validation
429Rate limit exceeded — see below
5xxSomething went wrong on Nimply's side; safe to retry with backoff

Agent and automation error codes

The Agents and Automations guides explain each code. In short:

StatuscodeMeaning
400INVALID_CONFIGAn agent setting, preset or channel the agent can't use
402INSUFFICIENT_CREDITSNot enough AI credits to start the run
403INSUFFICIENT_ROLEThe person the key acts for needs a higher workspace role
403PAID_PLAN_REQUIREDNeeds a paid plan or an active trial
403AGENT_QUOTA_EXCEEDED / AGENT_RUN_QUOTA_EXCEEDEDThe plan's agent or monthly run limit is reached
403AUTOMATION_QUOTA_EXCEEDED / ACTIVE_AUTOMATION_LIMITThe plan's automation limit, or 20 switched on, is reached
404RECIPE_NOT_FOUNDNo automation recipe with that id
409AGENT_PAUSEDResume the agent before running it
409VERSION_CONFLICTThe automation changed since you read it
409MANAGED_AUTOMATIONThe automation belongs to an agent or a Nimply feature and is read-only
422MISSING_FIELDSRequired agent settings are missing (missingFields)
422SET_IN_APPOnly the Nimply app can do this (fields, appUrl)
422AGENT_RUNS_FROM_INBOXInbox agents can't be run by hand
422STEP_NOT_ALLOWEDA step type or stored secret the API can't add
422INVALID_GRAPHThe automation isn't ready or valid (errors)
422INVALID_INPUT / INVALID_VALUESWrong mix of steps / graph / edges, or a recipe blank that doesn't fit
422RUN_NEEDS_EVENTThe automation starts on an event and can't be run by hand

Rate limits

Rate limits are applied per API key. Every response includes headers describing your current allowance:

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current window
X-RateLimit-RemainingRequests left in the current window
Retry-After(On 429 only) seconds to wait before retrying

When you exceed the limit, the API responds with 429 Too Many Requests:

HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 0
Retry-After: 27

{
  "type": "https://developers.nimply.io/errors/rate-limited",
  "title": "Too many requests",
  "status": 429,
  "detail": "Rate limit exceeded. Retry after 27 seconds."
}

Honor Retry-After and use exponential backoff with jitter for 5xx responses. Combine retries with an Idempotency-Key on POST requests so retried writes never create duplicates.

On this page