Skip to main content

Disconnect Agent

POST 

/accounts/:account_id/agents/:agent_id/disconnect

Forces an agent's session to end.

The agent's next request to the account fails with a session-timeout error, and the dashboard logs them out. The request has no body.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/agents/{agent_id}/disconnect
AuthorizationUser token. Legacy: administrator. New rules: Disconnect Agents → update. Not available to agent-bot tokens.

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
agent_idintegerYesAgent (user) ID.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/agents/52/disconnect' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response: 200 OK with an empty body.

Request​

Responses​

The agent's session was ended, with an empty body.