---
title: Request, cURL & Response Payloads
slug: voice-apis/request-curl-and-response-payloads
docTags: 
createdAt: 2026-01-20T02:12:55.581Z
---

## Endpoint (All Actions)

**POST**

:::BlockQuote
/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions
:::

**Full URL**

:::BlockQuote
https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions
:::

## Authentication

:::BlockQuote
Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>
Content-Type: application/json
:::

## \<Answer>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "answer\_call",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Answer>\</Answer>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "answer\_call",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Answer>\</Answer>\</Flow>"
}'
:::

## \<Dial>

### Request Parameters

| Attribute   | Required | Description                   |
| ----------- | -------- | ----------------------------- |
| contactUri  | Yes      | Destination number or SIP URI |
| exophone    | Yes      | Caller ID                     |
| networkType | No       | pstn or voip                  |
| absorbDtmf  | No       | Absorb DTMF during dial       |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "test\_dial",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Dial contactUri=\\"9791111865\\" exophone=\\"02048566335\\" networkType=\\"pstn\\" absorbDtmf=\\"true\\">\</Dial>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "test\_dial",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Dial contactUri=\\"9791111865\\" exophone=\\"02048566335\\" networkType=\\"pstn\\" absorbDtmf=\\"true\\">\</Dial>\</Flow>"
}'
:::

## \<Gather>

### Request Parameters

| Attribute    | Required | Description                 |
| ------------ | -------- | --------------------------- |
| numDigits    | No       | Number of digits to collect |
| timeoutInSec | No       | Timeout duration            |
| finishOnKey  | No       | Key to terminate input      |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "collect\_digits",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Gather numDigits=\\"4\\" timeoutInSec=\\"10\\" finishOnKey=\\"#\\">\</Gather>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "collect\_digits",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Gather numDigits=\\"4\\" timeoutInSec=\\"10\\" finishOnKey=\\"#\\">\</Gather>\</Flow>"
}'
:::

## \<Hangup>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "hangup\_call",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Hangup>\</Hangup>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "hangup\_call",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Hangup>\</Hangup>\</Flow>"
}'
:::

## \<Hold>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "hold\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Hold>\</Hold>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "hold\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Hold>\</Hold>\</Flow>"
}'
:::

## \<JoinBridge>

### Request Parameters

| Attribute  | Required | Description       |
| ---------- | -------- | ----------------- |
| bridgeSid  | Yes      | Bridge identifier |
| absorbDtmf | No       | Absorb DTMF       |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "join\_bridge",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<JoinBridge bridgeSid=\\"BRIDGE\_SID\\" absorbDtmf=\\"true\\">\</JoinBridge>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "join\_bridge",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<JoinBridge bridgeSid=\\"BRIDGE\_SID\\" absorbDtmf=\\"true\\">\</JoinBridge>\</Flow>"
}'
:::

## \<LeaveBridge>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "leave\_bridge",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<LeaveBridge>\</LeaveBridge>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "leave\_bridge",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<LeaveBridge>\</LeaveBridge>\</Flow>"
}'
:::

## \<Mute> / \<UnMute>

### Request Parameters

| Attribute | Required | Description   |
| --------- | -------- | ------------- |
| direction | No       | in, out, both |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "mute\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Mute direction=\\"out\\">\</Mute>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "mute\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Mute direction=\\"out\\">\</Mute>\</Flow>"
}'
:::

## \<PlaySequence>

### Request Parameters

Nested media actions only.

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "play\_sequence",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<PlaySequence>\<StartPlay>https\://example.com/audio.wav\</StartPlay>\<Say>Hello\</Say>\</PlaySequence>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "play\_sequence",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<PlaySequence>\<StartPlay>https\://example.com/audio.wav\</StartPlay>\<Say>Hello\</Say>\</PlaySequence>\</Flow>"
}'
:::

## \<Refer>

### Request Parameters

| Attribute        | Required | Description   |
| ---------------- | -------- | ------------- |
| legEventEndpoint | Yes      | gRPC endpoint |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "refer\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Refer legEventEndpoint=\\"grpc://host\:port\\">\</Refer>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "refer\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Refer legEventEndpoint=\\"grpc://host\:port\\">\</Refer>\</Flow>"
}'
:::

## \<Say>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "say\_text",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Say>Hello\</Say>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "say\_text",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Say>Hello\</Say>\</Flow>"
}'
:::

## \<SendDigits>

### Request Parameters

| Attribute | Required | Description        |
| --------- | -------- | ------------------ |
| duration  | No       | Tone duration (ms) |
| between   | No       | Gap between digits |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "send\_digits",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<SendDigits duration=\\"100\\" between=\\"500\\">1234#\</SendDigits>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "send\_digits",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<SendDigits duration=\\"100\\" between=\\"500\\">1234#\</SendDigits>\</Flow>"
}'
:::

## \<StartMonitoring>

### Request Parameters

| Attribute        | Required | Description     |
| ---------------- | -------- | --------------- |
| monitoringLegSid | Yes      | Target leg SID  |
| rxAudio          | No       | muted / enabled |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "start\_monitoring",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartMonitoring monitoringLegSid=\\"LEG\_SID\\" rxAudio=\\"muted\\">\</StartMonitoring>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "start\_monitoring",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartMonitoring monitoringLegSid=\\"LEG\_SID\\" rxAudio=\\"muted\\">\</StartMonitoring>\</Flow>"
}'
:::

## \<StartPlay>

### Request Parameters

| Attribute  | Required | Description                            |
| ---------- | -------- | -------------------------------------- |
| Body (URL) | Yes      | Public or authenticated audio file URL |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "start\_play",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartPlay>https\://example.com/audio.wav\</StartPlay>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "start\_play",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartPlay>https\://example.com/audio.wav\</StartPlay>\</Flow>"
}'
:::

## \<StartRecording>

### Request Parameters

| Attribute   | Required | Description     |
| ----------- | -------- | --------------- |
| direction   | No       | in, out, both   |
| format      | No       | wav, mp3        |
| storageType | No       | https, s3       |
| storageURL  | No       | Upload endpoint |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "start\_recording",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartRecording direction=\\"both\\" format=\\"wav\\" storageType=\\"https\\" storageURL=\\"https\://example.com/upload\\">\</StartRecording>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "start\_recording",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartRecording direction=\\"both\\" format=\\"wav\\" storageType=\\"https\\" storageURL=\\"https\://example.com/upload\\">\</StartRecording>\</Flow>"
}'
:::

## \<StartStream>

### Request Parameters

| Attribute  | Required | Description                    |
| ---------- | -------- | ------------------------------ |
| streamType | Yes      | unidirectional / bidirectional |
| streamUrl  | Yes      | WebSocket endpoint             |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "start\_stream",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartStream streamType=\\"bidirectional\\" streamUrl=\\"wss\://example.com/stream\\">\</StartStream>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "start\_stream",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StartStream streamType=\\"bidirectional\\" streamUrl=\\"wss\://example.com/stream\\">\</StartStream>\</Flow>"
}'
:::

## \<StopMonitoring>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "stop\_monitoring",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopMonitoring>\</StopMonitoring>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "stop\_monitoring",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopMonitoring>\</StopMonitoring>\</Flow>"
}'
:::

## \<StopPlay>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "stop\_play",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopPlay>\</StopPlay>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "stop\_play",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopPlay>\</StopPlay>\</Flow>"
}'
:::

## \<StopRecording>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "stop\_recording",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopRecording>\</StopRecording>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "stop\_recording",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopRecording>\</StopRecording>\</Flow>"
}'
:::

## \<StopSay>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "stop\_say",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopSay>\</StopSay>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "stop\_say",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopSay>\</StopSay>\</Flow>"
}'
:::

## \<StopStream>

### Request Parameters

| Attribute | Required | Description       |
| --------- | -------- | ----------------- |
| streamSid | Yes      | Stream identifier |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "stop\_stream",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopStream streamSid=\\"STREAM\_SID\\">\</StopStream>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "stop\_stream",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<StopStream streamSid=\\"STREAM\_SID\\">\</StopStream>\</Flow>"
}'
:::

## \<UnHold>

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "unhold\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<UnHold>\</UnHold>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "unhold\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<UnHold>\</UnHold>\</Flow>"
}'
:::

## \<UnMute>

### Request Parameters

| Attribute | Required | Description   |
| --------- | -------- | ------------- |
| direction | No       | in, out, both |

### Request Payload

:::BlockQuote
\{
&#x20; "action\_custom\_param": "unmute\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<UnMute direction=\\"out\\">\</UnMute>\</Flow>"
}
:::

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/legs/&#x7B;leg\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "unmute\_leg",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<UnMute direction=\\"out\\">\</UnMute>\</Flow>"
}'
:::

