> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wadial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Play prerecorded audio

> Upload reusable audio and play it into an active call.

Use prerecorded audio for greetings, disclaimers, verification prompts, and other call segments that repeat across calls. Upload each file once, then play it into any active call owned by your account.

## Upload an audio asset

Upload an `audio/*` file with multipart form field `audio`:

```bash theme={null}
curl -X POST "https://api.wadial.com/api/v1/call-audio-assets" \
  -H "Authorization: Bearer $WADIAL_API_KEY" \
  -F "audio=@greeting.wav;type=audio/wav"
```

Save the returned `assetId`.

## Start or choose an active call

Use an active call that belongs to a connected token. If you need a new call, start one first:

```http theme={null}
POST /api/v1/sessions/{sessionId}/calls
Authorization: Bearer <api_key>
Content-Type: application/json
```

## Play the asset

Play the uploaded asset into the call:

```http theme={null}
POST /api/v1/sessions/{sessionId}/calls/{callId}/audio/play
Authorization: Bearer <api_key>
Content-Type: application/json
```

```json theme={null}
{
  "assetId": "019f..."
}
```

WADial decodes the uploaded file and streams it into the call. Remote audio URLs are not accepted for playback.
