Skip to contentSkip to navigationSkip to topbar
On this page

OperatorAttachments Resource


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


Operator Properties

operator-properties page anchor
Property nameTypeRequiredDescriptionChild properties
service_sidSID<GA>Optional
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>]Optional

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


urlstring<uri>Optional

The URL of this resource.


List all Operator attachments

list-all-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
List multiple OperatorsLink to code sample: List multiple Operators
1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function fetchOperatorAttachments() {
11
const operatorAttachment = await client.intelligence.v2
12
.operatorAttachments("LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.fetch();
14
15
console.log(operatorAttachment.serviceSid);
16
}
17
18
fetchOperatorAttachments();

Output

1
{
2
"service_sid": "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3
"operator_sids": [
4
"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5
"LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
6
],
7
"url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Operators"
8
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.