The PrebuiltOperator subresource of the Operator resource represents a Prebuilt Operator.
The unique SID identifier of the Account the Pre-built Operator belongs to.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A 34 character string that uniquely identifies this Pre-built Operator.
^LY[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A human-readable description of this resource, longer than the friendly name.
The creator of the Operator. Pre-built Operators can only be created by Twilio.
Operator Type for this Operator. References an existing Operator Type resource.
Numeric Operator version. Incremented with each update on the resource, used to ensure integrity when updating the Operator.
0
Operator availability status. Possible values: internal, beta, public, retired.
internal
beta
public
retired
Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account, will be empty for Pre-Built Operators.
The date that this Pre-built Operator was created, given in ISO 8601 format.
The date that this Pre-built Operator was updated, given in ISO 8601 format.
The URL of this resource.
GET https://intelligence.twilio.com/v2/Operators/PreBuilt/{Sid}
This endpoint retrieves the details of a Prebuilt Operator using its SID.
A 34 character string that uniquely identifies this Pre-built Operator.
^LY[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
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 fetchPrebuiltOperator() {11const prebuiltOperator = await client.intelligence.v212.prebuiltOperators("LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.fetch();1415console.log(prebuiltOperator.accountSid);16}1718fetchPrebuiltOperator();
1{2"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",4"friendly_name": "My New Operator",5"description": "New Operator",6"author": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",7"operator_type": "operator-type-name",8"version": 1,9"availability": "public",10"config": {11"configuration": {12"field": "value"13}14},15"date_created": "2010-08-31T20:36:28Z",16"date_updated": "2010-08-31T20:36:28Z",17"url": "https://intelligence.twilio.com/v2/Operators/PreBuilt/LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"18}
GET https://intelligence.twilio.com/v2/Operators/PreBuilt
This endpoint lists all available Prebuilt Operators for an Account, with optional filtering.
Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
internal
beta
public
retired
Returns Pre-built Operators that support the provided language code.
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 listPrebuiltOperator() {11const prebuiltOperators = await client.intelligence.v2.prebuiltOperators.list(12{ limit: 20 }13);1415prebuiltOperators.forEach((p) => console.log(p.accountSid));16}1718listPrebuiltOperator();
1{2"operators": [3{4"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",6"friendly_name": "My New Operator",7"description": "New Operator",8"author": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",9"operator_type": "operator-type-name",10"version": 1,11"availability": "public",12"config": {13"configuration": {14"field": "value"15}16},17"date_created": "2010-08-31T20:36:28Z",18"date_updated": "2010-08-31T20:36:28Z",19"url": "https://intelligence.twilio.com/v2/Operators/PreBuilt/LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"20}21],22"meta": {23"first_page_url": "https://intelligence.twilio.com/v2/Operators/PreBuilt?LanguageCode=en&Availability=public&PageSize=50&Page=0",24"key": "operators",25"next_page_url": null,26"page": 0,27"page_size": 50,28"previous_page_url": null,29"url": "https://intelligence.twilio.com/v2/Operators/PreBuilt?LanguageCode=en&Availability=public&PageSize=50&Page=0"30}31}