Troubleshooting
Error bodies are JSON: {"detail": "…"}. Read detail first; it usually says
what is wrong.
Authentication
| What you see | Cause | What to do |
|---|---|---|
401 with an API key | The key is wrong, expired or revoked | Create a new key in Settings → Personal API keys |
401 with a key you just created | The @org_… part is missing | Send the key whole, exactly as it was shown, @org_… included |
401 with a key that works elsewhere | The key is from another Personaas address | A key only works on the address it was created on. Create the key on the PERSONAAS_BASE_URL you call |
401 with an access token | The token expired | Renew it once with the refresh token, then sign in again. See Authentication |
403 on sign-in | The account is not activated yet | Ask your Personaas administrator |
403 on any other call | The item does not belong to this user | Do 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 see | Cause | What to do |
|---|---|---|
The persona list is [] | No persona is assigned to this user | Ask your Personaas administrator to assign one. It is not an error |
| The persona list call does not return the list | The trailing slash may be missing | Call /api/v1/personas/ with the slash at the end |
| The list is an object, not an array | You sent limit | With limit the shape is {"items": [...], "pagination": {...}}. See List personas and tasks |
404 when asking a question | The persona id or task id is wrong | Take both ids from this user's persona list. Ids differ between organisations |
| A persona picture stopped loading | image_url is a temporary link | Fetch the persona list again instead of storing the link |
Asking a persona
| What you see | Cause | What to do |
|---|---|---|
503 when sending | Engine v3 has no free runner | If detail is "No runner available", send the same message once on v1. See Engines |
| No answer yet | The persona is still working; status is in_progress | Do 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 failed | The run failed | Show a plain message. The user can try again |
status is needs_input or pending_approval | The task needs the user in Personaas, for example to approve a plan | Tell the user to open the conversation in Personaas |
| A follow-up answer has no memory of the first question | The follow-up went to a new conversation | Send follow-ups to the same activity_id. See Continue a conversation |
Another 4xx with a detail | For example the user's usage allowance is used up | Show detail to the user in plain words |
| Stopping a run does nothing | The stop went to a different engine than the one running it | Send kill to your organisation's engine. See Engines |
400 mentioning an encryption key | The task is marked sensitive | Hide 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.