Commands

Create Command

Creates a new command in your organization.

Commands are reusable prompt templates that users can invoke by name.

post/api/commands

Request

  • Base URL: https://app.withwillow.ai
  • URL: https://app.withwillow.ai/api/commands
  • Auth: HTTP bearer

Request body

namestring required
slugstring required
descriptionstring
output_contentstring required

The command prompt template

status'active' | 'draft'

Example request

{
  "name": "Summarize",
  "slug": "summarize"
}

Response

Command created successfully

Example response

{
  "data": {
    "id": "cmd_abc123",
    "slug": "summarize",
    "name": "Summarize",
    "description": "Summarize text content",
    "status": "active",
    "created_at": "2026-01-15T09:30:00Z",
    "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "updated_at": "2026-01-15T09:30:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.