Variables
The Variables endpoint can be used to retrieve all or a subset of a specific conversation variables.
This endpoint is not mean to be used to continuously retrieve conversation exchange state in realtime by polling. Requests made to the same conversation id are throttled to a 15 minutes window.
Request
The following request can be used to retrieve a bot audiences:
The ID parameter can be either a conversation id or a user id while the FIELDS parameter can be either a wildcard (*) or a comma separated list of variable names.
To request all variables for a conversations with ID equal to 12345, the call would look like this:
To request instead just the user email, it would look like this:
Or, instead, to request user email and phone number, it would look like this:
Response
If the call is successful, the complete list of selected variables will be returned.
Response Codes
This endpoint will reply with the following standard HTTP codes.
Code
Meaning
200
Ok. The request has been successfully fulfilled.
400
Bad Request. The call does not contain the data required to be fulfilled or you attempted to access the same conversation during the 2 minutes throttling.
401
Unauthorized. The account associated to the token is not authorized
Last updated
Was this helpful?