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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/narrador-io:narrador-io-account-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
openapi: 3.2.0
info:
title: narrador Account 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:
- name: Account
description: Identity and credits
paths:
/v1/me:
get:
tags:
- Account
summary: Current user and credits
description: Returns the authenticated user, product scope (`app` / `products`), and narrador credit balances.
operationId: getMe
security:
- bearerAuth: []
- apiKeyHeader: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PublicApiMe'
'401':
description: Unauthorized — missing or invalid API key (wrong prefix, revoked, or expired).
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
additionalProperties: false
'403':
description: 'Forbidden — API key scope does not match the endpoint (e.g. `nrd_x_` key on a narrador files route), insufficient narrador credits for a synchronous operation (e.g. narrador X generate), account scheduled for deletion (`{ "error": "ACCOUNT_DELETION_SCHEDULED" }` — the owner can recover the account by signing in at narrador.io), or other entitlement failure. narrador files jobs that run out of credits finish asynchronously with job status `not-enough-credits` instead of HTTP 403.'
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
additionalProperties: false
examples:
accountDeletionScheduled:
summary: Account deletion scheduled
description: Returned when the user requested account deletion and is in the grace period before purge. Sign in at narrador.io to cancel deletion.
value:
error: ACCOUNT_DELETION_SCHEDULED
'429':
description: Too many requests — per API key rate limit exceeded (60 requests per 60 seconds).
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
additionalProperties: false
x-codeSamples:
- lang: curl
label: curl
source: "curl -sS -X GET 'https://api.narrador.io/v1/me' \\\n -H 'Authorization: Bearer nrd_files_YOUR_SECRET_KEY'"
- lang: curl
label: curl
source: "curl -sS -X GET 'https://api.narrador.io/v1/me' \\\n -H 'Authorization: Bearer nrd_x_YOUR_SECRET_KEY'"
components:
schemas:
PublicApiMe:
type: object
required:
- user
- credits
- products
properties:
user:
type: object
required:
- id
- email
- name
properties:
id:
type: string
email:
type:
- string
- 'null'
name:
type:
- string
- 'null'
app:
type:
- string
- 'null'
enum:
- files
- x
- null
description: Product for user API keys; `null` for OAuth tokens (see `products`).
products:
type: array
items:
type: string
enum:
- files
- x
description: Products this credential can access (`[app]` for API keys; OAuth may list both).
credits:
type: object
required:
- totalAvailable
- balances
properties:
totalAvailable:
type: number
balances:
type: array
items:
type: object
required:
- id
- balance
- expiresAt
properties:
id:
type: string
balance:
type: number
expiresAt:
type:
- string
- 'null'
format: date-time
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: User API key (`nrd_files_…` or `nrd_x_…`).
apiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: Same user API key as Bearer auth.