---
title: "Prompt Agent Session"
method: POST
path: "/api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/prompts"
---

# Prompt Agent Session

`POST /api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/prompts`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/agent-sessions/{agent-session-id}/prompts`
- Auth: HTTP bearer

Continue an explicitly selected session or request that its agent stop.

## Path parameters

- `workspace-slug` string, required
- `agent-session-id` string, uuid, required

## Request body

- Body2522570
  - `body` string, required: The message to the agent. Markdown is supported.
  - `idempotency_key` string, required: Client key that makes repeated identical requests return the same prompt.
  - `turn` integer, required: The current session turn.
  - `in_reply_to` string, uuid: The ID of the elicitation activity this prompt answers.
  - `signal` 'stop': Ask the agent to stop and publish a final response or error.

## Response `201`

Resource

- AgentActivity
  - `author_id` string, uuid, required
  - `content` ActivityContent, required: Typed activity content: thought, action, elicitation, response or error.
    - `type` 'error' | 'action' | 'prompt' | 'elicitation' | 'response' | 'thought', required
    - `action` string
    - `body` string
    - `parameter` string
    - `result` string
  - `created_at` string, date-time, required
  - `ephemeral` boolean, required
  - `id` string, uuid, required
  - `in_reply_to` string, uuid, nullable, required
  - `sequence` integer, required
  - `session_id` string, uuid, required
  - `signal` string, nullable, required
  - `signal_metadata` SignalMetadata, required: Metadata for the signal: a url for auth, options for select.
    - `options` SignalOption[]
      - `label` string, required
      - `value` string, required
    - `url` string
  - `superseded` boolean, required
  - `turn` integer, required
  - `workspace_id` string, uuid, required

## Other responses

- `400`: Schema mismatch
- `403`: **Either:** (1) Resource does not exist **or** (2)
- `404`: **Either:** (1) Resource does not exist **or** (2)
- `409`: **Either:** (1) Resource does not exist **or** (2)
- `422`: **Either:** (1) Resource does not exist **or** (2)
- `503`: **Either:** (1) Resource does not exist **or** (2)

## Changes

- **2026-10-15** `46322a38c246`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shortcut-com/apis/shortcut-api/changes/api/v4/:workspace-slug/agent-sessions/:agent-session-id/prompts/post.md)

---

[API](https://skmtc.dev/shortcut-com/apis/shortcut-api.md) · [All operations](https://skmtc.dev/shortcut-com/apis/shortcut-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shortcut-com/apis/shortcut-api/revisions/19f70025330b?raw)
