Create DigitQuery

Add a new DigitQuery to an account.

Log in to see full request history

Notes

label

Name/Label for the DigitQuery.

soundfile

Sound File ID or Text to Speech string (prefixed with tts:).

maxdigits

Maximum digits allowed to enter.

mindigits

Minimum digits required to enter.

retries

Maximum retries allowed.

timeout

Timeout in seconds, if no input pressed.

invalid_prompt

Invalid prompt to be played or not.

callback_settings

Callback settings:

  • url - Callback URL
  • method - URL method GET, POST or JSON
  • url_username - URL authentication username
  • url_password - URL authentication password

match_pattern

Pattern to be matched to decide the destination.

match_destination

  • destination_type - Destination type if pattern matches.
  • destination - Destination ID if pattern matches.

nomatch_destination

  • destination_type - Destination type if pattern doesn't match.
  • destination - Destination ID if pattern doesn't match.

default_destination

  • destination_type - Default destination type.
  • destination - Default Destination ID.

email_options

  • email - Email address
  • subject - Email subject
  • body - Email body
Response Properties
PropertyTypeDescription
DigitQueryobjectDigitQuery
Body Params
string
required

Name/Label for DigitQuery.

string

DigitQuery soundfile or text to speech string

integer

Maximum digits allowed. Default is 1

integer

Minimum digits allowed. Default is 24

integer

Number of allowed retries. Default is 3

integer

Number of seconds before timeout. Default is 5 seconds

boolean

Play invalid prompt or not

callback_settings
object
string

Match pattern a regular expression

match_destination
object
nomatch_destination
object
default_destination
object
email_options
object
Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json