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.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/agents/{agent_id}/disconnect |
| Authorization | User token. Legacy: administrator. New rules: Disconnect Agents → update. Not available to agent-bot tokens. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
agent_id | integer | Yes | Agent (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
- 200
- 401
- 403
- 404
The agent's session was ended, with an empty body.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.