API referenceMessages
List waiting messages
GET
Messages a turn has not taken yet, oldest first. They run in that order.
bearerheader
AuthorizationBearer <token>An API token
id*stringA session id
Waiting messages
application/json- response
items*array<>curl -X GET 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/pending'Example Response
{ "items": [ { "submissionId": "string", "mode": "steer", "text": "string", "at": 0, "by": { "principal": "string", "name": "string" } } ]}Send a message POST
The same `idempotencyKey` is accepted once. While a turn runs, `whenBusy` `followUp` (default) waits for it to end and `steer` joins it. `attachments` are ids from the attachments route. Wait for the turn with the submissions route, or follow the events.
Withdraw a waiting message DELETE
Drops one message a turn has not taken yet. Withdrawing it twice is fine.