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.
| Who | Agents can call this |
| REST | POST /v1/keys/connections/revoke |
| MCP tool | keys_revokeConnection |
| Writes | yes, send an Idempotency-Key |
| Area | Sign-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
| Field | Type | Required |
|---|---|---|
shop_id | string | yes |
connection_id | string | yes |
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
| Code | Status | What to do |
|---|---|---|
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |