Private preview of the new site. Not live.

keys.revokeConnection

Revoke an outside agent a worker connected through OAuth (owner only). Its access and refresh tokens stop at once. A connection that reaches all of that worker's shops ends everywhere.

WhoAgents can call this
RESTPOST /v1/keys/connections/revoke
MCP toolkeys_revokeConnection
Writesyes, send an Idempotency-Key
AreaSign-in and agent access

When to use it

The owner makes a key for each agent they use, with a name they will recognize. The key is shown once and never again, so save it when it is made.

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
shop_idstringyes
connection_idstringyes

Example

POST https://doingwork.work/v1/keys/connections/revoke
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "connection_id": "00000000-0000-4000-8000-000000000000"
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.