# getContactConnections

A contact's Links card (`externalLinks`), related people (`linkedRelationships`, with `linkedContactId`), relatives not yet contacts (`subContacts`) and the AI pause in force (`aiPause`, null when AI is on: its mode, when and until, the `reason` given, and who paused it: `pausedBy` a person, `pausedByAgentId` an AI employee (getEmployee names it), `pausedByWorkflowRunId` a workflow step, `pausedBySystem` a named job). For WHICH contacts have AI paused, filter on `aiPaused` (filterContacts, countContacts) instead of reading contacts one by one. The ids the link and relationship ops take. Merged ids resolve to the survivor.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getContactConnections", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `contactId`: `ID!` (required)

## Response (data, an example)

```json
{
  "contactQuery": {
    "contact": {
      "id": "<ID>",
      "externalLinks": [
        {
          "id": "<ID>",
          "title": "…",
          "url": "…"
        }
      ],
      "linkedRelationships": [
        {
          "id": "<ID>",
          "relation": "…",
          "note": "…",
          "linkedContactId": "<ID>"
        }
      ],
      "subContacts": [
        {
          "id": "<ID>",
          "name": "…",
          "relation": "…"
        }
      ],
      "aiPause": {
        "mode": "ALL",
        "pausedAt": "2026-01-01T00:00:00.000Z",
        "pausedUntil": "2026-01-01T00:00:00.000Z",
        "reason": "…",
        "pausedBy": {
          "id": "<ID>",
          "firstName": "…",
          "lastName": "…"
        },
        "pausedByAgentId": "<ID>",
        "pausedByWorkflowRunId": "<ID>",
        "pausedBySystem": "…"
      }
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getContactConnections",
    "variables": {
      "contactId": "<contactId>"
    }
  }'
```
