# Auto Voice

> Base URL: `https://pos.pages.fm/api/v1`. Authenticate with the `api_key` query parameter.

## Trigger auto voice call for an order

`POST /shops/{SHOP_ID}/orders/{ORDER_ID}/trigger_call`

Trigger an automated outbound call (Auto Voice) to the order's customer phone number and play the selected voice. Returns a background job id; the call outcome is delivered asynchronously. The SIP subscription must have the Auto Voice add-on enabled.

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `SHOP_ID` | path | integer | yes | Shop ID |
| `ORDER_ID` | path | string | yes | Order ID |

### Request body

Request body containing the voice id to play

- `voice_id` (string (uuid), required): Voice id (copied from the voice management screen)

```json
{
  "voice_id": "3f7c2b9a-1e4d-4a2b-9c8e-2b1d0a9f6e5c"
}
```

### Responses

- `200` Success (object)

```json
{
  "success": true
}
```
