<!-- Source: https://docs.vinsi.ai/api-docs/crm-activity-tasks -->
# Get Activity Tasks

List the tasks of a CRM activity, ordered by sortOrder then creation time. activityId is required.

```http
GET https://dashboard.vinsi.ai/api/crm/activity-tasks?activityId={activityId}
```

## Authentication

Send your API key in the `x-api-key` header. Create keys in the VINSI dashboard under Settings → API Keys.

## Headers

| Name | Type | Required |
|---|---|---|
| Content-Type | string | yes (application/json) |
| x-api-key | string | yes |

## Query parameters

| Name | Required | Example |
|---|---|---|
| activityId | yes | 5120 |

## Example request

```bash
curl -X GET 'https://dashboard.vinsi.ai/api/crm/activity-tasks?activityId=5120' \
  -H 'x-api-key: YOUR_API_KEY'
```

## Example response

```json
[
  {
    "id": 901,
    "activityId": 5120,
    "title": "Email the annual plan quote",
    "description": "Use the standard pricing template.",
    "status": "Open",
    "assignedToId": "cmexampleuser0000000000002",
    "dueBy": "2026-09-17T17:00:00.000Z",
    "createdById": "cmexampleuser0000000000001",
    "completedAt": null,
    "sortOrder": 1,
    "lastDueReminderAt": null,
    "createdAt": "2026-09-15T20:15:00.000Z",
    "updatedAt": "2026-09-15T20:15:00.000Z",
    "AssignedTo": {
      "id": "cmexampleuser0000000000002",
      "firstName": "Sam",
      "lastName": "Rivera",
      "email": "sam.rivera@example.com"
    },
    "CreatedBy": {
      "id": "cmexampleuser0000000000001",
      "firstName": "Jane",
      "lastName": "Doe",
      "email": "jane.doe@example.com"
    }
  }
]
```

