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

---

[API](https://skmtc.net/mobilerun/apis/workflows.md) · [All operations](https://skmtc.net/mobilerun/apis/workflows/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mobilerun/workflows/revisions/1bc499aa8f99/schema)
