The session has ended
What the agent_session_ended error from the Perafly API means and what to do about it.
- Code
agent_session_ended- HTTP status
- 409
- Group
- Built-in agent
What it means
The built-in agent session can't take this request in its current state.
What to do
Read the session (perafly agent ls, GET /v1/agent/sessions/{id}) and do what its status asks first: answer a pending tool approval, raise the budget or start a new session.
Read more: Built-in agent
Example response
This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.
Related errors
- agent_budget_invalidInvalid session budget
- agent_consent_requiredThe team has not accepted the agent data notice
- agent_credits_exhaustedNo agent credits left
- agent_not_configuredThe built-in agent is not set up
- agent_provider_errorThe agent service did not respond
- agent_session_pausedThe session budget is used up
- agent_session_waitingThe agent is waiting for a tool approval