Conversation Intelligence (classic) - OperatorAttachments Subresource
The OperatorAttachments subresource represents the attached Pre-built or Custom Operators to a specific Intelligence Service.
Property nameTypeRequiredPIIDescriptionChild properties
The unique SID identifier of the Service.
Pattern:
^GA[0-9a-fA-F]{32}$Min length: 34Max length: 34List of Operator SIDs attached to the service. Includes both Custom and Pre-built Operators.
The URL of this resource.
GET https://intelligence.twilio.com/v2/Services/{ServiceSid}/Operators
This endpoint retrieves all Pre-Built and Custom Operators that are attached to a Service.
Property nameTypeRequiredPIIDescription
The unique SID identifier of the Service.
Pattern:
^LY[0-9a-fA-F]{32}$Min length: 34Max length: 341// 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 at twilio.com/console5// Provision API Keys at twilio.com/console/runtime/api-keys6// and set the environment variables. See http://twil.io/secure7// For local testing, you can use your Account SID and Auth token8const accountSid = process.env.TWILIO_ACCOUNT_SID;9const apiKey = process.env.TWILIO_API_KEY;10const apiSecret = process.env.TWILIO_API_SECRET;11const client = twilio(apiKey, apiSecret, { accountSid: accountSid });1213async function fetchOperatorAttachments() {14const operatorAttachment = await client.intelligence.v215.operatorAttachments("LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")16.fetch();1718console.log(operatorAttachment.serviceSid);19}2021fetchOperatorAttachments();
Response
1{2"service_sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"operator_sids": [4"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",5"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"6],7"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Operators"8}