Skip to main content
POST
Queue Session Message

Authorizations

X-Browser-Use-API-Key
string
header
required

Path Parameters

session_id
string<uuid>
required

Body

application/json

Send a message to a session. If the session is busy the message waits on the queue and runs as the next turn; if idle it runs immediately.

Set interrupt to make it take effect now: the session's active run is cancelled and this message drains straight after. Interrupt is a no-op when the session is already idle, and BEST-EFFORT when busy — if the cancel can't be delivered, the message stays queued and runs after the current turn.

text
string
required
Minimum string length: 1
interrupt
boolean
default:false
attachedFileIds
string<uuid>[] | null
Maximum array length: 20

Response

Successful Response

One message on a session's queue (a v4_session_input row).

id
integer
required
sessionId
string<uuid>
required
runId
string<uuid> | null
required
status
enum<string>
required
Available options:
pending,
dispatching,
consumed,
cancelled,
superseded,
failed
text
string
required
createdAt
string<date-time>
required
attachedFileIds
string<uuid>[] | null