Skip to content
Get API key

Sacred audio API

Mantra Recording API

Add sacred audio to devotional apps, learning products, and websites. Mantrilo links recordings to their mantras, so listening stays connected to the words.

Recordings are delivered through signed links that last 15 minutes. They are available for mantras where a recording exists.

GET /v1/mantras/{id}/audio
curl "$MANTRILO_API_URL/v1/mantras/annapurna-aham-vaishvanaro-bhuthva/audio?format=json" \
  -H "Authorization: Bearer $MANTRILO_API_KEY"
A mantra with its recording link200 OK
{
  "data": {
    "url": "https://storage.googleapis.com/mantrilo-media/…?X-Goog-Signature=…",
    "expiresAt": "2026-11-10T06:45:00.000Z",
    "bytes": 123077,
    "contentType": "audio/x-m4a"
  },
  "requestId": "request-id"
}

What you can build

A recording belongs with its content

A mantra with a recording includes an audio link in its response. A reading view can reveal a listening control when that link is present and omit it when it isn’t.

Load audio when a visitor asks to listen

Request the signed recording link from your server when someone chooses to listen. Each link counts the file’s size toward your monthly allowance, so avoid requesting links during page load.

Plan for monthly data delivery

Audio allowances measure the data delivered, not file storage. The pricing page compares each plan’s monthly allowance. Recording length and how often people listen will affect delivery usage. Ask us about recording coverage and formats.

Recordings licensed for your app

Paid plans include a license to play the recordings to your users through the API. To bundle recordings in your app for offline listening, purchase a content license.

How an integration flows

  1. Check whether the displayed content has a recording.
  2. Request a signed link through your server.
  3. Start playback after user input and monitor delivered data.

Try it with a sandbox key.

Every account starts with sample content, so you can build before you subscribe.