# getLineIntakeAssignments

Each phone line's own intake assignment (who gets the contacts its inbound traffic creates); null when the line follows the org default (getPhoneRouting's defaultInboundIntakePolicy).

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

## Variables

None.

## Response (data, an example)

```json
{
  "currentUser": {
    "organization": {
      "id": "<ID>",
      "twilioPhoneNumbers": [
        {
          "id": "<ID>",
          "e164Number": "…",
          "label": "…",
          "assignmentPolicy": {
            "id": "<ID>",
            "assigneeUserIds": [
              "<ID>"
            ],
            "participantUserIds": [
              "<ID>"
            ],
            "teamIds": [
              "<ID>"
            ],
            "tags": [
              "…"
            ],
            "agentAssigneeIds": [
              "<ID>"
            ],
            "workflowGroupIds": [
              "<ID>"
            ]
          }
        }
      ]
    }
  }
}
```

## Example

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