Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Wait for session

Wait for a session agent loop to become idle.

POST/api/session/{sessionID}/wait
Path parameters
sessionIDobjectrequired
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
503ServiceUnavailableError
_tagstringrequired
Allowed:ServiceUnavailableError
messagestringrequired
servicestring | any
Show properties
Any of:
string
string
any
any
Request
curl -X POST "/api/session/%5Bobject%20Object%5D/wait"
Response
<No Content>