---
title: "Create a cue for a project"
method: POST
path: "/api/v1/projects/{projectId}/cues"
tags: ["cues"]
---

# Create a cue for a project

`POST /api/v1/projects/{projectId}/cues`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/projects/{projectId}/cues`
- Auth: none declared

## Path parameters

- `projectId` string, required: Project whose cues are listed or extended.

## Request body

- CueDefinitionRequest
  - `command` string: Shell command for a command cue. At most 4096 bytes; cleared when saving agent cues.
  - `name` string, required: Short cue name, unique within the project. Trimmed; must be non-empty and at most 64 bytes.
  - `prompt` string: Agent instruction for an agent cue. At most 16384 bytes; cleared when saving command cues.
  - `type` string, required: Cue kind: command sends to a project- or session-scoped shell terminal; agent sends an authored prompt. Definition body limit: 128 KiB.

## Response `201`

Created

- CueEnvelope
  - `cue` CueResponse, required
    - `command` string
    - `createdAt` string, date-time, required
    - `id` string, required
    - `name` string, required
    - `projectId` string, required
    - `prompt` string
    - `type` string, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict
- `413`: Request Entity Too Large
- `500`: Internal Server Error
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 6 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `404`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `409`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `413`
  - …2 more
- **2026-10-06** `6815f1792150`: 1 breaking, 1 warning
  - removed the required property `cue/description` from the response with the `201` status
  - removed the request property `description`
- **2026-09-30** `fce4d8e71c06`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/projects/:projectId/cues/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
