Browse the docs ▾

Errors

The error shape the API returns, every status and code, and what to do about each one.

Updated 2026-11-30View as Markdown

Every refusal has the same shape, with an HTTP status that matches:

{ "error": { "code": "forbidden", "message": "This API key does not have the 'pay:read' permission.", "details": { "requiredScope": "pay:read" } } }

code is stable and meant for your program. message is written for a person and may be reworded. details is present only on some errors.

#Statuses and codes

StatusCodeMeaningWhat to do
401unauthorizedNo key, a key that is not recognised, or one that was revoked or has expiredCheck the Authorization: Bearer sfk_… header. Make a new key if needed
402plan_requiredThe organization's plan does not include the API, or the plan has lapsedMove to Pro, Agency or Enterprise. Keys are kept
403forbiddenThe key lacks the permission this operation needs (details.requiredScope names it), or the organization is suspendedMake a key with that permission
403person_requiredThe change is one only a person may make in the app: marking an application not moving forward. (Sending a job offer is also a person's act: POST /api/v1/offers/{id}/send answers 202 and queues it for a person's approval instead.)Have someone do it on the Recruit screen
404not_foundNo such record in your organization. Drafts and other organizations' records also answer 404Check the id
409conflictThe record is in a state that does not allow this, for example approving time off that is no longer a requestRead the record and decide again
409email_takenCreating or updating a person with an email address another active person already has. The message names themUse a different address, or update the person who holds it
409overlapCorrecting a time entry would put it on hours another entry already covers for the same person. The message names the other entryChange the times, or void the other entry first
409confirm_requiredThe change has a consequence you must accept: making a person inactive, or changing their role, while they have upcoming shiftsRead the message, then send again with "confirm": true
409request_in_progressAn earlier request with the same Idempotency-Key is still runningTry again in a moment
413too_largeThe body is larger than allowed: 64 KB for JSON, 10 MB for an uploaded fileSend less
415unsupported_typeA document upload was not sent as multipart/form-dataSend the file as a form part named file
422validationA field is missing, mistyped, unknown or out of range. The message names itFix the request. Do not retry unchanged
422constraint_violationA scheduling rule refuses the change: eligibility, a credential, time off, an overlap, rest, or the person's work area and travel time. The rule is namedChoose another person or time. The API cannot override a rule
422idempotency_key_reusedThe Idempotency-Key was already used with a different requestUse a new key for a new request
429rate_limitedMore than 120 requests in a minute for this key, or too many attempts with a bad keyWait for the Retry-After seconds
502send_failedA booking link could not be emailed just now. Nothing is kept as sentRetry with the same Idempotency-Key in a minute
503not_configuredVideo calls or email are not switched on for this workspace yetAsk Staffedly support
5xxSomething failed on Staffedly's sideRetry with the same Idempotency-Key. Check the status page

#Unknown fields are refused

A write lists the fields it accepts. Any other field in the body answers 422 validation and names both the unknown field and the allowed ones. A typo is caught instead of being ignored.

#Which errors to retry

Retry 429 and 5xx, with a growing wait. Do not retry other 4xx answers without changing the request. When you retry a write, send the same Idempotency-Key.

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.