TODO: Resource-level docs
Path parameters
-
The SID of the Assistant that is the parent of the new resource.
Body
-
The ISO language-country string that specifies the language used for the new query. For example:
en-US. -
The SID or unique name of the Model Build to be queried.
-
The end-user's natural language input. It can be up to 2048 characters long.
-
The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task
unique_namevalues. For example,task-unique_name-1, task-unique_name-2. Listing specific tasks is useful to constrain the paths that a user can take.
POST
/v1/Assistants/{AssistantSid}/Queries
curl \
--request POST 'https://autopilot.twilio.com/v1/Assistants/{AssistantSid}/Queries' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Language=string&ModelBuild=string&Query=string&Tasks=string'
Response examples (201)
{
"account_sid": "string",
"assistant_sid": "string",
"date_created": "2026-05-04T09:42:00Z",
"date_updated": "2026-05-04T09:42:00Z",
"dialogue_sid": "string",
"language": "string",
"model_build_sid": "string",
"query": "string",
"sample_sid": "string",
"sid": "string",
"source_channel": "string",
"status": "string",
"url": "https://example.com"
}