---
title: "Create an action"
method: POST
path: "/actions"
tags: ["Actions"]
---

# Create an action

`POST /actions`

Create a reusable action from a catalog entry (`catalogEntryId`), with an optional `params` object supplying the values for that entry's service method. Returns 400 if the params are invalid for the chosen catalog entry.

## Request body

- CreateActionBody
  - `name` string, required
  - `description` string
  - `catalogEntryId` string, uuid, required
  - `params` object

## Response `201`

Action created

- object
  - `data` Action, required
    - `id` string, uuid, required
    - `userId` string, uuid, required — Deprecated: use ownerId (tenancy) / createdBy (actor).
    - `ownerId` string, uuid, required
    - `createdBy` string, uuid, nullable, required
    - `catalogEntryId` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `service` 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks', required
    - `method` string, required
    - `params` unknown
    - `paramsSchema` unknown
    - `createdAt` string, nullable, required
    - `updatedAt` string, nullable, required

## Other responses

- `400` — Bad Request

## Changes

- **2026-07-07** `d5d1e5ee8188` — 3 info
  - response property `data/userId` deprecated
  - added the required property `data/createdBy` to the response with the `201` status
  - added the required property `data/ownerId` to the response with the `201` status
- **2026-06-29** `8f06726ac240` — 1 breaking
  - the request property `params/additionalProperties/` became not nullable
- **2026-06-28** `fd8fb6b29e38` — 1 info
  - endpoint added
- **2026-06-27** `99b4ade46263` — 1 breaking
  - api path removed without deprecation
- **2026-06-19** `7f577998739b` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/droidrun/apis/droidrun-cloud/changes/actions/post.md)

---

[API](https://skmtc.dev/droidrun/apis/droidrun-cloud.md) · [All operations](https://skmtc.dev/droidrun/apis/droidrun-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/droidrun/droidrun-cloud/revisions/cd80ab1b29b0/schema)
