Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Get form state

Retrieve the current state for a form.

GET/api/session/{sessionID}/form/{formID}/state
Path parameters
sessionIDstringrequired
formIDobjectrequired
Responses
200Success
dataForm.Staterequired
Show properties
Any of:
object
statusstringrequired
Allowed:pending
object
statusstringrequired
Allowed:answered
answerForm.Answerrequired
object
statusstringrequired
Allowed:cancelled
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 | FormNotFoundError
Any of:
FormNotFoundError
_tagstringrequired
Allowed:FormNotFoundError
idstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X GET "/api/session/string/form/%5Bobject%20Object%5D/state"
Response
{
  "data": {
    "status": "pending"
  }
}