Skip to main content
POST
Send Artemis Message

Authorizations

X-API-Key
string
header
required

Organization API key

Headers

Idempotency-Key
string

Optional. Without a key, repeated submissions are treated as separate actions. A blank or over-long key is rejected. Reuse this key when retrying a submission; the SDK generates one per call and reuses it across automatic retries.

Required string length: 1 - 256

Body

application/json
message
string
required

What to ask Artemis, at most 32768 UTF-8 bytes.

session_id
string | null

A session to continue; omit it to start a new session.

Maximum string length: 64
write_handoff
boolean
default:false

Start a session whose writes come back to the caller as each turn's proposals, for it to make itself, instead of waiting for an approval here. Set when starting a session; a message to a session started otherwise is refused.

Response

Successful Response

session_id
string
required

The session the message joined; read it to get the answer.