Skip to contentSkip to navigationSkip to topbar

Fetch custom measure field mappings for an account


(new)

Public beta

Conversation Insights, including the APIs, is currently available as a public beta release and the information contained in this document is subject to change. Some features are not yet implemented and others may be changed before the product is declared as generally available. Public beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.

Conversation Insights is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.

Conversations products are only available in the new Twilio Console(link takes you to an external page). If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.

GET/v3/ControlPlane/ConversationInsights/CustomFieldMappings

Base url: https://insights.twilio.com (base url)

Returns custom field mappings registered for the account.


Request

fetch-custom-field-mappings-request page anchor

Authentication

authentication page anchor

200400401403429500

Custom field mappings registered for the account.

Schema
Property nameTypeRequiredPIIDescriptionChild properties
mappingsarray[object]

Optional

Not PII
Fetch custom measure field mappings for an accountLink to code sample: Fetch custom measure field mappings for an account
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 fetchCustomFieldMappings() {
11
const customFieldMapping =
12
await client.insights.v3.customFieldMappings.fetch();
13
14
console.log(customFieldMapping.mappings);
15
}
16
17
fetchCustomFieldMappings();

Response

Note about this response
1
{
2
"mappings": [
3
{
4
"id": "id",
5
"category": "MEASURE",
6
"name": "name",
7
"description": "description",
8
"entityMetadata": "cannot-guess",
9
"createdAt": "2009-07-06T20:30:00Z",
10
"updatedAt": "2009-07-06T20:30:00Z"
11
}
12
]
13
}