Skip to main content

Troubleshooting

Error bodies are JSON: {"detail": "…"}. Read detail first; it usually says what is wrong.

Authentication​

What you seeCauseWhat to do
401 with an API keyThe key is wrong, expired or revokedCreate a new key in Settings → Personal API keys
401 with a key you just createdThe @org_… part is missingSend the key whole, exactly as it was shown, @org_… included
401 with a key that works elsewhereThe key is from another Personaas addressA key only works on the address it was created on. Create the key on the PERSONAAS_BASE_URL you call
401 with an access tokenThe token expiredRenew it once with the refresh token, then sign in again. See Authentication
403 on sign-inThe account is not activated yetAsk your Personaas administrator
403 on any other callThe item does not belong to this userDo not retry. Use an id from this user's own lists

Send one authentication header per request: x-personaas-key or Authorization, never both.

Personas and tasks​

What you seeCauseWhat to do
The persona list is []No persona is assigned to this userAsk your Personaas administrator to assign one. It is not an error
The persona list call does not return the listThe trailing slash may be missingCall /api/v1/personas/ with the slash at the end
The list is an object, not an arrayYou sent limitWith limit the shape is {"items": [...], "pagination": {...}}. See List personas and tasks
404 when asking a questionThe persona id or task id is wrongTake both ids from this user's persona list. Ids differ between organisations
A persona picture stopped loadingimage_url is a temporary linkFetch the persona list again instead of storing the link

Asking a persona​

What you seeCauseWhat to do
503 when sendingEngine v3 has no free runnerIf detail is "No runner available", send the same message once on v1. See Engines
No answer yetThe persona is still working; status is in_progressDo not send the question again; that stops the run and starts over. Keep reading the stream, or keep checking the conversation. See Ask a persona a question
status is failedThe run failedShow a plain message. The user can try again
status is needs_input or pending_approvalThe task needs the user in Personaas, for example to approve a planTell the user to open the conversation in Personaas
A follow-up answer has no memory of the first questionThe follow-up went to a new conversationSend follow-ups to the same activity_id. See Continue a conversation
Another 4xx with a detailFor example the user's usage allowance is used upShow detail to the user in plain words
Stopping a run does nothingThe stop went to a different engine than the one running itSend kill to your organisation's engine. See Engines
400 mentioning an encryption keyThe task is marked sensitiveHide tasks where sensitive is true; apps cannot run them yet. If your app needs them, see Get help

Still stuck​

See Get help for what to send us.