The OperatorType resource represents the Type of a Prebuilt or Custom Operator.
A 34 character string that uniquely identifies this Operator Type.
^EY[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A human-readable description of this resource, longer than the friendly name.
Operator Results for this Operator Type will follow this format. Possible values: text-classification, text-extraction, text-extraction-normalized, text-generation.
text-classification
text-extraction
text-extraction-normalized
text-generation
Operators with this Operator Type are executed using this provider. Possible values: twilio, amazon, openai.
twilio
amazon
openai
Operator Type availability status. Possible values: internal, beta, general-availability, retired, deprecated.
internal
beta
general-availability
retired
deprecated
JSON Schema for configuring an Operator with this Operator Type. Following https://json-schema.org/
The date that this Operator Type was created, given in ISO 8601 format.
The date that this Operator Type was updated, given in ISO 8601 format.
The URL of this resource.
GET https://intelligence.twilio.com/v2/OperatorTypes/{Sid}
This endpoint retrieves the details of an Operator Type using its SID.
Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchOperatorType() {11const operatorType = await client.intelligence.v2.operatorType("Sid").fetch();1213console.log(operatorType.name);14}1516fetchOperatorType();
1{2"name": "Summarization",3"sid": "Sid",4"friendly_name": "Summarize Conversations",5"description": "Summarize Conversations",6"docs_link": "/docs/voice/intelligence/key-concepts#language-operators",7"output_type": "text-generation",8"supported_languages": [9"en"10],11"provider": "openai",12"availability": "general-availability",13"configurable": true,14"config_schema": {15"field": "value"16},17"date_created": "2010-08-31T20:36:28Z",18"date_updated": "2010-08-31T20:36:28Z",19"url": "https://intelligence.twilio.com/v2/OperatorTypes/EYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20}
GET https://intelligence.twilio.com/v2/OperatorTypes
This endpoint lists all available Operator Types for an Account.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listOperatorType() {11const operatorTypes = await client.intelligence.v2.operatorType.list({12limit: 20,13});1415operatorTypes.forEach((o) => console.log(o.name));16}1718listOperatorType();
1{2"operator_types": [3{4"name": "Summarization",5"sid": "EYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",6"friendly_name": "Summarize Conversations",7"description": "Summarize Conversations",8"docs_link": "/docs/voice/intelligence/key-concepts#language-operators",9"output_type": "text-generation",10"supported_languages": [11"en"12],13"provider": "openai",14"availability": "general-availability",15"configurable": true,16"config_schema": {17"field": "value"18},19"date_created": "2010-08-31T20:36:28Z",20"date_updated": "2010-08-31T20:36:28Z",21"url": "https://intelligence.twilio.com/v2/OperatorTypes/EYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"22}23],24"meta": {25"first_page_url": "https://intelligence.twilio.com/v2/OperatorTypes?PageSize=50&Page=0",26"key": "operator_types",27"next_page_url": null,28"page": 0,29"page_size": 50,30"previous_page_url": null,31"url": "https://intelligence.twilio.com/v2/OperatorTypes?PageSize=50&Page=0"32}33}