Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string | null

A value you choose, up to 255 characters, that names this request for 24 hours. Repeat the call with the same key and the same body and you get the same turn back instead of a second paid one. The same key with another body is a 409.

Required string length: 1 - 255
Example:

"0b9c3a1e-77d4-4d8e-8d3a-6f5a2c1b9e11"

Path Parameters

conversationId
string<uuid>
required

The ID of the agent conversation, from its id.

Example:

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

Body

application/json

Exactly one of message and input_responses.

message
string | null
required

A new message, which starts a new turn. Up to 8,000 characters. Send either this or input_responses.

Required string length: 1 - 8000
Example:

"And in Paris?"

input_responses
Input Responses · object | null

Your answer to every entry of the latest turn's input_requests, keyed by the request's id. Answer all of them in one call; the same turn continues. Send either this or message.

wait_seconds
integer
default:0

How long to hold the request open for the conversation to stop working, from 0 to 60 seconds. The call returns as soon as the conversation is no longer working, or with the conversation as it stands when the wait ends. With 0, the default, it returns at once.

Required range: 0 <= x <= 60
Example:

30

Response

The conversation is not working: it needs your input, or its latest turn has ended.

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"