canonical: https://jentic.com/apis/twilio.com/twilio---flex

# Twilio - Flex

This is the public Twilio REST API. The API exposes 72 endpoints secured with basic authentication.

## For AI agents

Programmatically add assessments against conversation to dynamo db. used in assessments screen by, get assessments done for a conversation by logged in user. Covers 72 operations with basic authentication.

## Scope

Does not handle payments, communications, or crm - use for developer tools only.

## Capabilities

- Add assessments against conversation to dynamo db. Used in assessments screen by
- Get assessments done for a conversation by logged in user
- Update a specific Assessment assessed earlier
- To create a comment assessment for a conversation
- Monitor Twilio - Flex operational status and events

## Use cases

### Developer Tools Operations

Use the Twilio - Flex to perform developer tools operations programmatically. The API provides 72 endpoints covering core functionality including add assessments against conversation to dynamo db. used in assessments screen by, get assessments done for a conversation by logged in user, update a specific assessment assessed earlier.

Example prompt: Call POST /v1/Insights/QualityManagement/Assessments to add assessments against conversation to dynamo db. used in assessments screen by

### Automated FlexV1AiInsights Management

Automate flexv1aiinsights operations by combining multiple Twilio - Flex endpoints. Agents can get assessments done for a conversation by logged in user and then update a specific assessment assessed earlier in a single workflow.

Example prompt: Call GET /v1/Insights/QualityManagement/Assessments to get assessments done for a conversation by logged in user, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Twilio - Flex endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle basic tokens manually.

Example prompt: Search Jentic for 'add assessments against conversation to dynamo db. used in assessments screen by', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /v1/Insights/QualityManagement/Assessments | Add assessments against conversation to dynamo db. Used in assessments screen by |
| GET | /v1/Insights/QualityManagement/Assessments | Get assessments done for a conversation by logged in user |
| POST | /v1/Insights/QualityManagement/Assessments/{AssessmentSid} | Update a specific Assessment assessed earlier |
| POST | /v1/Insights/QualityManagement/Assessments/Comments | To create a comment assessment for a conversation |
| GET | /v1/Insights/QualityManagement/Assessments/Comments | To create a comment assessment for a conversation |
| GET | /v1/Insights/Conversations | To get conversation with segment id |
| POST | /v1/Insights/QualityManagement/Questionnaires | To create a Questionnaire |
| GET | /v1/Insights/QualityManagement/Questionnaires | To get all questionnaires with questions |

## Key resources

- **FlexV1AiInsights** — Operations related to FlexV1AiInsights
- **FlexV1AiInsightsConversations** — Operations related to FlexV1AiInsightsConversations
- **FlexV1AiInsightsConversationsExportData** — Operations related to FlexV1AiInsightsConversationsExportData
- **FlexV1Assessments** — Operations related to FlexV1Assessments
- **FlexV1Channel** — Operations related to FlexV1Channel

## Why Jentic

- **Setup:** Wiring Twilio Flex by hand means setting up HTTP basic auth with your Account SID and Auth Token, pointing at the flex-api.twilio.com host, and handling pagination and retries across its many quality-management and insights operations yourself. Through Jentic you install once, import Twilio Flex from the API Directory, store the Account SID and Auth Token once, and your agent calls it.
- **Permission scoping:** Twilio Flex puts the assessment id in the URL path (/v1/Insights/QualityManagement/Assessments/{AssessmentSid}), so a rule can pin your agent to one assessment: it can update that assessment and nothing else. You choose the operations it may call, so anything beyond the assessment and comment operations you allow is not included unless you add it.
- **Credential handling:** Your Twilio Account SID and Auth Token are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'record a quality assessment against a conversation', and Jentic returns the matching Twilio Flex operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Github** — Alternative developer tools API
- **Gitlab** — Alternative developer tools API

## FAQ

### What authentication does the Twilio - Flex use?

The Twilio - Flex uses HTTP Basic authentication with username and password. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I add assessments against conversation to dynamo db. used in assessments screen by with the Twilio - Flex?

Yes. Use the POST /v1/Insights/QualityManagement/Assessments endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Twilio - Flex?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I add assessments against conversation to dynamo db. used in assessments screen by through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'add assessments against conversation to dynamo db. used in assessments screen by'. Jentic returns the matching Twilio - Flex operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Twilio - Flex have?

The Twilio - Flex exposes 72 endpoints covering flexv1aiinsights, flexv1aiinsightsconversations, flexv1aiinsightsconversationsexportdata operations.

### Can I limit what my agent is allowed to do with the Twilio Flex API?

Yes. Because Jentic One is self-hosted, you set the rules that decide which Twilio Flex operations and credentials your agent can use. You pick exactly which endpoints it may call, so it can be allowed to record or read quality-management assessments and comments while everything else stays off unless you add it. Since the assessment id sits in the URL path (/v1/Insights/QualityManagement/Assessments/{AssessmentSid}), a rule can even pin the agent to a single assessment so it updates that one and nothing else.
