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

# Get Action

> Get a single action by id.

Returns one action.

> [!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 can get actions at the stores they have access to, plus any action assigned to them
* Without **Can View Actions** on the user's role, only actions assigned to the user

An action the user can't see returns `404`, the same as one that doesn't exist.

## Path parameters

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

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

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

UUID of the action.

## Response

Returns `200` with `{ "data": <action> }`. The 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 |
| - | - |
| `401` | Invalid client credentials |
| `403` | Actions are not enabled for this workspace |
| `404` | "Action not found." The id is unknown or not a uuid, or the user can't see the action |

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

```json 200 theme={null}
{
  "data": {
    "id": "c41a…",
    "kind": "assigned",
    "status": "open",
    "location": { "id": "8f1c…", "name": "Downtown" },
    "title": "Re-face the paint aisle",
    "note": null,
    "createdVia": "api",
    "evidenceRequired": "photo",
    "recheckAt": null,
    "dueAt": "2026-11-20T17:00:00.000Z",
    "attachments": [],
    "coached": [],
    "assignees": [{ "type": "user", "id": "2b7e…", "name": "Sam Lee" }],
    "completion": { "kind": "open" },
    "createdBy": { "id": "9d03…", "name": "Alex Kim" },
    "createdAt": "2026-11-16T18:02:11.482Z",
    "updatedAt": "2026-11-16T18:02:11.482Z"
  }
}
```

```json 404 theme={null}
{ "error": { "message": "Action not found." } }
```


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