v1
REST API
Build on the Libraryminds API
The Libraryminds REST API lets you transcribe, summarise, and search video programmatically — bring video knowledge into your own product, analysis pipeline, or internal workflow.
Submit asynchronous jobs, track processing safely, receive webhook updates, and retrieve timestamped transcripts in structured formats.
Get API key free
Manage keys
Submit, process, retrieve
Submit media, track processing, and retrieve the finished transcript.
Conceptual illustration — not a product interface.
Overview
Quickstart
Use cases
Authentication
Base URL
Rate limits
Error codes
FAQ
Open source
Endpoints
GET
/me
GET
/jobs
GET
/jobs/:id
POST
/jobs
POST
/jobs/upload
POST
/jobs/import-url
GET
/jobs/:id/transcript
POST
/jobs/:id/cancel
POST
/jobs/:id/retry
POST
/search
GET
/usage
POST
/webhooks
Transcription API quickstart
Create a scoped lm_live_ key, submit a YouTube job, then poll its status and fetch the completed transcript.
bash
Copy
# 1. Submit an asynchronous job (requires jobs:write) curl -X POST https://libraryminds.com/api/v1/jobs \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: your-unique-key" \ -d '{"url":"https://youtube.com/watch?v=VIDEO_ID"}' # 2. Poll status (requires jobs:read) curl https://libraryminds.com/api/v1/jobs/JOB_ID \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" # 3. Fetch timestamped JSON (requires transcripts:read) curl "https://libraryminds.com/api/v1/jobs/JOB_ID/transcript?format=json" \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Job submission returns 202 Accepted. REST API access is available on every plan and uses account transcription minutes. Scopes do not bypass plan gates: webhooks require Plus or higher, and other AI operations may also require an eligible plan.
What you can build
The Libraryminds API is built for developers, researchers, and teams who need transcript data outside the web interface — whether that's automating workflows, running analysis pipelines, or embedding transcript search into internal tools.
•
Automated transcription pipelines — send every new video for transcription automatically
•
Searchable video archives — build search into your own product on top of transcript data
•
Content workflows — auto-generate summaries and export them into your CMS or knowledge base
•
Custom integrations — connect video knowledge to Slack, Notion, or your internal tools
Zapier / Make / n8n automation
Marketing & content teams
You run a YouTube channel. Every time a new video is published, Zapier calls POST /api/v1/jobs with the video URL. By the time your newsletter goes out, the transcript is already in your library — no manual work.
Research & qualitative analysis
UX researchers & journalists
Your team has 40 interview recordings. A Python script loops through POST /api/v1/jobs for each URL, then polls GET /api/v1/jobs/:id/transcript?format=json to fetch structured segments — ready for thematic coding or NLP.
Content repurposing pipelines
Podcasters & content creators
Your podcast episode goes live. An automation pulls the transcript via the API, pipes it into an AI prompt, and generates show notes, chapter timestamps, and a Twitter thread — before you've finished your coffee.
Custom internal tools
Engineering & product teams
Your team's meeting recordings live in Libraryminds. You build an internal Slack bot that queries GET /api/v1/jobs and surfaces the transcript snippet that answers a question — no more digging through recordings.
Simple, predictable, developer-first
RESTful endpoints, JSON responses, API-key authentication, and clear usage-based billing from your plan's minutes. Test it free — your API usage draws from the same free minutes as your account.
Bearer token auth
Pass your API key in the Authorization header. Keys are hashed — never stored in plaintext.
60 requests / min default
Per-key default, with operation-specific limits for AI and chat endpoints.
REST + JSON
Standard HTTP verbs, JSON responses — works with any language or tool.
Authentication
All API requests require a Bearer token in the Authorization header. Keys start with lm_live_ and are shown once on creation — store them securely.
http
Copy
Authorization: Bearer lm_live_YOUR_API_KEY
Implemented scopes are account:read, jobs:read, jobs:write, transcripts:read, ai:write, search:read, exports:read, usage:read, webhooks:read, and webhooks:write. A key needs the endpoint's scope, and the account still needs any plan-gated capability.
Never expose your API key in client-side code or public repositories. Use environment variables.
Create a free account
Manage keys
Base URL
url
Copy
https://libraryminds.com
All endpoints are relative to this base URL. HTTPS only.
Rate limits
The API allows 60 requests per minute per API key. Exceeding this returns 429 Too Many Requests.
| Limit | Value |
| Requests per minute | 60 |
| Max keys per account | 10 |
| Pagination max limit | 100 |
Endpoints
GET
/api/v1/me
Returns your account info and current credit balance.
Required scope
account:read
Example Request
curl
JavaScript
Python
curl
Copy
curl https://libraryminds.com/api/v1/me \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
{ "id": "user_abc123", "email": "you@example.com", "name": "Your Name", "plan": "pro", "credits": { "total": 600, "used": 42, "remaining": 558 } }
GET
/api/v1/jobs
List your transcription jobs. Supports pagination, search, and status filtering.
Query Parameters
limit (1–100, default 20) · offset (≥0) · search (≤200 chars) · status (PENDING | PROCESSING | COMPLETED | FAILED | CANCELLED)
Required scope
jobs:read
Example Request
curl
JavaScript
Python
curl
Copy
curl "https://libraryminds.com/api/v1/jobs?limit=10&status=COMPLETED" \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
{ "data": [ { "id": "job_xyz789", "title": "My Video Title", "status": "COMPLETED", "duration": 1234, "sourceType": "youtube", "sourceUrl": "https://youtube.com/watch?v=...", "createdAt": "2026-01-01T00:00:00.000Z", "completedAt": "2026-01-01T00:05:00.000Z" } ], "pagination": { "limit": 20, "offset": 0, "total": 47 } }
GET
/api/v1/jobs/:id
Get full details of a single transcription job. When status is FAILED the response includes an errorMessage.
Required scope
jobs:read
Example Request
curl
Copy
curl https://libraryminds.com/api/v1/jobs/JOB_ID \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
{ "id": "job_xyz789", "title": "My Video Title", "status": "COMPLETED", "duration": 1234, "sourceType": "youtube", "sourceUrl": "https://youtube.com/watch?v=...", "createdAt": "2026-01-01T00:00:00.000Z", "completedAt": "2026-01-01T00:05:00.000Z" }
POST
/api/v1/jobs
Submit a YouTube URL for transcription. Runs asynchronously — returns a job ID immediately; poll GET /api/v1/jobs/:id or subscribe to the job.completed webhook. Send an Idempotency-Key header to make retries safe.
Request Body
json
Copy
{ "url": "https://youtube.com/watch?v=VIDEO_ID", "language": "en" // optional — auto-detected if omitted }
Required scope
jobs:write
Example Request
curl
JavaScript
Python
curl
Copy
curl -X POST https://libraryminds.com/api/v1/jobs \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: my-unique-key-123" \ -d '{"url": "https://youtube.com/watch?v=dQw4w9WgXcQ"}'
Example Response
json
Copy
// 202 Accepted { "id": "job_xyz789", "status": "PENDING", "message": "Job created." } // 402 — not enough transcription minutes { "error": { "code": "insufficient_credits", "message": "...", "requestId": "req_..." }, "message": "..." }
POST
/api/v1/jobs/upload
Transcribe an uploaded audio/video file. Multipart form with a file field, plus optional language and diarizationEnabled (plan-gated). Runs asynchronously.
Required scope
jobs:write
Example Request
curl
Python
curl
Copy
curl -X POST https://libraryminds.com/api/v1/jobs/upload \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -F "file=@meeting.mp3" \ -F "language=en"
Example Response
json
Copy
// 202 Accepted { "id": "job_xyz789", "status": "PENDING", "fileName": "meeting.mp3", "estimatedMinutes": 12 }
POST
/api/v1/jobs/import-url
Transcribe a direct media URL (must be HTTPS and publicly reachable). Private, loopback and cloud-metadata addresses are rejected. Supports the Idempotency-Key header.
Request Body
json
Copy
{ "url": "https://cdn.example.com/audio.mp3", "language": "en" }
Required scope
jobs:write
Example Request
curl
Copy
curl -X POST https://libraryminds.com/api/v1/jobs/import-url \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://cdn.example.com/audio.mp3"}'
Example Response
json
Copy
// 202 Accepted { "id": "job_xyz789", "status": "PENDING" }
GET
/api/v1/jobs/:id/transcript
Fetch the transcript for a completed job. JSON returns timestamped segments (paginated); text, srt and vtt return downloadable text.
Query Parameters
format = json (default) | text | srt | vtt · limit (1–500, json only) · offset (json only)
Required scope
transcripts:read
Example Request
curl
Copy
# Structured JSON with timestamps curl "https://libraryminds.com/api/v1/jobs/JOB_ID/transcript?format=json" \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" # Plain text curl "https://libraryminds.com/api/v1/jobs/JOB_ID/transcript?format=text" \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
// format=json { "jobId": "job_xyz789", "segments": [ { "startMs": 0, "endMs": 4200, "text": "Welcome to the video.", "speaker": "Speaker 1" } ], "pagination": { "total": 812, "offset": 0, "limit": 500, "hasMore": true } }
POST
/api/v1/jobs/:id/cancel
Cancel a pending or processing job. Atomic — if the job already finished you get 409 and are billed normally. creditRelease reports the outcome honestly: released, pending (queued for automatic recovery), or none.
Required scope
jobs:write
Example Request
curl
Copy
curl -X POST https://libraryminds.com/api/v1/jobs/JOB_ID/cancel \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
{ "id": "job_xyz789", "status": "CANCELLED", "creditsReleased": 12, "creditRelease": "released" }
POST
/api/v1/jobs/:id/retry
Retry a FAILED job without being billed twice — reuses the credits still held for the original attempt. If no reservation is held, resubmit the job instead (a FAILED job never blocks resubmission).
Required scope
jobs:write
Example Request
curl
Copy
curl -X POST https://libraryminds.com/api/v1/jobs/JOB_ID/retry \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
// 202 Accepted { "id": "job_xyz789", "status": "PENDING" }
POST
/api/v1/search
Semantic (vector) search across your whole transcript library.
Request Body
json
Copy
{ "query": "onboarding checklist", "limit": 20 }
Required scope
search:read
Example Request
curl
Python
curl
Copy
curl -X POST https://libraryminds.com/api/v1/search \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query": "onboarding checklist", "limit": 20}'
Example Response
json
Copy
{ "query": "onboarding checklist", "results": [ { "jobId": "job_abc", "jobTitle": "Team sync", "snippet": "...the onboarding checklist...", "score": 0.83, "startMs": 42000 } ] }
GET
/api/v1/usage
Usage analytics: job counts, minutes consumed, credit balance and a daily breakdown.
Query Parameters
days (1–90, default 30)
Required scope
usage:read
Example Request
curl
Copy
curl "https://libraryminds.com/api/v1/usage?days=30" \ -H "Authorization: Bearer lm_live_YOUR_API_KEY"
Example Response
json
Copy
{ "periodDays": 30, "jobs": { "total": 120, "byStatus": { "COMPLETED": 110, "FAILED": 4 } }, "minutesConsumed": 940, "credits": { "remaining": 260, "total": 600, "used": 340 }, "daily": [ { "date": "2026-01-01", "jobs": 5, "failed": 0 } ] }
POST
/api/v1/webhooks
Register a public HTTPS webhook endpoint on Plus or higher (max 10 per account). The signing secret is returned ONCE — store it immediately. Events: job.completed, job.failed, translation.completed, summary.completed.
Request Body
json
Copy
{ "url": "https://your-app.com/hooks/libraryminds", "events": ["job.completed", "job.failed"] }
Required scope
webhooks:write
Example Request
curl
Copy
curl -X POST https://libraryminds.com/api/v1/webhooks \ -H "Authorization: Bearer lm_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://your-app.com/hooks/libraryminds", "events": ["job.completed"]}'
Example Response
json
Copy
// 201 Created — secret shown once { "id": "wh_abc", "url": "https://your-app.com/hooks/libraryminds", "events": ["job.completed", "job.failed"], "isActive": true, "secret": "whsec_...", "message": "Store the secret now — it cannot be retrieved again." }
Error codes
Every error uses the same envelope with a stable, machine-readable code. The top-level message mirrors error.message for convenience. Include error.requestId (also returned as the X-Request-Id header) when contacting support.
json
Copy
{ "error": { "code": "insufficient_credits", "message": "Not enough transcription minutes remaining.", "requestId": "req_9f2c1a4b8e7d6c5a4b3c2d1e" }, "message": "Not enough transcription minutes remaining." }
| HTTP | Error code(s) | Meaning |
| 401 | unauthenticated / invalid_api_key / expired_api_key | Missing, invalid, or expired API key |
| 402 | insufficient_credits | Not enough transcription minutes |
| 403 | forbidden / insufficient_scope / ip_not_allowed / plan_limit_reached | Key lacks the scope, IP not allowlisted, or plan limit reached |
| 404 | not_found | Resource does not exist (also returned for resources you don't own) |
| 409 | conflict / idempotency_in_flight | Duplicate submission, terminal-state conflict, or replay in flight |
| 422 | validation_failed / idempotency_key_reused | Invalid parameters, or same idempotency key reused with a different body |
| 429 | rate_limited / concurrency_limit | Rate limit exceeded — check X-RateLimit-* headers |
| 5xx | internal_error / capacity_exceeded | Server error or temporary capacity limit — retry with backoff |
Rate limits & quotas
- 60 requests/minute per API key by default. Responses carry X-RateLimit-Limit and X-RateLimit-Remaining.
- AI endpoints (translation, summary, chapters, embeddings) add a 30 requests / 15 min limit; chat endpoints a 20 requests / 5 min limit.
- Rate limits are enforced per key — one key hitting its limit never affects another.
- Transcription minutes are your quota: every account starts with 190 free transcription minutes (one-time, lifetime). When exhausted, POST job endpoints return 402 insufficient_credits.
Idempotency
POST /jobs and POST /jobs/import-url accept an Idempotency-Key header (≤255 chars). Replaying the same key with the same body returns the original response (with an Idempotent-Replay: true header); reusing the key with a different body returns 422 idempotency_key_reused. Use a fresh UUID per distinct request.
Verifying webhook signatures
Each delivery is a POST with an HMAC-SHA256 signature over the raw request body in the X-Libraryminds-Signature header (format sha256=<hex>), plus a stable X-Libraryminds-Delivery ID (constant across retries — use it to dedupe). Compute the HMAC with your webhook secret and compare in constant time:
javascript
Copy
import crypto from "crypto"; // Express: capture the RAW body for this route app.post("/hooks/libraryminds", express.raw({ type: "application/json" }), (req, res) => { const sig = req.header("X-Libraryminds-Signature") || ""; const expected = "sha256=" + crypto .createHmac("sha256", process.env.LM_WEBHOOK_SECRET) .update(req.body) // raw Buffer, not parsed JSON .digest("hex"); const ok = sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)); if (!ok) return res.status(401).end(); const event = JSON.parse(req.body.toString()); // event.type: "job.completed" | "job.failed" | ... res.status(200).end(); // respond 2xx quickly; retries use the same delivery ID });
python
Copy
import hmac, hashlib def verify(raw_body: bytes, signature: str, secret: str) -> bool: expected = "sha256=" + hmac.new( secret.encode(), raw_body, hashlib.sha256 ).hexdigest() return hmac.compare_digest(expected, signature)
Deliveries retry with backoff on failure; a webhook is automatically disabled after repeated consecutive failures. Re-enable it with PATCH /webhooks/:id (isActive: true), which resets its failure counters. Inspect attempts via GET /webhooks/:id/deliveries.
Full machine-readable spec: /api/v1/openapi.json (OpenAPI 3.1).
Frequently asked questions
How do I get a Libraryminds API key?
Register for a free account at libraryminds.com/register — no credit card required. Then go to Settings → Developer API tab and click New API Key. Your key is shown once and starts with lm_live_.
Is there a free tier for the API?
Yes. Every account gets 190 free transcription minutes — no credit card required. These minutes work identically whether you use the web interface or the API.
Can I submit video files via the API?
Yes. Besides YouTube URLs (POST /api/v1/jobs), you can upload a local audio/video file with POST /api/v1/jobs/upload (multipart file field), or import a direct HTTPS media URL with POST /api/v1/jobs/import-url. All three run asynchronously and return a job ID immediately.
What transcript formats does the API return?
Four formats: json (timestamped segments with speaker labels), text (plain text), srt (subtitle file), and vtt (WebVTT). Control the format with the ?format= query parameter on GET /api/v1/jobs/:id/transcript.
What languages does the transcription API support?
10 major languages: English, Hindi, Spanish, French, German, Portuguese, Mandarin Chinese, Japanese, Korean, and Arabic. Language is auto-detected if you omit the language field in the request body.
What happens if I run out of credits while using the API?
POST /api/v1/jobs returns 402 Payment Required when your account has insufficient credits. You can purchase additional minutes from your dashboard at any time. Existing completed jobs and transcripts are unaffected.
Does the API support webhooks?
Yes, on Plus and higher plans. Register public HTTPS endpoints in Settings → Developer API. Libraryminds sends HMAC-SHA256-signed POST requests for job.completed, job.failed, translation.completed, and summary.completed events. Each account supports up to 10 webhook endpoints.
Is the API production-ready?
Yes. API keys are SHA-256 hashed (never stored in plaintext). All traffic is HTTPS-only. Rate limiting (60 req/min per key) prevents abuse. The same infrastructure processes both web and API jobs.
What is the Ingest API? Is it the same as the REST API?
They are different. The REST API (documented here) is available to all plans — it lets you submit YouTube URLs, retrieve transcripts, and list jobs programmatically. The Ingest API is a separate Pro-tier feature that provides a unique per-account HTTPS webhook URL that Zapier, Make, n8n, or any automation platform able to send HTTP requests can call to trigger transcription of a YouTube link. There is no native Zapier app; you use a custom HTTP/webhook step. The Ingest API is configured in Settings → Developer API.
Does Libraryminds offer open-source tools I can run myself?
Yes. Libraryminds publishes standalone open-source tools on its official GitHub organization (github.com/Libraryminds). Each repository is one focused tool for one specific job, built on the Libraryminds API. Clone a repo, run it on your local machine or your own cloud, add your Libraryminds API key, and it works — you get only the feature you need without adopting the full product.
Can I white-label a Libraryminds open-source tool under my own brand?
Yes. The tools are open source, so you can customize the code, extend it, and ship it under your own brand. The heavy lifting — transcription, search, exports — is powered by the Libraryminds API through your API key, so your branded tool stays thin while the engine does the work.
Are the Libraryminds open-source tools free?
The code is free and open source — clone it from GitHub and run it anywhere at no cost. The tools call the Libraryminds API with your API key, so usage consumes your account's transcription minutes. A free account includes 190 lifetime transcription minutes with no credit card required, which is enough to try any tool end to end.
Open source on GitHub
Libraryminds is a full video knowledge engine with a lot of features — but every user has a different pain point. That's why we open-source standalone tools on the official Libraryminds GitHub organization — each repository is one focused tool for one specific job, built on the same API.
- Clone and run anywhere — on your local machine or your own cloud. Add your Libraryminds API key and it just works.
- Only the feature you need — no clutter, no digging through a full product to find the one thing that solves your problem.
- Customize or white-label it — the code is open source, so you can adapt it, extend it, or ship it under your own brand, powered by your API key.
Get your API key
Explore the tools on GitHub
github.com
Libraryminds
Official org — standalone open-source tools. Clone a repo, add your API key, and run it your way — locally, in the cloud, or under your own brand.
Ready to build?
Create a free account and generate your first API key in under a minute.
Get started free
View pricing