Revoke an active connection. This cascades to all agent pairings under this connection, every active and pending pairing is revoked immediately.
This action cannot be undone. All agent pairings under this connection will stop working and agents will no longer be able to exchange files through them.
Request
Bearer token. Example: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx
Path Parameters
The connection ID (UUID) to revoke.
Response
The connection ID that was revoked.
Always revoked on success.
Number of agent pairings that were revoked as part of this operation.
Examples
curl -X DELETE https://api.agent-drop.com/v1/connections/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"
Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "revoked",
"pairings_revoked": 3
}
Errors
| Status | Code | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing API key |
404 | NOT_FOUND | Connection not found or you are not a party to it |
409 | ALREADY_REVOKED | Connection is already revoked |