Skip to main content
POST
Read the streaming guide for event handling and resume behavior.

Authorizations

x-compose-key
string
header
required

Compose spending-session token. Also accepted as an Authorization Bearer token.

Headers

x-session-user-address
string

Spending wallet subject or authenticated canonical account address; the API verifies that identity.

x-network-id
string

Settlement network in CAIP-2 format, such as near:mainnet.

Path Parameters

id
string<uuid>
required

Body

application/json
input
string
Maximum string length: 32000
attachments
object[]
Maximum array length: 8
dry
boolean
threadId
string
Required string length: 1 - 200
coordinator
object | null
connectorDecisions
object[]
Maximum array length: 16

Response

Stream of newline-delimited JSON events.

type
enum<string>
required
Available options:
thread:init
threadId
string
required
runId
string
required