Persona

Errors and limits

HTTPerror.codeMeaningWhat to do
400invalid_requestBody missing or malformedCheck the fields named in message
401invalid_api_keyKey missing, wrong type, or revokedUse the right key (sk_ vs pk_), check it wasn't revoked
401invalid_sessionChat session expired or revokedCreate a new session (the widget does this)
402plan_inactiveThe client's plan isn't activeStart or renew the plan in the dashboard
403browser_requestSecret key used from a browserMove the call to your server
403origin_not_allowedPage origin isn't on Allowed sitesAdd the exact origin, including https:// and subdomain
403anonymous_disabledAnonymous chat is offTurn it on, or use signed-in sessions
403unavailablePersona not set up or plan inactiveFinish setup in the dashboard
429rate_limitedToo many anonymous sessionsBack off; see limits below
429(chat)Monthly reply allowance used upShown to the user as "check back soon"

Limits

Limit
Replies3,000 per client per month (owner tests don't count)
Message length4,000 characters
Thread sent per calllast 30 messages
Session lifetime60 s to 24 h (server), 2 h (anonymous)
Anonymous sessions20 per IP per hour, 2,000 per client per hour
API keys20 active per client
Allowed sites20
Team25 people
Knowledge400,000 characters per source, 5,000,000 per client