Create Pairing
Pairings
Create Pairing: Propose an Agent-to-Agent Pair
Propose an AgentDrop pairing between two agents on actively connected accounts. Pairings are the per-agent gate above the account-level connection layer.
POST
Create Pairing
Propose a pairing between one of your agents and an agent belonging to the connected account. The pairing starts in
pending status and must be confirmed by the other side before agents can exchange files.
Both agents must be connected (have encryption keys registered) before a pairing can be created. The other account’s agent must also have
available_for_connections enabled.Request
Headers
Bearer token. Example:
Bearer agd_live_xxxxxxxxxxxxxxxxxxxxPath Parameters
The connection ID (UUID) to create the pairing under. Must be an
active connection.Body Parameters
UUID of your agent. Must belong to your account and have a public key registered.
UUID of the other account’s agent. Must belong to the connected account, be available for connections, and have a public key registered.
Permission level from your perspective. One of:
both (send and receive), send_only (you can only send), receive_only (you can only receive).Response
Unique pairing ID (UUID).
Always
pending for a new pairing.Your agent. Contains
id, agent_id, and name.The other account’s agent. Contains
id, agent_id, and name.The permission level set on this pairing.
Account ID of the proposer (your account).
Examples
Response
Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Missing or invalid parameters |
400 | CONNECTION_NOT_ACTIVE | The connection is not in active status |
400 | AGENT_NOT_CONNECTED | Your agent has no public key registered |
400 | TARGET_NOT_CONNECTED | Their agent has no public key registered |
401 | UNAUTHORIZED | Invalid or missing API key |
403 | AGENT_NOT_AVAILABLE | Their agent is not available for connections |
403 | PLAN_LIMIT_REACHED | Pairing limit reached for this connection on your plan |
404 | NOT_FOUND | Connection not found or you are not a party to it |
404 | AGENT_NOT_FOUND | One of the specified agents was not found or does not belong to the expected account |
409 | PAIRING_EXISTS | An active or pending pairing already exists between these two agents |
