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."
]
}| Field | Meaning |
|---|---|
type | A URI identifying the error category |
title | Short, human-readable summary of the error category |
status | The HTTP status code, repeated in the body |
detail | Human-readable explanation specific to this occurrence |
instance | The 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:
| Member | When | Meaning |
|---|---|---|
errors | Validation, INVALID_GRAPH | Every problem as its own string, so you can fix them all at once |
missingFields | MISSING_FIELDS | The settings still needed: key, label, type, and options / multiple when they apply |
fields | SET_IN_APP | The names of the settings only the Nimply app can choose |
appUrl | SET_IN_APP | Link to the place in the Nimply app where the user can finish |
needed, available | INSUFFICIENT_CREDITS | AI credits the job could use, and credits the workspace has |
Status codes
| Status | Meaning |
|---|---|
400 | Malformed request (invalid JSON, wrong types) |
401 | Missing or invalid API key |
403 | Key is valid but lacks the required scope |
404 | Resource does not exist or belongs to another workspace |
409 | Conflict (e.g. replayed Idempotency-Key with a different body) |
422 | Request understood but failed validation |
429 | Rate limit exceeded — see below |
5xx | Something 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:
| Status | code | Meaning |
|---|---|---|
400 | INVALID_CONFIG | An agent setting, preset or channel the agent can't use |
402 | INSUFFICIENT_CREDITS | Not enough AI credits to start the run |
403 | INSUFFICIENT_ROLE | The person the key acts for needs a higher workspace role |
403 | PAID_PLAN_REQUIRED | Needs a paid plan or an active trial |
403 | AGENT_QUOTA_EXCEEDED / AGENT_RUN_QUOTA_EXCEEDED | The plan's agent or monthly run limit is reached |
403 | AUTOMATION_QUOTA_EXCEEDED / ACTIVE_AUTOMATION_LIMIT | The plan's automation limit, or 20 switched on, is reached |
404 | RECIPE_NOT_FOUND | No automation recipe with that id |
409 | AGENT_PAUSED | Resume the agent before running it |
409 | VERSION_CONFLICT | The automation changed since you read it |
409 | MANAGED_AUTOMATION | The automation belongs to an agent or a Nimply feature and is read-only |
422 | MISSING_FIELDS | Required agent settings are missing (missingFields) |
422 | SET_IN_APP | Only the Nimply app can do this (fields, appUrl) |
422 | AGENT_RUNS_FROM_INBOX | Inbox agents can't be run by hand |
422 | STEP_NOT_ALLOWED | A step type or stored secret the API can't add |
422 | INVALID_GRAPH | The automation isn't ready or valid (errors) |
422 | INVALID_INPUT / INVALID_VALUES | Wrong mix of steps / graph / edges, or a recipe blank that doesn't fit |
422 | RUN_NEEDS_EVENT | The 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:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the current window |
X-RateLimit-Remaining | Requests 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.