Narrador narrador files API

Voices, uploads, and audio jobs

GitHub OpenAPI

Operations 8

GET /v1/voices List voices #
GET /v1/voices/{voiceId}/sample Voice sample audio #
POST /v1/files/uploads Create upload URL #
POST /v1/files/generate Upload and start an audio job #
GET /v1/files/webhook-secret Webhook signing secret #
POST /v1/files/jobs Start an audio job #
GET /v1/files/jobs/{jobId} Job status #
GET /v1/files/jobs/{jobId}/result Job result #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/narrador-io:narrador-io-narrador-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

narrador-io-narrador-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: narrador files API
  version: 1.0.0
  description: 'Text to speech API for documents and X posts. Public REST API for **narrador files** (document → audio) and **narrador X** (X/Twitter post → audio). Developer guide (MCP setup and API keys): https://narrador.io/developers


    ## Authentication


    Send a user API key on every `/v1` request using either header:


    - `Authorization: Bearer `

    - `x-api-key: ` (`x-api-key` wins when both are set)


    Keys are created in the narrador web app and are scoped by product prefix:


    | Product | Key prefix | Scopes |

    | --- | --- | --- |

    | narrador files | `nrd_files_` | `files:read`, `files:write` |

    | narrador X | `nrd_x_` | `x:read`, `x:write` |


    `GET /v1/me` accepts any narrador user key. Product routes require the matching prefix. Browser sign-in (Google, magic link, Polar checkout) uses Better Auth at `/api/auth` and is **not** part of this reference. Integrators only need user API keys for `/v1`. ## Rate limits


    Each API key is limited to **60 requests per 60 seconds** (Better Auth API key plugin). Excess traffic returns **429**. IP-based Express rate limits apply to `/api/auth`, `/admin`, and `/api/trpc` only — not to `/v1`. ## Voice listing (`GET /v1/voices`)


    Each voice includes **`tier`** (`standard` | `cheaper`). The legacy **`provider`** field now returns the same values (`standard` or `cheaper`) and is **deprecated** — use `tier` instead of relying on `provider`. By default the endpoint returns the full catalog in one response. Optional query parameters **`cursor`**, **`limit`** (default 50, max 100), **`search`**, **`accent`**, and URL-encoded JSON **`filters`** enable paginated listing with **`nextCursor`** in the JSON body. ## Files auto voice


    When `voiceId` is omitted, narrador classifies extracted speakable text when there is enough content for reliable detection; otherwise it defaults to **`en-us`**. Unsupported *detected* languages finish with `failed_file_processing`. Empty documents fail processing with a clear error. ## Files audio generation


    Every job always generates audio as part of processing. There is no public request field to skip audio (unlike the narrador web upload flow, which can set internal `skipAudioGeneration` to skip audio generation). Omitting optional body fields does not disable audio generation. ## Request hardening (narrador files)


    - **JSON body size:** routes under `/v1/files` use `express.json({ limit: "2mb" })`; larger JSON bodies return **413** with the default HTML parser error (not a JSON `{ error }` body). - **Multipart uploads:** `POST /v1/files/generate` accepts only allowlisted document extensions and matching `Content-Type` values (or `application/octet-stream` / omitted type when the extension is allowed). Each uploaded file is capped at **50 MB** (same limit as presigned uploads and URL fetch). - **Plain text:** JSON `text` on `POST /v1/files/generate` and `POST /v1/files/jobs` allows up to **500,000** characters. - **URL fetch:** JSON `url` on `POST /v1/files/generate` is fetched server-side with SSRF protections and a **50 MB** byte limit; private or disallowed hosts are rejected. ## Files job webhooks


    Optional `callbackUrl` (**https** only, public host) on `POST /v1/files/generate` and `POST /v1/files/jobs`. Requires a `nrd_files_` API key (OAuth/MCP-only auth returns **400** if `callbackUrl` is set). Fetch your per-key signing secret with `GET /v1/files/webhook-secret` (same key auth). Revoking the API key invalidates the secret. narrador sends **exactly one terminal webhook per job** (success or failure). Terminal callbacks use `status` values such as `completed`, `failed_file_processing`, `failed_audio_generation`, and `not-enough-credits`. Payload:


    `{ "jobId": "", "status": "", "audioUrl"?: "", "duration"?: }`


    `audioUrl` and `duration` are present when `status` is `completed`.'
servers:
- url: https://api.narrador.io
  description: narrador API
security:
- bearerAuth: []
- apiKeyHeader: []
tags:


# --- truncated at 32 KB (56 KB total) ---
# Full source: https://artifacts.apis.io/narrador-io/openapi/narrador-io-narrador-files-api-openapi.yml