Get custom field mapping capacity for an account
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. 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/Capacity
Base url: https://insights.twilio.com (base url)
Returns the account's custom measure slot capacity — slots consumed and
remaining. Only the measure category is supported for now.
Custom field mapping capacity for the account.
Slots consumed and remaining for the measure category. Empty when not applicable for the account.
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 fetchCustomFieldMappingCapacity() {11const capacity = await client.insights.v3.capacity.fetch();1213console.log(capacity.measure);14}1516fetchCustomFieldMappingCapacity();
Response
1{2"measure": {3"consumed": 1,4"remaining": 25}6}