Skip to main content
POST
Cancel a turn

Authorizations

X-API-Key
string
header
required

Path Parameters

conversationId
string<uuid>
required

The ID of the agent conversation, from its id.

Example:

"3f6c8f0e-2c1a-4b5e-9d7a-1b2c3d4e5f60"

Response

The conversation, idle, with its turn cancelled.

A conversation with the Specter Agent and its latest turn.

id
string<uuid>
required

The conversation's ID. Pass it to the other conversation endpoints.

Example:

"3f6c8f0e-2c1a-4b5e-9d7a-1b2c3d4e5f60"

state
enum<string>
required

working while the latest turn is queued or running. input_required while it waits for you. idle once it has completed, failed or been cancelled: a conversation never reads as failed, and is ready for another message.

Available options:
working,
input_required,
idle
Example:

"idle"

turn
Turn · object
required

The conversation's latest turn. Read an earlier one with Get a turn.

web_url
string
required

A link to the conversation in the Specter web app. It opens for anyone who can see the conversation there.

Example:

"https://app.tryspecter.com/agent/3f6c8f0e-2c1a-4b5e-9d7a-1b2c3d4e5f60"

created_at
string<date-time>
required

When the conversation started.

Example:

"2026-12-01T09:30:00Z"

updated_at
string<date-time>
required

When the conversation last changed.

Example:

"2026-12-01T09:30:48Z"