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

# Launch a call

POST https://connect.chatbridge.mx/v1/blaster/calls
Content-Type: application/json

Starts an automated phone call to a destination number. The `message` and `audio` fields are mutually exclusive: if both are sent, `message` takes precedence and `audio` is ignored. An `ACCEPTED` status only indicates that the request was accepted for processing; it does not imply that the call was answered or completed.

Reference: https://docs.chatbridge.mx/blaster/calls/launch-call

## Authentication

- `x-api-key` header (required) — Account authentication key.
- `Authorization` header (bearer token, required) — OAuth 2.0 access token issued by `POST /api/oauth/token` (client-credentials). Takes precedence over `x-api-key` when both are sent. See the Authentication section.

## Request

### Body (application/json)

This endpoint expects a CallRequest.

- `outbound_route` (string, required) — Outbound route identifier obtained through GET /v1/blaster/outbound-routes.
- `phone_number` (string, required) — 10-digit Mexican phone number, without country code.
- `message` (string, optional) — Text that will be converted to speech (TTS). Required when `audio` is not sent.
- `audio` (string, optional) — Audio identifier obtained through POST /v1/blaster/media/audio. Required when `message` is not sent.
- `ringtime` (integer, optional, default: 20) — Ring time in seconds before the call is considered unanswered. Optional; if not sent, the default value is applied.
- `transfer_to` (string, optional) — 10-digit phone number to which the call will be transferred once answered.
- `retry` (RetryConfig, optional) — Automatic retry configuration for the call. Retries are triggered when the call ends with a redialable SIP code (busy, unanswered, voicemail). In the worst case the number is dialed 1 + `max_attempts` times.

## Response

### 200

Request accepted for processing.

- `message_id` (string, optional) — Unique identifier of the call. It should be kept to correlate subsequent webhook events.
- `status` (enum, optional) — Result of the initial validation of the request.
  - Allowed values: `ACCEPTED`, `NOT_FOUND`, `INVALID_FORMAT`, `OUTPUT_NOT_FOUND`
- `operator` (string, optional) — Phone operator identified for the destination number.
- `is_mobile` (boolean, optional) — Indicates whether the number corresponds to a mobile line.
- `outbound_route` (string, optional)
- `phone_number` (string, optional)
- `message` (string, optional)
- `audio` (string, optional)
- `ringtime` (integer, optional)
- `retry` (RetryConfig, optional) — Automatic retry configuration for the call. Retries are triggered when the call ends with a redialable SIP code (busy, unanswered, voicemail). In the worst case the number is dialed 1 + `max_attempts` times.
- `transfer_to` (string, optional)

## Types

### RetryConfig

Automatic retry configuration for the call. Retries are triggered when the call ends with a redialable SIP code (busy, unanswered, voicemail). In the worst case the number is dialed 1 + `max_attempts` times.

- `max_attempts` (integer, required) — Maximum number of retries (additional dial attempts) if the call cannot be completed.
- `interval_minutes` (integer, required) — Wait time, in minutes, between each attempt.

## Examples

### Text-to-speech (TTS)

**Request**

```json
{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call."
}
```

**Response**

```json
{
  "message_id": "98b432ba-2394-439f-839a-3f4ac48b1c53",
  "status": "ACCEPTED",
  "operator": "axtel",
  "is_mobile": false,
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call."
}
```

**SDK Code**

```python Text-to-speech (TTS)
import requests

url = "https://connect.chatbridge.mx/v1/blaster/calls"

payload = {
    "outbound_route": "route-1",
    "phone_number": "5544332211",
    "message": "Hello, this is a test call."
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Text-to-speech (TTS)
const url = 'https://connect.chatbridge.mx/v1/blaster/calls';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"outbound_route":"route-1","phone_number":"5544332211","message":"Hello, this is a test call."}'
};

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

```go Text-to-speech (TTS)
package main

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

func main() {

	url := "https://connect.chatbridge.mx/v1/blaster/calls"

	payload := strings.NewReader("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\"\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Text-to-speech (TTS)
require 'uri'
require 'net/http'

url = URI("https://connect.chatbridge.mx/v1/blaster/calls")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\"\n}"

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

```java Text-to-speech (TTS)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://connect.chatbridge.mx/v1/blaster/calls")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\"\n}")
  .asString();
```

```php Text-to-speech (TTS)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://connect.chatbridge.mx/v1/blaster/calls', [
  'body' => '{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call."
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Text-to-speech (TTS)
using RestSharp;

var client = new RestClient("https://connect.chatbridge.mx/v1/blaster/calls");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Text-to-speech (TTS)
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call."
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.chatbridge.mx/v1/blaster/calls")! 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()
```

### Pre-recorded audio

**Request**

```json
{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "audio": "d874087f-5aff-4690-b718-00e2dd28a2bb.wav"
}
```

**Response**

```json
{
  "message_id": "98b432ba-2394-439f-839a-3f4ac48b1c53",
  "status": "ACCEPTED",
  "operator": "axtel",
  "is_mobile": false,
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "audio": "d874087f-5aff-4690-b718-00e2dd28a2bb.wav"
}
```

**SDK Code**

```python Pre-recorded audio
import requests

url = "https://connect.chatbridge.mx/v1/blaster/calls"

payload = {
    "outbound_route": "route-1",
    "phone_number": "5544332211",
    "audio": "d874087f-5aff-4690-b718-00e2dd28a2bb.wav"
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Pre-recorded audio
const url = 'https://connect.chatbridge.mx/v1/blaster/calls';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"outbound_route":"route-1","phone_number":"5544332211","audio":"d874087f-5aff-4690-b718-00e2dd28a2bb.wav"}'
};

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

```go Pre-recorded audio
package main

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

func main() {

	url := "https://connect.chatbridge.mx/v1/blaster/calls"

	payload := strings.NewReader("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"audio\": \"d874087f-5aff-4690-b718-00e2dd28a2bb.wav\"\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 Pre-recorded audio
require 'uri'
require 'net/http'

url = URI("https://connect.chatbridge.mx/v1/blaster/calls")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"audio\": \"d874087f-5aff-4690-b718-00e2dd28a2bb.wav\"\n}"

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

```java Pre-recorded audio
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://connect.chatbridge.mx/v1/blaster/calls")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"audio\": \"d874087f-5aff-4690-b718-00e2dd28a2bb.wav\"\n}")
  .asString();
```

```php Pre-recorded audio
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://connect.chatbridge.mx/v1/blaster/calls', [
  'body' => '{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "audio": "d874087f-5aff-4690-b718-00e2dd28a2bb.wav"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp Pre-recorded audio
using RestSharp;

var client = new RestClient("https://connect.chatbridge.mx/v1/blaster/calls");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"audio\": \"d874087f-5aff-4690-b718-00e2dd28a2bb.wav\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pre-recorded audio
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "audio": "d874087f-5aff-4690-b718-00e2dd28a2bb.wav"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.chatbridge.mx/v1/blaster/calls")! 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()
```

### With retries and transfer

**Request**

```json
{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call.",
  "ringtime": 25,
  "transfer_to": "5511223344",
  "retry": {
    "max_attempts": 3,
    "interval_minutes": 5
  }
}
```

**Response**

```json
{
  "message_id": "98b432ba-2394-439f-839a-3f4ac48b1c53",
  "status": "ACCEPTED",
  "operator": "axtel",
  "is_mobile": false,
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call.",
  "ringtime": 25,
  "retry": {
    "max_attempts": 3,
    "interval_minutes": 5
  },
  "transfer_to": "5511223344"
}
```

**SDK Code**

```python With retries and transfer
import requests

url = "https://connect.chatbridge.mx/v1/blaster/calls"

payload = {
    "outbound_route": "route-1",
    "phone_number": "5544332211",
    "message": "Hello, this is a test call.",
    "ringtime": 25,
    "transfer_to": "5511223344",
    "retry": {
        "max_attempts": 3,
        "interval_minutes": 5
    }
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript With retries and transfer
const url = 'https://connect.chatbridge.mx/v1/blaster/calls';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"outbound_route":"route-1","phone_number":"5544332211","message":"Hello, this is a test call.","ringtime":25,"transfer_to":"5511223344","retry":{"max_attempts":3,"interval_minutes":5}}'
};

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

```go With retries and transfer
package main

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

func main() {

	url := "https://connect.chatbridge.mx/v1/blaster/calls"

	payload := strings.NewReader("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\",\n  \"ringtime\": 25,\n  \"transfer_to\": \"5511223344\",\n  \"retry\": {\n    \"max_attempts\": 3,\n    \"interval_minutes\": 5\n  }\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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 With retries and transfer
require 'uri'
require 'net/http'

url = URI("https://connect.chatbridge.mx/v1/blaster/calls")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\",\n  \"ringtime\": 25,\n  \"transfer_to\": \"5511223344\",\n  \"retry\": {\n    \"max_attempts\": 3,\n    \"interval_minutes\": 5\n  }\n}"

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

```java With retries and transfer
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://connect.chatbridge.mx/v1/blaster/calls")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\",\n  \"ringtime\": 25,\n  \"transfer_to\": \"5511223344\",\n  \"retry\": {\n    \"max_attempts\": 3,\n    \"interval_minutes\": 5\n  }\n}")
  .asString();
```

```php With retries and transfer
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://connect.chatbridge.mx/v1/blaster/calls', [
  'body' => '{
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call.",
  "ringtime": 25,
  "transfer_to": "5511223344",
  "retry": {
    "max_attempts": 3,
    "interval_minutes": 5
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp With retries and transfer
using RestSharp;

var client = new RestClient("https://connect.chatbridge.mx/v1/blaster/calls");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"outbound_route\": \"route-1\",\n  \"phone_number\": \"5544332211\",\n  \"message\": \"Hello, this is a test call.\",\n  \"ringtime\": 25,\n  \"transfer_to\": \"5511223344\",\n  \"retry\": {\n    \"max_attempts\": 3,\n    \"interval_minutes\": 5\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift With retries and transfer
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "outbound_route": "route-1",
  "phone_number": "5544332211",
  "message": "Hello, this is a test call.",
  "ringtime": 25,
  "transfer_to": "5511223344",
  "retry": [
    "max_attempts": 3,
    "interval_minutes": 5
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.chatbridge.mx/v1/blaster/calls")! 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()
```