Skip to main content
cURL
curl --request POST \
  --url https://api.simplex.sh/set_dialog_settings \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "accept": true,
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "succeeded": true
}
Sets dialog settings for accepting or dismissing dialogs on currently running session.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

application/json
accept
boolean
required

Whether to accept or dismiss dialogs.

session_id
string<uuid>
required

The ID of the session to connect to.

Response

Set dialog settings response

succeeded
boolean

Indicates if the action succeeded.

Example:

true

I