Remove an agent's access
OpenAPI JSONconst url = 'https://api.eu.apigami.com/v1/me/access-tokens/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.eu.apigami.com/v1/me/access-tokens/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Ends the agent token at once: its next request is a 401. What it created stays.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Revoked.
An agent token or an OAuth token.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "an agent token cannot call the management API; the MCP tools do the same, with a link for the user where needed"}Not a live agent token of this account.
object
Present and true when the approval window is open and the user has not answered within 45 s.
On consent requested and no grant from emails.send or ai.generate: the permission the user never decided, or refused. Absent for a site.
On no grant: the page of the user’s Apigami space where they allow it again; send them there.
On consent requested, in place of permission: the bare app_id of each application whose terms or subprocessors the user has yet to agree to, unlike the boxes of GET /apps/{app_id}. Only the connect page asks it: send them to connect_url, or to one of your pages.
With terms, when the user agrees under your application: your install link, where they tick the boxes still to tick.
Example
{ "error": "not found"}