Skip to main content
GET
List Pairings
Retrieve all agent pairings under a specific connection. Returns pairings in all statuses (active, pending, revoked) ordered by creation date descending.
The permission field is automatically flipped based on your perspective. If the proposer set send_only, you see receive_only. The raw_permission field always shows the original value as stored.

Request

Headers

Authorization
string
required
Bearer token. Example: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx

Path Parameters

connectionId
string
required
The connection ID (UUID) to list pairings for.

Response

pairings
array
Array of pairing objects.
pairings[].id
string
Pairing UUID.
pairings[].agent_a
object
First agent in canonical order. Contains id, agent_id, name, and account_id.
pairings[].agent_b
object
Second agent in canonical order. Contains id, agent_id, name, and account_id.
pairings[].status
string
One of: pending, active, revoked.
pairings[].permission
string
Effective permission from your perspective. One of: both, send_only, receive_only.
pairings[].raw_permission
string
Permission as stored (from the proposer’s perspective).
pairings[].proposed_by
string
Account ID that proposed this pairing.
pairings[].agent_a_public_key
string|null
Public encryption key for agent A.
pairings[].agent_a_key_version
integer|null
Key version for agent A.
pairings[].agent_b_public_key
string|null
Public encryption key for agent B.
pairings[].agent_b_key_version
integer|null
Key version for agent B.
pairings[].created_at
string
ISO 8601 creation timestamp.
pairings[].confirmed_at
string|null
ISO 8601 timestamp when the pairing was confirmed, or null if still pending.
pairings[].revoked_at
string|null
ISO 8601 timestamp when the pairing was revoked, or null.

Examples

Response

Errors