> ## 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 Activity

> Retrieve a single activity by its unique ID

## Request

### Path Parameters

<ParamField path="id" type="string" required>
  The activity'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="activity" type="object">
      <Expandable title="Activity object">
        <ResponseField name="id" type="string">Activity UUID</ResponseField>
        <ResponseField name="type" type="string">Activity type (e.g., `call`, `email`, `meeting`, `note`, `ai_action`)</ResponseField>
        <ResponseField name="title" type="string">Short title</ResponseField>
        <ResponseField name="description" type="string">Full description or body</ResponseField>
        <ResponseField name="contact_id" type="string">Linked contact UUID (nullable)</ResponseField>
        <ResponseField name="deal_id" type="string">Linked deal UUID (nullable)</ResponseField>
        <ResponseField name="entity_type" type="string">Polymorphic entity type</ResponseField>
        <ResponseField name="entity_id" type="string">Polymorphic entity UUID</ResponseField>
        <ResponseField name="entity_name" type="string">Entity display name</ResponseField>
        <ResponseField name="metadata" type="object">Type-specific structured data</ResponseField>
        <ResponseField name="created_by_user_id" type="string">UUID of the user or system that created the activity</ResponseField>
        <ResponseField name="created_date" type="string">ISO 8601 timestamp</ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<CodeGroup>
  ```bash cURL theme={null}
  curl https://data.leadlex.com/functions/v1/api-gateway/v1/activities/act_7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d \
    -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"
  ACTIVITY_ID = "act_7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d"

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

  ```javascript JavaScript theme={null}
  const ACTIVITY_ID = 'act_7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d';

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

### Example Response

```json theme={null}
{
  "data": {
    "activity": {
      "id": "act_7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d",
      "type": "call",
      "title": "Discovery call with Jane",
      "description": "Discussed Q2 outsourcing plans; next step is proposal.",
      "contact_id": "123e4567-e89b-12d3-a456-426614174000",
      "deal_id": "3f8e1d2c-4b5a-6d7e-8f9a-0b1c2d3e4f5a",
      "entity_type": null,
      "entity_id": null,
      "entity_name": null,
      "metadata": { "duration_minutes": 32, "direction": "outbound" },
      "created_by_user_id": "9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
      "created_date": "2026-04-17T14:23:05Z"
    }
  }
}
```

## Errors

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