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

# Endpoint (All Bridge Actions)

**POST**

:::BlockQuote
/v2/accounts/&#x7B;account\_sid}/bridges/&#x7B;bridge\_sid}/actions
:::

**Full URL**

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

## Authentication

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

## Common Response Payload (All Actions)

:::BlockQuote
\{
&#x20; "request\_id": "abc123",
&#x20; "http\_code": 202,
&#x20; "response": \{
&#x20;   "data": \{
&#x20;     "bridge\_sid": "BRIDGE\_SID"
&#x20;   }
&#x20; }
}
:::

:::BlockQuote
Actions are asynchronous. Confirm success/failure via **external events**.
:::

## \<Refer>

### Request Parameters

| Attribute           | Required | Description                                           |
| ------------------- | -------- | ----------------------------------------------------- |
| bridgeEventEndpoint | Yes      | gRPC endpoint where bridge events should be delivered |

### Request Payload

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

### cURL

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

## \<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}/bridges/&#x7B;bridge\_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>"
}'
:::

## \<StartSay> (Say)

### Request Payload

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

### cURL

:::BlockQuote
curl --location 'https\://cpaas-api.in.exotel.com/v2/accounts/&#x7B;account\_sid}/bridges/&#x7B;bridge\_sid}/actions' \\
\--header 'Authorization: Basic \<BASE64\_APIKEY\_APITOKEN>' \\
\--header 'Content-Type: application/json' \\
\--data '\{
&#x20; "action\_custom\_param": "start\_say",
&#x20; "exoml": "\<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\<Flow>\<Say>Hello everyone\</Say>\</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}/bridges/&#x7B;bridge\_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>"
}'
:::

## \<StartRecording>

### Request Parameters

| Attribute   | Required | Description     |
| ----------- | -------- | --------------- |
| 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 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}/bridges/&#x7B;bridge\_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 format=\\"wav\\" storageType=\\"https\\" storageURL=\\"https\://example.com/upload\\">\</StartRecording>\</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}/bridges/&#x7B;bridge\_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>"
}'
:::

