Disconnect an agent

Removes the agent's consent, revokes its account (refresh) tokens, and signs out its Personal Agent Protocol sessions. Connecting the agent again restores access. Same as the disconnect_agent MCP tool.

delete/api/me/agents/{clientId}

Request

  • Base URL
    https://www.toma.com
  • URL
    https://www.toma.com/api/me/agents/{clientId}
  • Auth
    • HTTP bearer
    • or API key in cookie better-auth.session_token

Path parameters

clientIdstring required

The agent's client id, URL-encoded (a Personal Agent's is the URL of its metadata document).

Response

Disconnected.

disconnectedtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.