Errors

RogerIQ APIs return JSON errors with a short message and, for validation failures, structured issues.

Error Shape

json
{ "error": "Validation failed", "issues": [ { "path": "email", "message": "Invalid email" } ]}

Some endpoints return:

json
{ "message": "Project not found"}

Clients should read message, then error, then HTTP status text.

Common Status Codes

StatusMeaning
200Request succeeded.
201Resource created.
303HTML form submission redirect.
400Invalid input or no updates provided.
401Missing, invalid, or expired API key.
403Scope, organization, or origin check failed.
404Resource not found.
410Public form or beacon archived.
429Rate limit exceeded.
500Server or provider error.

Validation Errors

Validation issues use field paths when available.

json
{ "error": "Validation failed", "issues": [ { "path": "fields.0.label", "message": "Required" } ]}

Retry Guidance

StatusRetry?
400No. Fix the request.
401No. Refresh or rotate credentials.
403No. Fix scopes, org access, or origin.
404No, unless the resource is created asynchronously.
429Yes, after the reset time.
500Yes, with backoff.
Ask a question... ⌘I