getOrSetState
Retrieves the State object for a valid identifiers. If the state does not exist, it creates a new state.
POST
Path Parameters
State type
Available options:
conversation
, user
, bot
, integration
, task
, workflow
State id
State name
Body
application/json
State content
Payload is the content of the state defined by your bot.
Response
200
application/json
Returns the [State](#schema_state) object if a valid identifiers were provided. Returns [an error](#errors) otherwise.
The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
Was this page helpful?