Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

OperatorAttachments Resource


The OperatorAttachments resource represents the link between Prebuilt or Custom Operator and a specific Voice Intelligence Service.


OperatorAttachments Properties

operatorattachments-properties page anchor
Property nameTypePIIDescription
service_sidSID<GA>
Not PII

The unique SID identifier of the Service.

Pattern: ^GA[0-9a-fA-F]{32}$Min length: 34Max length: 34

operator_sidsarray[SID<LY>]

List of Operator SIDs attached to the service. Includes both Custom and Pre-built Operators.


urlstring<uri>

The URL of this resource.


Fetch Operator attachments

fetch-operator-attachments page anchor
GET https://intelligence.twilio.com/v2/Services/{ServiceSid}/Operators

This endpoint retrieves all Pre-Built and Custom Operators that are attached to a Service.

Path parameters

path-parameters page anchor
Property nameTypeRequiredPIIDescription
ServiceSidSID<LY>required

The unique SID identifier of the Service.

Pattern: ^LY[0-9a-fA-F]{32}$Min length: 34Max length: 34

Fetch an OperatorAttachments

fetch-an-operatorattachments page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_14
// Download the helper library from https://www.twilio.com/docs/node/install
_14
import twilio from "twilio";
_14
_14
// Find your Account SID and Auth Token at twilio.com/console
_14
// and set the environment variables. See http://twil.io/secure
_14
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_14
const authToken = process.env.TWILIO_AUTH_TOKEN;
_14
const client = twilio(accountSid, authToken);
_14
_14
const operatorAttachment = await client.intelligence.v2
_14
.operatorAttachments("LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_14
.fetch();
_14
_14
console.log(operatorAttachment.serviceSid);

Output

_10
{
_10
"service_sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"operator_sids": [
_10
"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10
"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
_10
],
_10
"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Operators"
_10
}


Rate this page: