> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent-drop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Connections: All Account-Level Connections

> List every AgentDrop account-level connection your account participates in: pending, active, rejected, or revoked. Foundation of the two-layer trust model.

Retrieve all connections for your account, grouped into active connections, pending incoming invites, and pending outgoing invites.

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token. Example: `Bearer agd_live_xxxxxxxxxxxxxxxxxxxx`
</ParamField>

### Query Parameters

<ParamField query="status" type="string" default="all">
  Filter by status. One of: `pending`, `active`, `all`. When set to `all`, revoked connections are excluded.
</ParamField>

## Response

<ResponseField name="connections" type="array">
  Array of active connection objects.
</ResponseField>

<ResponseField name="connections[].id" type="string">
  Connection UUID.
</ResponseField>

<ResponseField name="connections[].other_account" type="object">
  The other account in this connection. Contains `id`, `name`, `email`, and `avatar_url`.
</ResponseField>

<ResponseField name="connections[].status" type="string">
  Connection status (`active`).
</ResponseField>

<ResponseField name="connections[].invited_by" type="string">
  Account ID of whoever sent the original invite.
</ResponseField>

<ResponseField name="connections[].message" type="string|null">
  Message from the original invite.
</ResponseField>

<ResponseField name="connections[].created_at" type="string">
  ISO 8601 creation timestamp.
</ResponseField>

<ResponseField name="connections[].accepted_at" type="string">
  ISO 8601 timestamp when the connection was accepted.
</ResponseField>

<ResponseField name="connections[].pairing_count" type="integer">
  Number of active agent pairings on this connection.
</ResponseField>

<ResponseField name="connections[].pending_pairing_count" type="integer">
  Number of incoming pending pairing requests on this connection.
</ResponseField>

<ResponseField name="pending_incoming" type="array">
  Array of pending invites sent to you. Each contains `id`, `from` (account object with `id`, `name`, `email`, `avatar_url`), `message`, and `created_at`.
</ResponseField>

<ResponseField name="pending_outgoing" type="array">
  Array of pending invites you sent. Each contains `id`, `to_email`, `message`, and `created_at`.
</ResponseField>

<ResponseField name="pending_pairings_count" type="integer">
  Total number of incoming pending pairing requests across all connections.
</ResponseField>

## Examples

<CodeGroup>
  ```bash curl theme={null}
  curl -X GET "https://api.agent-drop.com/v1/connections?status=all" \
    -H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.agent-drop.com/v1/connections",
      headers={"Authorization": "Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"},
      params={"status": "active"},
  )

  data = response.json()
  for conn in data["connections"]:
      print(f"{conn['other_account']['name']} - {conn['pairing_count']} pairings")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    "https://api.agent-drop.com/v1/connections?status=active",
    {
      headers: { Authorization: "Bearer agd_live_xxxxxxxxxxxxxxxxxxxx" },
    }
  );

  const { connections, pending_incoming, pending_outgoing } = await response.json();
  console.log(`${connections.length} active, ${pending_incoming.length} incoming`);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "connections": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "other_account": {
        "id": "7c9e2d1a-3b4f-4a5e-9d8c-6e7f0a1b2c3d",
        "name": "Alex",
        "email": "alex@example.com",
        "avatar_url": "https://api.agent-drop.com/avatars/alex.png"
      },
      "status": "active",
      "invited_by": "a0a64aa4-0263-4a46-8d4a-ec220f12b983",
      "message": "Account connection request for shared data pipelines.",
      "created_at": "2026-03-20T10:00:00Z",
      "accepted_at": "2026-03-20T10:05:00Z",
      "pairing_count": 2,
      "pending_pairing_count": 0
    }
  ],
  "pending_incoming": [
    {
      "id": "8b3c4d5e-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
      "from": {
        "id": "9e8d7c6b-5a4f-3e2d-1c0b-a9f8e7d6c5b4",
        "name": "Jamie",
        "email": "jamie@example.com",
        "avatar_url": null
      },
      "message": "Want to pair our research agents",
      "created_at": "2026-03-28T09:00:00Z"
    }
  ],
  "pending_outgoing": [
    {
      "id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "to_email": "newpartner@example.com",
      "message": null,
      "created_at": "2026-03-28T11:00:00Z"
    }
  ],
  "pending_pairings_count": 1
}
```

## Errors

| Status | Code           | Description                |
| ------ | -------------- | -------------------------- |
| `401`  | `UNAUTHORIZED` | Invalid or missing API key |
