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

# Get Task

> Retrieve a single task by ID

## Request

### Path Parameters

<ParamField path="id" type="string" required>
  The task's unique ID (UUID)
</ParamField>

### Headers

```
Authorization: Bearer wbk_your_api_key_here
```

<Note>
  Requires an API key with the `activities:read` permission.
</Note>

## Response

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="task" type="object">
      <Expandable title="Task object">
        <ResponseField name="id" type="string">
          Unique task ID (UUID)
        </ResponseField>

        <ResponseField name="title" type="string">
          Task title
        </ResponseField>

        <ResponseField name="description" type="string">
          Task description (markdown supported)
        </ResponseField>

        <ResponseField name="status" type="string">
          `pending`, `in_progress`, `completed`, or `dismissed`
        </ResponseField>

        <ResponseField name="priority" type="string">
          `low`, `medium`, `high`, or `urgent`
        </ResponseField>

        <ResponseField name="task_type" type="string">
          Category (e.g., `call`, `email`, `follow_up`, `research`, `lexi_action`)
        </ResponseField>

        <ResponseField name="due_date" type="string">
          ISO 8601 date/timestamp the task is due
        </ResponseField>

        <ResponseField name="assigned_to_user_id" type="string">
          UUID of the user the task is assigned to
        </ResponseField>

        <ResponseField name="contact_id" type="string">
          UUID of the linked contact, if any
        </ResponseField>

        <ResponseField name="deal_id" type="string">
          UUID of the linked deal, if any
        </ResponseField>

        <ResponseField name="event_id" type="string">
          UUID of the linked calendar event, if any
        </ResponseField>

        <ResponseField name="created_date" type="string">
          ISO 8601 timestamp when the task was created
        </ResponseField>

        <ResponseField name="updated_date" type="string">
          ISO 8601 timestamp of last update
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<CodeGroup>
  ```bash cURL theme={null}
  curl https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/t1a2b3c4-d5e6-7890-abcd-ef1234567890 \
    -H "Authorization: Bearer wbk_your_api_key_here"
  ```

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

  API_KEY = "wbk_your_api_key_here"
  BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"
  TASK_ID = "t1a2b3c4-d5e6-7890-abcd-ef1234567890"

  response = requests.get(
      f"{BASE_URL}/v1/tasks/{TASK_ID}",
      headers={"Authorization": f"Bearer {API_KEY}"},
  )
  task = response.json()["data"]["task"]
  ```

  ```javascript JavaScript theme={null}
  const TASK_ID = 't1a2b3c4-d5e6-7890-abcd-ef1234567890';

  const response = await fetch(
    `https://data.leadlex.com/functions/v1/api-gateway/v1/tasks/${TASK_ID}`,
    { headers: { 'Authorization': 'Bearer wbk_your_api_key_here' } }
  );
  const { data } = await response.json();
  ```
</CodeGroup>

### Example Response

```json theme={null}
{
  "data": {
    "task": {
      "id": "t1a2b3c4-d5e6-7890-abcd-ef1234567890",
      "title": "Call Jane re: M&A proposal",
      "description": "Walk through section 4 of the draft agreement before Friday.",
      "status": "pending",
      "priority": "high",
      "task_type": "call",
      "due_date": "2026-04-19T15:00:00Z",
      "assigned_to_user_id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
      "contact_id": "123e4567-e89b-12d3-a456-426614174000",
      "deal_id": "3f8e1d2c-4b5a-6d7e-8f9a-0b1c2d3e4f5a",
      "event_id": null,
      "created_date": "2026-04-15T10:00:00Z",
      "updated_date": "2026-04-15T10:00:00Z"
    }
  }
}
```

## Errors

| Status | Code                       | Description                            |
| ------ | -------------------------- | -------------------------------------- |
| 401    | `invalid_key`              | Invalid or expired API key             |
| 403    | `insufficient_permissions` | Missing `activities:read` permission   |
| 404    | `task_not_found`           | No task with this ID in your workspace |
| 429    | `rate_limited`             | Rate limit exceeded                    |
