Skip to main content
POST
Creates an action at a store. There are two kinds:
  • Logged: something already done, such as a coaching conversation. Saved as done.
  • Assigned: something someone needs to do. Saved as open.
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. Creating actions requires Can View Actions on the user’s role. When Actions is turned on for a workspace, its Owner and Admin roles get Can View Actions.

Path parameters

string<uuid>
required
UUID of the workspace. Must be the workspace your API key is bound to.

Body: both kinds

string
required
logged or assigned.
string<uuid>
required
A store the user has access to. That’s a site-level location, or a bottom-level location if the workspace doesn’t use levels. Parent locations, like a district or region, are refused.
string
Up to 200 characters. At least one of title or note is required.
string
Up to 10,000 characters. At least one of title or note is required.
string<date-time>
When to check back.

Body: logged only

object[]
Up to 50 people. Each is { "userId": "<uuid>" } for a workspace user, or { "name": "Sam Lee" } (up to 200 characters) for someone without an account. The same user can’t be listed twice.
string<date-time>
When it was done. Defaults to now and can’t be in the future.

Body: assigned only

object[]
required
1 to 50 assignees, with no duplicates. Each is { "type": "user" | "team" | "role" | "location", "id": "<uuid>" }. Every id must exist in the workspace.
string<date-time>
When it’s due.
string
default:"none"
none or photo.
All timestamps are ISO 8601 with a timezone, such as 2026-11-20T17:00:00Z. Date-only values are rejected. Sending a field to the wrong kind is an error, such as “dueAt is only for assigned actions”. Unknown fields are ignored.

Response

Returns 200 with { "data": <action> }.
  • completion is { "kind": "open" }, or { "kind": "done", "completedAt", "completedBy": { "id", "name" }, "note", "attachments" }
  • coached entries come back as { "kind": "user", "userId", "name" } or { "kind": "name", "name" }
  • createdVia is read-only and shows where the action came from: app, api, or mcp

Errors

Errors return the message at error.message.
The 422 body is { "error": { "message": "..." } } only, without the extra fields shown on the Error handling page.