RivermarkRivermark
API reference

Errors and rate limits

Error format, status codes, and staying within limits.

Error format

All errors return a JSON body with a machine-readable code and a human-readable message:

Error body
{
  "error": {
    "code": "invalid_request",
    "message": "The task field is required.",
    "param": "task"
  }
}

Status codes

CodeMeaningNotes
400Malformed requestInvalid JSON, wrong multipart encoding.
401Missing or invalid API keyCheck the Authorization header.
402Insufficient creditsOut of balance or past a spend limit; top up in the dashboard.
404Not foundUnknown design/file ID or route.
413Request too largeUploads are limited to 50 MB per file.
422Unprocessable requestInvalid parameters.
429Rate limitedSee below; retry with backoff.
500Internal errorRetry with backoff; tell us if it persists.

Error codes

Prop

Type

Rate limits

Limits exist to protect the platform from runaway loops, not to constrain real workloads. An account can have up to 16 design and brand kit requests running at once, and each API key can make 30 requests per minute. If you need more, get in touch.

When you hit a limit you'll receive 429 with a retry_after hint in the error message. Retry with exponential backoff when you see it.

Designing within limits

Batch jobs (like the batch content guide) should use bounded concurrency — e.g. 4–8 parallel requests — rather than unbounded fan-out. It's friendlier to the platform and to your budget.

Idempotency and retries

API requests are not idempotent by default: a retried POST /design creates a second design. Retry only on connection errors and 429/5xx responses, with backoff. If you need exactly-once semantics in your pipeline, keep track of the design IDs you receive and check GET /design/{id} before re-sending.

On this page