# Twilio - Flex API

> Twilio - Flex API on Apizie: 3 endpoints (Fetch flex user for the given flex user sid, Update flex user for the given flex user sid, POST /v2/WebChats) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/communication:twilio-twilio-flex-v2/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `communication:twilio-twilio-flex-v2`
- Category: Communication
- Status: byok
- Source: https://support.twilio.com
- Page: https://apizie.tech/api/communication/twilio-twilio-flex-v2
- OpenAPI: https://apizie.tech/api/communication/twilio-twilio-flex-v2/openapi.json

This is the public Twilio REST API.

## Endpoints

### Fetch flex user for the given flex user sid
`GET https://apizie.tech/v1/communication:twilio-twilio-flex-v2/fetch-flex-user` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| InstanceSid | string | yes | The unique ID created by Twilio to identify a Flex instance. |
| FlexUserSid | string | yes | The unique id for the flex user to be retrieved. |

### Update flex user for the given flex user sid
`POST https://apizie.tech/v1/communication:twilio-twilio-flex-v2/update-flex-user` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| InstanceSid | string | yes | The unique ID created by Twilio to identify a Flex instance. |
| FlexUserSid | string | yes | The unique id for the flex user. |
| body | object | no | Form fields as a JSON object |

### POST /v2/WebChats
`POST https://apizie.tech/v1/communication:twilio-twilio-flex-v2/create-web-channel` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| Ui-Version | string | no | The Ui-Version HTTP request header |
| body | object | no | Form fields as a JSON object |

## Example
```
curl "https://apizie.tech/v1/communication:twilio-twilio-flex-v2/fetch-flex-user" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Twilio - Flex API?
Create a free Apizie key, then send GET https://apizie.tech/v1/communication:twilio-twilio-flex-v2/fetch-flex-user with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Twilio - Flex API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Twilio - Flex itself also needs your own key from twilio.

### Can AI agents use the Twilio - Flex API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key communication:twilio-twilio-flex-v2.

### What is the status of the Twilio - Flex API?
Needs your own provider key (bring your own key)
