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

# List Actions

> List actions, with filters for location, status, and who created or is assigned them.

Returns actions, newest first.

> [!NOTE]
>
> Actions must be enabled for your workspace. Contact Xenia to enable it. Until then, every Actions endpoint returns `403` with "Actions are not enabled for this workspace."

## Permissions

The key acts as its default user, or the user in the `x-client-user` header (who must be in the workspace). That user's location access and role permissions apply.

* The user sees actions at the stores they have access to, plus any action assigned to them
* Without **Can View Actions** on the user's role, the list only returns actions assigned to the user

## Path parameters

**workspaceId** `string\<uuid\>` *required*

UUID of the workspace. Must be the workspace your API key is bound to.

## Query parameters

All optional, combined with AND.

**locationId** `string\<uuid\>`

Only actions at this location.

**status** `string`

`open` or `done`.

**createdByMe** `boolean`

`true` to return only actions created by the key's user.

**assignedToMe** `boolean`

`true` to return only actions assigned to the key's user, directly or through their team, role, or location.

**limit** `integer` (default: 50)

1 to 200.

**cursor** `string`

The `nextCursor` from the previous page.

## Pagination

Pass the previous page's `nextCursor` as `cursor` to get the next page. `nextCursor` is `null` on the last page.

## Response

Returns `200` with `{ "data": { "actions": [<action>, …], "nextCursor": "<string>" | null } }`. Each action has the same shape as the [Create Action](https://docs.xenia.team/api-reference/endpoints/actions/create-action.md) response.

## Errors

Errors return the message at `error.message`.

| Status | When |
| - | - |
| `400` | A bad parameter, such as "locationId must be a uuid", "status must be open or done", "limit must be an integer from 1 to 200", or "Invalid cursor" |
| `401` | Invalid client credentials |
| `403` | Actions are not enabled for this workspace |

```bash cURL theme={null}
curl "https://api.xenia.team/api/v1/ops/workspaces/{workspaceId}/actions?status=open&limit=50" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "x-client-secret: YOUR_CLIENT_SECRET"
```

```json 200 theme={null}
{
  "data": {
    "actions": [
      {
        "id": "5e2d…",
        "kind": "logged",
        "status": "done",
        "location": { "id": "8f1c…", "name": "Downtown" },
        "title": "Walked the floor with the new closer",
        "note": "Covered greeting and paint upsell.",
        "createdVia": "app",
        "evidenceRequired": "none",
        "recheckAt": "2026-11-23T15:00:00.000Z",
        "dueAt": null,
        "attachments": [],
        "coached": [{ "kind": "user", "userId": "2b7e…", "name": "Sam Lee" }],
        "assignees": [],
        "completion": {
          "kind": "done",
          "completedAt": "2026-11-16T16:40:00.000Z",
          "completedBy": { "id": "9d03…", "name": "Alex Kim" },
          "note": null,
          "attachments": []
        },
        "createdBy": { "id": "9d03…", "name": "Alex Kim" },
        "createdAt": "2026-11-16T16:41:05.120Z",
        "updatedAt": "2026-11-16T16:41:05.120Z"
      }
    ],
    "nextCursor": "eyJhdCI6…"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.