# listContactTasks

List every to-do task on one contact (by contactId from findContacts/getContact/listMyTasks): title, description, dueDate, completedAt, and assigned participants. Use it to review a contact's outstanding work before a call, or to find the taskId + contactId pair completeTask needs. Appointments are separate: see listAppointments.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listContactTasks", "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>",
      "name": "…",
      "tasks": [
        {
          "id": "<ID>",
          "title": "…",
          "description": "…",
          "taskType": "…",
          "dueDate": "2026-01-01T00:00:00.000Z",
          "timezone": "IDLW",
          "completedAt": "2026-01-01T00:00:00.000Z",
          "createdAt": "2026-01-01T00:00:00.000Z",
          "author": {
            "kind": "USER",
            "name": "…"
          },
          "participants": [
            {
              "id": "<ID>",
              "firstName": "…",
              "lastName": "…"
            }
          ]
        }
      ]
    }
  }
}
```

## Example

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