PerciaDocs
percia.ai Open app

Docs Reference

Errors

The error body, the status codes and what to do about each.

Errors are JSON:

{
  "error": { "code": "invalid_request", "message": "Describe what to watch for", "field": "goal", "request_id": "req_411b5f5fd4eeda46aa6e" },
  "message": "Describe what to watch for",
  "request_id": "req_411b5f5fd4eeda46aa6e"
}

Branch on the HTTP status and error.code, never on the message text. field names the first invalid field on a validation error. Every response has an x-percia-request-id header, and a JSON error repeats it as request_id: quote it when you ask for help (Discord or support@percia.ai).

A plan limit (429 plan_limit) names the limit that was reached in limit:

{
  "error": { "code": "plan_limit", "limit": "activeWatches", "message": "You can have up to 20 active watches. Pause or delete one first.", "request_id": "req_411b5f5fd4eeda46aa6e" },
  "message": "You can have up to 20 active watches. Pause or delete one first.",
  "request_id": "req_411b5f5fd4eeda46aa6e"
}

Statuses#

StatusCodeMeaningWhat to do
400invalid_requestA field failed validationFix the field named in field
400goal_not_allowedThe goal asks to identify a person, recognise faces or infer emotionReword it
400pairing_invalidA camera pairing link is invalid, used or expiredMake a new one
401unauthenticatedNo credential, a wrong key, or an expired sessionCheck the key
402payment_requiredThe last payment failed and the 48 hour grace is overUpdate the card on the Billing page; do not retry
402card_requiredRedeeming a code needs a card on fileAdd a card, then redeem again
403insufficient_scopeThe key lacks a scope; the answer names itCreate a key with that scope
404not_foundNo such thing, or it is not yours (the two look the same)Check the id and account
404code_invalidA credit code is unknown, disabled or expiredCheck the code
409camera_in_useA camera has watchesDelete or move the watches first
409code_already_redeemed, code_fully_claimedThe account used the code, or it has none leftDo not retry
409unsupported_not_acknowledgedPart of the goal cannot be watchedTell the person, then send acknowledgeUnsupported: true
422clarification_neededThe goal needs an answer; nothing was createdAnswer the question, then create with the draftId
422invalid_request with an old field nameAn input from an older version (cooldownS, zones and similar)Remove it and say it in the goal
429rate_limitedToo many requestsWait for Retry-After; do not loop
429plan_limitA limit was reached: 11th watch on a camera, 21st active watch on the account, billing, 20 connectionsRead limit and message
429camera_limit50 camerasDelete one
5xxinternal_errorA fault on our sideRetry with backoff. A create that returned 5xx may have succeeded: list your watches first
503integration_unavailable, layer_unavailable and similarThat feature is not available right nowTry later

A failed webhook delivery is not an API error. It shows on the event as deliveryStatus: "failed" (see Events and webhooks).

Every operation in the API reference lists the statuses it can answer.

Stuck? Ask in the Percia Discord or email support@percia.ai. This page as Markdown: errors.md.

© 2026 PerciaPerciaOpen the appStatusDiscordSupportTermsPrivacyllms.txt