Skip to main content
POST
Start a conversation

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string | null

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

Required string length: 1 - 255
Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

Body

application/json
message
string
required

What to ask the agent, in plain English. Up to 8,000 characters.

Required string length: 1 - 8000
Example:

"Which Berlin fintechs raised a Series A in the last year?"

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"