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-narrador-x-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 X 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: narrador X
description: Post audio generations
paths:
/v1/x/voices:
get:
tags:
- narrador X
summary: List voices
description: Catalog of narrador X voices (same rules as the X web voice picker). Requires a `nrd_x_` key. Responses include `tier` (`standard` | `cheaper`); `provider` is deprecated and mirrors `tier`. Without pagination query parameters, returns the full catalog. With `cursor`, `limit`, `search`, `accent`, or `filters`, returns a page and `nextCursor`.
operationId: listXVoices
security:
- bearerAuth: []
- apiKeyHeader: []
parameters:
- name: cursor
in: query
required: false
schema:
type: string
description: Opaque pagination cursor from a previous response (`nextCursor`).
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 50
description: Page size when paginating (default 50, max 100).
- name: search
in: query
required: false
schema:
type: string
description: Case-insensitive filter on voice name and description.
- name: accent
in: query
required: false
schema:
type: string
enum:
- af-za
- am-et
- ar-ae
- ar-eg
- ar-iq
- ar-kw
- ar-ma
- ar-qa
- ar-sa
- az-az
- bn-bd
- bn-in
- cmn-cn
- ja-jp
- jv-id
- kk-kz
- km-kh
- ko-kr
- mn-mn
- my-mm
- ne-np
- ps-af
- si-lk
- so-so
- th-th
- vi-vn
- zh-cn
- zh-hk
- zh-tw
- yue-cn
- bg-bg
- bs-ba
- ca-es
- cs-cz
- da-dk
- de-de
- el-gr
- et-ee
- eu-es
- fi-fi
- fr-be
- fr-ca
- fr-ch
- fr-fr
- ga-ie
- hr-hr
- hu-hu
- hy-am
- is-is
- it-it
- lt-lt
- lv-lv
- nb-no
- nl-be
- nl-nl
- pl-pl
- pt-br
- pt-pt
- ro-ro
- ru-ru
- sk-sk
- sl-si
- sq-al
- sr-rs
- sv-se
- tr-tr
- uk-ua
- en-au
- en-ca
- en-gb
- en-hk
- en-ie
- en-in
- en-ke
- en-nz
- en-sg
- en-us
- en-za
- es-ar
- es-cl
- es-co
- es-cr
- es-cu
- es-do
- es-ec
- es-es
- es-mx
- es-pe
- es-pr
- es-py
- es-us
- es-ve
- gu-in
- hi-in
- kn-in
- ml-in
- mr-in
- pa-in
- ta-in
- ta-lk
- ta-my
- te-in
- fa-ir
- fil-ph
- he-il
- id-id
- ms-my
- mt-mt
- sw-ke
- ur-pk
- zu-za
description: Preferred accent for catalog ordering (same ranking as the narrador voice picker).
- name: filters
in: query
required: false
schema:
type: string
description: URL-encoded JSON object mapping filter dimension keys to string arrays (OR within a dimension, AND across dimensions).
responses:
'200':
description: OK
content:
application/json:
schema:
oneOf:
- type: object
required:
- voices
properties:
voices:
type: array
items:
$ref: '#/components/schemas/XVoice'
- type: object
required:
- voices
- nextCursor
properties:
voices:
type: array
items:
$ref: '#/components/schemas/XVoice'
nextCursor:
type:
- string
- 'null'
'400':
description: Invalid pagination cursor or query parameters
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
additionalProperties: false
'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/x/voices' \\\n -H 'Authorization: Bearer nrd_x_YOUR_SECRET_KEY'"
- lang: curl
label: curl
source: "curl -sS -X GET 'https://api.narrador.io/v1/x/voices?limit=25&accent=es-es' \\\n -H 'Authorization: Bearer nrd_x_YOUR_SECRET_KEY'"
/v1/x/generations:
post:
tags:
- narrador X
summary: Generate post audio
description: Resolves an X post by id or URL, generates TTS audio, and returns timings. Consumes narrador credits and requires a `nrd_x_` key.
operationId: createXGeneration
security:
- bearerAuth: []
- apiKeyHeader: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/XGenerationCreate'
examples:
byPostId:
value:
postId: '1234567890123456789'
voiceId: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
accent: en-us
byUrl:
value:
postUrl: https://x.com/narrador/status/1234567890123456789
voiceId: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
responses:
'201':
description: Generation created
content:
application/json:
schema:
$ref: '#/components/schemas/XGenerationResult'
'400':
description: 'Invalid JSON body — failed Zod validation (`safeParse`). Returns `{ "error": "Invalid request body.", "details": […] }`.'
content:
application/json:
schema:
type: object
required:
- error
- details
properties:
error:
type: string
description: Always `"Invalid request body."` when `safeParse` fails on JSON routes.
details:
type: array
items:
type: object
required:
- code
- message
properties:
code:
type: string
description: Zod issue code (e.g. `invalid_type`).
message:
type: string
path:
type: array
items:
type: string
description: JSON pointer segments to the invalid field.
description: Zod issue list (`code`, `path`, `message`) from the failed parse.
'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 POST 'https://api.narrador.io/v1/x/generations' \\\n -H 'Authorization: Bearer nrd_x_YOUR_SECRET_KEY' \\\n -H 'Content-Type: application/json' \\\n -d '{\"postId\":\"1234567890123456789\",\"voiceId\":\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\",\"accent\":\"en-us\"}'"
/v1/x/generations/{generationId}:
get:
tags:
- narrador X
summary: Get generation result
description: Returns a generation linked to your account; any other id responds **404** `Generation not found.`
operationId: getXGeneration
security:
- bearerAuth: []
- apiKeyHeader: []
parameters:
- name: generationId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/XGenerationResult'
'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
'404':
description: Generation not found or not owned by the authenticated user
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
additionalProperties: false
'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/x/generations/550e8400-e29b-41d4-a716-446655440000' \\\n -H 'Authorization: Bearer nrd_x_YOUR_SECRET_KEY'"
components:
schemas:
XVoice:
$ref: '#/components/schemas/FilesVoice'
XGenerationResult:
type: object
properties:
generationId:
type: string
format: uuid
audioUrl:
type: string
format: uri
duration:
type:
- number
- 'null'
wordTimings:
type: array
items:
$ref: '#/components/schemas/WordTiming'
WordTiming:
type: object
required:
- word
- startTime
- endTime
properties:
word:
type: string
startTime:
type: number
format: float
endTime:
type: number
format: float
XGenerationCreate:
oneOf:
- type: object
required:
- voiceId
- postId
properties:
voiceId:
type: string
format: uuid
accent:
type: string
enum:
- af-za
- am-et
- ar-ae
- ar-eg
- ar-iq
- ar-kw
- ar-ma
- ar-qa
- ar-sa
- az-az
- bn-bd
- bn-in
- cmn-cn
- ja-jp
- jv-id
- kk-kz
- km-kh
- ko-kr
- mn-mn
- my-mm
- ne-np
- ps-af
- si-lk
- so-so
- th-th
- vi-vn
- zh-cn
- zh-hk
- zh-tw
- yue-cn
- bg-bg
- bs-ba
- ca-es
- cs-cz
- da-dk
- de-de
- el-gr
- et-ee
- eu-es
- fi-fi
- fr-be
- fr-ca
- fr-ch
- fr-fr
- ga-ie
- hr-hr
- hu-hu
- hy-am
- is-is
- it-it
- lt-lt
- lv-lv
- nb-no
- nl-be
- nl-nl
- pl-pl
- pt-br
- pt-pt
- ro-ro
- ru-ru
- sk-sk
- sl-si
- sq-al
- sr-rs
- sv-se
- tr-tr
- uk-ua
- en-au
- en-ca
- en-gb
- en-hk
- en-ie
- en-in
- en-ke
- en-nz
- en-sg
- en-us
- en-za
- es-ar
- es-cl
- es-co
- es-cr
- es-cu
- es-do
- es-ec
- es-es
- es-mx
- es-pe
- es-pr
- es-py
- es-us
- es-ve
- gu-in
- hi-in
- kn-in
- ml-in
- mr-in
- pa-in
- ta-in
- ta-lk
- ta-my
- te-in
- fa-ir
- fil-ph
- he-il
- id-id
- ms-my
- mt-mt
- sw-ke
- ur-pk
- zu-za
default: en-us
postId:
type: string
- type: object
required:
- voiceId
- postUrl
properties:
voiceId:
type: string
format: uuid
accent:
type: string
enum:
- af-za
- am-et
- ar-ae
- ar-eg
- ar-iq
- ar-kw
- ar-ma
- ar-qa
- ar-sa
- az-az
- bn-bd
- bn-in
- cmn-cn
- ja-jp
- jv-id
- kk-kz
- km-kh
- ko-kr
- mn-mn
- my-mm
- ne-np
- ps-af
- si-lk
- so-so
- th-th
- vi-vn
- zh-cn
- zh-hk
- zh-tw
- yue-cn
- bg-bg
- bs-ba
- ca-es
- cs-cz
- da-dk
- de-de
- el-gr
- et-ee
- eu-es
- fi-fi
- fr-be
- fr-ca
- fr-ch
- fr-fr
- ga-ie
- hr-hr
- hu-hu
- hy-am
- is-is
- it-it
- lt-lt
- lv-lv
- nb-no
- nl-be
- nl-nl
- pl-pl
- pt-br
- pt-pt
- ro-ro
- ru-ru
- sk-sk
- sl-si
- sq-al
- sr-rs
- sv-se
- tr-tr
- uk-ua
- en-au
- en-ca
- en-gb
- en-hk
- en-ie
- en-in
- en-ke
- en-nz
- en-sg
- en-us
- en-za
- es-ar
- es-cl
- es-co
- es-cr
- es-cu
- es-do
- es-ec
- es-es
- es-mx
- es-pe
- es-pr
- es-py
- es-us
- es-ve
- gu-in
- hi-in
- kn-in
- ml-in
- mr-in
- pa-in
- ta-in
- ta-lk
- ta-my
- te-in
- fa-ir
- fil-ph
- he-il
- id-id
- ms-my
- mt-mt
- sw-ke
- ur-pk
- zu-za
default: en-us
postUrl:
type: string
FilesVoice:
type: object
required:
- id
- name
- tier
- provider
- avatarColor
properties:
id:
type: string
format: uuid
name:
type: string
tier:
type: string
enum:
- standard
- cheaper
description: 'Voice cost tier: `standard` (premium catalog) or `cheaper` (economy catalog).'
provider:
type: string
enum:
- standard
- cheaper
deprecated: true
description: Deprecated — use `tier`. Mirrors `tier` and does not name internal TTS backends.
defaultAccent:
type: string
isPublic:
type: boolean
description:
type:
- string
- 'null'
sampleUrl:
type:
- string
- 'null'
format: uri
description: Neutral preview URL on this API (`GET /v1/voices/{voiceId}/sample` redirects to stored audio). Does not expose internal storage paths.
avatarUrl:
type:
- string
- 'null'
format: uri
description: Stored avatar image URL. Null until an image is uploaded; clients should show initials on `avatarColor`.
avatarColor:
type: string
description: Fallback swatch as `#RRGGBB` for initials when `avatarUrl` is null.
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.