Documentation Index
Fetch the complete documentation index at: https://docs.transcriptmagic.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
Response
| Field | Type | Description |
|---|---|---|
credits | integer | Remaining credits on the account. 0 means out of credits — transcript endpoints will return 403 no_credits until you top up. |
plan | string | One of "free", "credits", or a subscription plan slug (e.g. "plus", "pro"). |
Response headers
Every response carries the standard rate-limit headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Always 120. |
X-RateLimit-Remaining | Requests left in the current 60-second window. |
X-RateLimit-Reset | Unix timestamp when the window resets. |
Errors
| Status | Body | When |
|---|---|---|
401 | { "error": "Missing API key" } | No Authorization header, or it doesn’t start with Bearer sk_live_. |
401 | { "error": "Invalid API key" } | The key was revoked or never existed. |
429 | { "error": "Rate limit exceeded. Try again later." } | 120 requests/minute exceeded. Honor the Retry-After header. |
/api/balance does not return 403 no_credits for empty accounts — it is the canonical way to check whether you should top up before issuing a transcript request.
Common patterns
Pre-flight check before a batch job
Pre-flight check before a batch job
Call
/api/balance once at the start of a batch of 1,000 URLs. If credits < 1000, fail fast rather than burning through credits mid-run and getting partial results.Validate a key in CI
Validate a key in CI
Use
/api/balance as your smoke test in deploy pipelines — a 200 confirms the key is valid and points at a real account. Cheaper and faster than POSTing a real video URL.Surface remaining credits in your UI
Surface remaining credits in your UI
Cache the response for ~30 seconds in your app shell. Refresh after every successful transcript call (which already returns
credits in its response body) so users see the deduction immediately.