Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Add synthetic message

Append a synthetic message to a session and resume execution.

POST/api/session/{sessionID}/synthetic
Path parameters
sessionIDobjectrequired
Request body
requiredapplication/json
textstringrequired
descriptionstring | any
Show properties
Any of:
string
string
any
any
metadataobject
resumeboolean | any
Show properties
Any of:
boolean
boolean
any
any
Responses
204<No Content>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404SessionNotFoundError
Any of:
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X POST "/api/session/%5Bobject%20Object%5D/synthetic" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string",
  "description": "string",
  "metadata": {},
  "resume": true
}'
Response
<No Content>