Every /api/v1/* endpoint with request bodies, responses, curl examples, and SDK equivalents. The official Node SDK wraps the core flow; this page is for direct REST work and for non-Node developers.
Every endpoint uses a Bearer API key. Keys start with ck_live_.
Authorization: Bearer ck_live_YOUR_KEY
Wraps the core flow (submit, poll, export) with typed errors.
npm install @capsiynau/sdk-transcribe
/api/v1/transcribeQueues a transcription job for a project. Returns a jobId immediately; poll /api/v1/status to follow progress.
client.submit(){ "projectId": "PROJECT_ID", "fileUrl": "https://example.com/audio.mp3", "sourceLanguage": "cy" }{ "jobId": "...", "projectId": "...", "engine": "assemblyai", "status": "queued" }curl -X POST "https://www.capsiynau.com/api/v1/transcribe" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"projectId":"PROJECT_ID","fileUrl":"https://...","sourceLanguage":"cy"}'/api/v1/status?jobId=JOB_IDReturns the current status of a transcription job. Terminal statuses are 'done' (success), 'failed', and 'cancelled'.
client.getStatus() / client.waitFor(){ "job": { "id": "...", "status": "done", "project_id": "...", "error": null, "created_at": "...", "updated_at": "..." } }curl "https://www.capsiynau.com/api/v1/status?jobId=JOB_ID" -H "Authorization: Bearer YOUR_KEY"
/api/v1/export?projectId=PROJECT_ID&format=srt&track=originalReturns the project transcript in the requested format. Supported formats: json, srt, vtt, txt, ebutt, ttml. JSON returns parsed segments (each with start_ms, end_ms, text, language, and speaker_label when speaker diarisation has run); the others stream as file downloads with Content-Disposition: attachment.
client.getTranscript()JSON: { "project_id": "...", "source_language": "cy-GB", "segments": [{ "start_ms": 0, "end_ms": 2650, "text": "...", "language": "cy", "speaker_label": "Speaker 1" }, ...] }\nSRT/VTT/TXT/EBUTT/TTML: file downloadcurl "https://www.capsiynau.com/api/v1/export?projectId=PROJECT_ID&format=json" \ -H "Authorization: Bearer YOUR_KEY"
/api/v1/metadataAuto-generates summary, chapters, keywords, named entities, sentiment, and JSON-LD structured data from a completed transcript. Studio plan or above. Each call increments your monthly SEO Pack usage counter, returned inline in `seoPackUsage`.
{ "projectId": "PROJECT_ID" }{ "metadata": { "summary": "...", "chapters": [...], "keywords": [...], "entities": [...], "sentiment": "...", "jsonld": {...} }, "seoPackUsage": { "used": 1, "month": "2026-05" } }curl -X POST "https://www.capsiynau.com/api/v1/metadata" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"projectId":"PROJECT_ID"}'/api/v1/translateStateless text translation between Welsh and English. No project required. Use context: "tts" for short broadcast captions, "subtitle" for caption refinement. For Welsh output, targetLang may carry a dialect suffix (cy-GB-north, cy-GB-south, cy-GB-formal, cy-GB-broadcast). In either direction, style is "broadcast" (the default), "standard" or "conversational". When a request leaves them out, the Style saved in the translation preferences of the person who created the API key applies in either direction, and the Region saved there applies to Welsh output. For an organisation whose content stays on our platform, a dialect, a style, context "tts" and the saved Region and Style are applied there too, except conversational style with the formal dialect, which it refuses with 400 validation.format. Only when translating into Welsh, it refuses an Organisation writing style or a My Voice (Fy Llais) profile with 409 platform_opt_in_refused (see Error codes).
{ "text": "Bore da", "targetLang": "en", "sourceLang": "cy", "context": "tts" }{ "text": "Good morning", "sourceLang": "cy", "targetLang": "en", "engine": "..." }curl -X POST "https://www.capsiynau.com/api/v1/translate" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Bore da","targetLang":"en","context":"tts"}'/api/v1/projectsReturns projects scoped to the API key’s organisation. Supports limit + offset.
{ "projects": [...], "total": 42, "limit": 20, "offset": 0 }curl "https://www.capsiynau.com/api/v1/projects" -H "Authorization: Bearer YOUR_KEY"
/api/v1/projectsCreates a new empty project. Returns the project record with a fresh id you pass to /transcribe.
{ "title": "My project", "source_language": "cy-GB", "welsh_dialect": "broadcast" }{ "project": { "id": "...", "title": "...", "status": "ready", "created_date": "..." } }curl -X POST "https://www.capsiynau.com/api/v1/projects" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"My project","source_language":"cy-GB"}'/api/v1/keysGET lists keys, POST creates a new key (returned once, never shown again), DELETE revokes by id. Issuance is also available in-app at /accountsettings.
POST: { "name": "My integration" }\nDELETE: { "id": "KEY_ID" }GET: { "keys": [...] }\nPOST: { "key": "ck_live_..." } // raw key shown ONCE\nDELETE: { "ok": true }curl -X POST "https://www.capsiynau.com/api/v1/keys" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"My integration"}'| Status | Code | Meaning |
|---|---|---|
| 200 | - | Success |
| 201 | - | Created |
| 400 | validation.* | Bad request - missing or invalid parameter. A request our platform refuses as invalid (validation.format, retryable false) is final: change it, do not retry it as it is |
| 401 | auth.* | Invalid or revoked API key |
| 402 | plan.required | Plan upgrade required for this endpoint |
| 404 | not_found.* | Resource not found |
| 405 | method.not_allowed | Method not allowed on this endpoint |
| 409 | conflict.race | Conflict - retry the request (race recovery) |
| 409 | platform_opt_in_refused | Not available for this organisation: its content stays on our platform, which cannot do this yet. Final - do not retry as it is. When a saved setting is the reason, 'unsupported' names each option AIOG cannot honour and 'source' is an object keyed by those names, each a list of the saved settings it came from, the one in effect first. A saved setting applies whatever the request says, so no request can get past it: 'organisation_voice' is cleared by an organisation owner or admin; 'personal_voice' belongs to the person who created the API key, who changes it |
| 409 | policy_unsatisfiable | The organisation's data policy does not allow this. Final - do not retry |
| 409 | residency_unsatisfiable | The organisation's data residency setting does not allow this. Final - do not retry |
| 422 | validation.* | Unprocessable entity - validation failed |
| 429 | quota.exceeded | Rate limit or quota exceeded - check Retry-After |
| 500 | server.* | Server error - retry with backoff |
| 503 | residency_route_unavailable | Our platform is not available for this organisation right now; nothing was sent. Retry with backoff |
| 503 | residency_route_failed | Our platform could not complete the request; nothing was sent anywhere else. Retry with backoff |
| 503 | residency_profile_unreadable | The organisation's data residency setting could not be read; nothing was sent. Retry with backoff |
| 503 | platform_opt_in_unreadable | A service setting needs our attention; nothing was sent. Retry later |
Error bodies always include { error: '<string>' } and (from v1.1) a structured 'code' field. The SDK throws typed classes (AuthError, PlanGateError, QuotaError, ValidationError, NetworkError, ServerError).