# listPartnerships

List every partnership your organization has with another organization (ACTIVE, PENDING and TERMINATED) always viewed from your side: partnerOrg is the OTHER organization, and its id is the partnerOrgId every partnership mutation takes (terminatePartnership, updatePartnershipPermittedUsers, cancelPartnershipInvite). direction says whose leads flow to whom (SEND_ONLY: yours to theirs; RECEIVE_ONLY: theirs to yours; BIDIRECTIONAL). awaitingCurrentOrgResponse is true when the partner invited you and you have not answered: those are the rows listPendingPartnershipInvites returns. permittedUserIds are YOUR users the partner may see when sending leads (empty = all). This is the answer to "who are we partnered with?".

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

## Variables

None.

## Response (data, an example)

```json
{
  "orgPartnershipQuery": {
    "partnershipsForCurrentOrg": [
      {
        "id": "<ID>",
        "status": "PENDING",
        "direction": "SEND_ONLY",
        "awaitingCurrentOrgResponse": true,
        "partnerOrg": {
          "id": "<ID>",
          "name": "…"
        },
        "permittedUserIds": [
          "<ID>"
        ],
        "createdAt": "2026-01-01T00:00:00.000Z",
        "updatedAt": "2026-01-01T00:00:00.000Z"
      }
    ]
  }
}
```

## Example

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