# List tasks

> A workspace's tasks, soonest due first.

Source: https://docs.mycrmsim.com/docs/tasks/list-tasks

```http
GET https://backend.mysmsgateway.app/api/v1/ext/tasks
```

- Category: myCRMSIM Tasks / Tasks
- Auth: Bearer access token
- Scope: `tasks.read`

Open tasks by default. Undated tasks come after dated ones.

`bucket` gives the same groups as the Tasks page: **overdue**, **today**, **upcoming** and **no_due** (open tasks only; "today" is the UTC day).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |
| `status` | query | enum | no | Default open. One of: `open`, `completed`, `all`. |
| `bucket` | query | enum | no | Overrides status. One of: `overdue`, `today`, `upcoming`, `no_due`. |
| `assignee_id` | query | number | no | Only tasks assigned to this team member. |
| `contact_id` | query | number | no | Only this contact's tasks. |
| `opportunity_id` | query | number | no | Only this opportunity's tasks. |
| `search` | query | string | no | Matches the title. |
| `page` | query | number | no | Default 1. Example: `1` |
| `limit` | query | number | no | 1–100, default 25. Anything else is a 400. Example: `25` |

## Response fields (task)

| Field | Type | Description |
| --- | --- | --- |
| `id` | number | Task id. |
| `workspace_id` | number | The workspace it belongs to. |
| `title` | string | What has to be done. |
| `description` | string, nullable | Details. |
| `priority` | string | "low", "medium" or "high". |
| `status` | string | "open" or "completed". |
| `due_at` | string (ISO 8601), nullable | When it is due, UTC. |
| `reminder_minutes_before` | number, nullable | Minutes before due_at the assignee is reminded. |
| `reminder_at` | string (ISO 8601), nullable | When the reminder goes out (worked out from the two above). |
| `assignee_id` | number, nullable | The team member it is assigned to — the account owner or one of its subaccount admins. |
| `contact` | object, nullable | The linked contact: id, first_name, last_name, email, phone_number, company_name. |
| `opportunity` | object, nullable | The linked opportunity: id, name, status. |
| `completed_at` | string (ISO 8601), nullable | When it was completed. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 300,
      "workspace_id": 7,
      "title": "Call Ann back about the quote",
      "description": null,
      "priority": "high",
      "status": "open",
      "due_at": "2026-11-03T09:00:00.000Z",
      "reminder_minutes_before": 15,
      "reminder_at": "2026-11-03T08:45:00.000Z",
      "assignee_id": 41,
      "contact_id": 1234,
      "contact": {
        "id": 1234,
        "first_name": "Ann",
        "last_name": "Lee",
        "email": "ann@example.com",
        "phone_number": "+61412345678",
        "company_name": "Lee Studio"
      },
      "opportunity_id": null,
      "opportunity": null,
      "completed_at": null,
      "created_at": "2026-10-27T09:00:00.000Z",
      "updated_at": "2026-10-27T09:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 25,
    "max_limit": 100,
    "total": 1,
    "total_pages": 1
  }
}
```

## Response 400

workspace_id missing, or a bad status / bucket

```json
{
  "success": false,
  "message": "workspace_id is required"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): tasks.read. This integration was granted: …"
}
```

## Response 404

workspace_id does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```
