> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.next-dev.rtcleague.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.next-dev.rtcleague.com/_mcp/server.

# Place an outbound phone call

POST https://next-dev.rtcleague.com/api/v1/public/calls/outbound
Content-Type: application/json

Place an outbound phone call from one of your imported phone numbers. The selected number must be active and have an outbound SIP trunk configured. The agent or workflow attached to the phone number is used unless you override it.

Reference: https://docs.next-dev.rtcleague.com/api-reference/calls/make-outbound-call

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `phone_number_id` (string, required) — Public phone-number ID to call from (must be active with an outbound trunk).
- `destination_number` (string, required) — E.164 destination number, e.g. '+14155021922'.
- `agent_id` (string, optional) — Override the phone number's assigned agent.
- `workflow_id` (string, optional) — Override the phone number's assigned workflow.
- `metadata` (map from string to any, optional) — Optional metadata stored with the call session.

## Response

### 200

Successful Response

- `call_id` (string, required)
- `room_name` (string, required)
- `status` (string, required)
- `phone_number` (string, required)
- `destination_number` (string, required)

## Errors

### 422 Make Outbound Call Calls Outbound Post Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItem

- string
- integer

## Examples

**Request**

```json
{
  "phone_number_id": "tel_pn_b8e44d12",
  "destination_number": "+14155021922",
  "metadata": {
    "customer_id": "cus_123"
  }
}
```

**Response**

```json
{
  "call_id": "tel_call_19a8c4d3e2f1",
  "room_name": "call-a3f9b22e1c4d",
  "status": "initiated",
  "phone_number": "+12345401155",
  "destination_number": "+14155021922"
}
```

**SDK Code**

```python
import requests

url = "https://next-dev.rtcleague.com/api/v1/public/calls/outbound"

payload = {
    "phone_number_id": "tel_pn_b8e44d12",
    "destination_number": "+14155021922",
    "metadata": { "customer_id": "cus_123" }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://next-dev.rtcleague.com/api/v1/public/calls/outbound';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"phone_number_id":"tel_pn_b8e44d12","destination_number":"+14155021922","metadata":{"customer_id":"cus_123"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://next-dev.rtcleague.com/api/v1/public/calls/outbound"

	payload := strings.NewReader("{\n  \"phone_number_id\": \"tel_pn_b8e44d12\",\n  \"destination_number\": \"+14155021922\",\n  \"metadata\": {\n    \"customer_id\": \"cus_123\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://next-dev.rtcleague.com/api/v1/public/calls/outbound")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"phone_number_id\": \"tel_pn_b8e44d12\",\n  \"destination_number\": \"+14155021922\",\n  \"metadata\": {\n    \"customer_id\": \"cus_123\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://next-dev.rtcleague.com/api/v1/public/calls/outbound")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"phone_number_id\": \"tel_pn_b8e44d12\",\n  \"destination_number\": \"+14155021922\",\n  \"metadata\": {\n    \"customer_id\": \"cus_123\"\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://next-dev.rtcleague.com/api/v1/public/calls/outbound', [
  'body' => '{
  "phone_number_id": "tel_pn_b8e44d12",
  "destination_number": "+14155021922",
  "metadata": {
    "customer_id": "cus_123"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://next-dev.rtcleague.com/api/v1/public/calls/outbound");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"phone_number_id\": \"tel_pn_b8e44d12\",\n  \"destination_number\": \"+14155021922\",\n  \"metadata\": {\n    \"customer_id\": \"cus_123\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "phone_number_id": "tel_pn_b8e44d12",
  "destination_number": "+14155021922",
  "metadata": ["customer_id": "cus_123"]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://next-dev.rtcleague.com/api/v1/public/calls/outbound")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```