# Publish an AI action

```http
POST https://trydimmi.com/api/v1/ai/actions/{action}/publications
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `ai:actions`.

## Path parameters

- `action` (string, required): Id of the AI agent action, starting with aac_, such as aac_01jx2m8k4t. Find it with GET /ai/actions.

## Body

- `acknowledge_warnings` (string[] | null): A list of text values that is accepted but not used: publishing an action reads only its note. Leave it out.
- `note` (string): What changed, for the version history, up to 500 characters.

## Response 201 (Created)

- `data` (object, required)
  - `action_id` (string, required): Id of the action this version belongs to, such as aac_...
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `note` (string | null, required): What the publisher wrote about this version. Null when they left no note.
  - `number` (integer, required): The version's number within its action, starting at 1.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `published_by` (object, required)
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): Display name of the teammate who approved or declined the action call.
  - `spec` (any, required): The action's full definition as it was frozen when published: name, request, input schema, response fields and who must agree.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request POST \
  --url 'https://trydimmi.com/api/v1/ai/actions/{action}/publications' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "acknowledge_warnings": [
    "<string>"
  ],
  "note": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "action_id": "<string>",
    "created_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "note": "<string>",
    "number": 123,
    "object": "<string>",
    "published_by": {
      "id": "<string>",
      "name": "<string>"
    },
    "spec": null
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
