{
"error": {
"type": "invalid_request_error",
"code": "unsupported_model",
"message": "model 'a5s-async-v1' is not available for diarization; use \"aircaps-diarization-v1\"",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "permission_error",
"code": "model_access_denied",
"message": "This account does not have access to AirCaps Diarization-v1. To get access, talk to sales at https://aircaps.ai/contact.",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "file_not_found",
"message": "file_id not found or expired",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "idempotency_conflict",
"message": "Idempotency-Key was used with a different request",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "too many requests; retry after the Retry-After interval",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "unsupported_model",
"message": "model 'a5s-async-v1' is not available for diarization; use \"aircaps-diarization-v1\"",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "permission_error",
"code": "model_access_denied",
"message": "This account does not have access to AirCaps Diarization-v1. To get access, talk to sales at https://aircaps.ai/contact.",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "file_not_found",
"message": "file_id not found or expired",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "idempotency_conflict",
"message": "Idempotency-Key was used with a different request",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "too many requests; retry after the Retry-After interval",
"param": null,
"request_id": "req_01k6z3m4q8w7e5r2t1y0u9i8o7"
}
}
Completed only. Seconds in which two or more people speak at once.
Example:
61.44
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AirCaps AI","description":"AirCaps AI API: English speech-to-text, speaker diarization and speaker identification. A5S Async v1 (batch transcription with speaker labels), A5S Small V2 Streaming (live captions over WebSocket), AirCaps Diarization-v1 (who spoke when) and AirCaps Speaker ID-v1 (recognize enrolled voices). Model research and benchmarks: https://aircaps.ai/research","colors":{"primary":"#1B1B18","light":"#F3F0E7","dark":"#1B1B18"},"logo":{"light":"https://mintcdn.com/air-caps/tnXe4a3SgZnJ9-d6/logo/light.png?fit=max\u0026auto=format\u0026n=tnXe4a3SgZnJ9-d6\u0026q=85\u0026s=a0ee30295f98b62d4c267b12a091ff1b","dark":"https://mintcdn.com/air-caps/tnXe4a3SgZnJ9-d6/logo/dark.png?fit=max\u0026auto=format\u0026n=tnXe4a3SgZnJ9-d6\u0026q=85\u0026s=686ccf47b4786556086d97c19f9d5a42","href":"https://aircaps.ai"},"favicon":"https://mintcdn.com/air-caps/YB885TbhaAdo7HNl/favicon.png?fit=max\u0026auto=format\u0026n=YB885TbhaAdo7HNl\u0026q=85\u0026s=0fef3ddc891625fc3771f9290344489e","api":{"openapi":"openapi.json","playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"navbar":{"links":[{"href":"https://aircaps.ai/research","label":"Research"},{"href":"https://aircaps.ai/contact","label":"Talk to sales"}],"primary":{"type":"button","label":"Get an API key","href":"https://console.aircaps.ai/api-keys"}},"footer":{"socials":{"website":"https://aircaps.ai","github":"https://github.com/aircaps"},"links":[{"header":"Models","items":[{"label":"A5S Async v1","href":"https://aircaps.ai/models/a5s-async"},{"label":"A5S Small V2 Streaming","href":"https://aircaps.ai/models/a5s-streaming"},{"label":"AirCaps Diarization-v1","href":"https://aircaps.ai/models/diarization"},{"label":"AirCaps Speaker ID-v1","href":"https://aircaps.ai/models/speaker-id"},{"label":"All models","href":"https://aircaps.ai/models"}]},{"header":"AirCaps","items":[{"label":"Playground","href":"https://console.aircaps.ai"},{"label":"Talk to sales","href":"https://aircaps.ai/contact"}]}]},"seo":{"metatags":{"canonical":"https://aircaps.ai/docs","msvalidate.01":"AA35D7130FFB1F30257FFBE758DC985E","og:image":"https://aircaps.ai/assets/og/docs.png","og:image:width":"1200","og:image:height":"630","twitter:image":"https://aircaps.ai/assets/og/docs.png","twitter:site":"@tryaircaps"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"air-caps","hasAudioNarration":false,"actualSubdomain":"air-caps","customDomains":["aircaps.ai"],"gitSource":{"type":"github","owner":"aircaps","repo":"aircaps-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6aeaca2801f09338ef4340f9","collectionId":"285c7c82-ce36-46f1-bda0-78815764b807","liveDeploymentHistoryId":"6aeaca2801f09338ef4340f9","schemaVersion":"v3"},"entitlements":{},"buildId":"6aead2222641703a7d479ab1","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"API reference","count":37},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"Objects","count":11},{"language":"default","tag":"Speakers","count":8},{"language":"default","tag":"Transcripts","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Diarizations","count":5},{"language":"default","tag":"Account","count":3},{"language":"default","tag":"Operations","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-diarization","slug":"/api-reference/create-diarization","pageMetadata":{"openapi":"POST /v1/diarizations","title":"Create a diarization","description":"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll [Get a diarization](/api-reference/get-diarization) or pass `webhook_url`.","href":"/api-reference/create-diarization"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll \", _jsx(_components.a, {\n href: \"/api-reference/get-diarization\",\n children: \"Get a diarization\"\n }), \" or pass \", _jsx(_components.code, {\n children: \"webhook_url\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"POST /v1/diarizations","title":"Create a diarization","description":"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll [Get a diarization](/api-reference/get-diarization) or pass `webhook_url`.","href":"/api-reference/create-diarization"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create a diarization","description":"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll [Get a diarization](/api-reference/get-diarization) or pass `webhook_url`.","responses":{"201":"262d7bb3-db55-413c-96bf-4ffceb17e981","400":"6971fb74-2067-4c1a-b8fc-f67590feedbb","401":"f807ff6c-76d2-4d76-9baa-3268e58690e6","403":"53526aad-7e30-4c51-a218-c18413da40af","404":"5355210b-cfd2-4595-bf3f-1cda5ed3eabb","409":"4b50a779-abc3-42c3-abdb-deadc0405db4","429":"10868771-c921-45e9-8a18-274319b686ca","500":"4d47e7c9-92d9-43c7-972b-55f9c69e0721","503":"52a12560-e8dc-4a5b-8df6-10c3fd1c6100"},"tags":["Diarizations"],"operationId":"createDiarization","parameters":["07ecdfb2-7073-48b4-808b-5c07592335b6"],"requestBody":"741315bd-c100-4846-aaaa-0787f6117ab1","method":"post","type":"path","servers":["9571de2f-7d72-4bb3-9ed2-4dbb4898292a"],"security":["004c834b-55f5-4cb2-babc-0df824f4a878"],"path":"/v1/diarizations","baseUrlOptions":["https://api.aircaps.com"],"title":"Create a diarization","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"07ecdfb2-7073-48b4-808b-5c07592335b6":{"name":"Idempotency-Key","in":"header","required":false,"description":"Up to 255 characters. Makes retries safe: the same key and body return the original job.","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Up to 255 characters. Makes retries safe: the same key and body return the original job.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Provide exactly one of `audio_url` or `file_id`.","properties":{"model":{"type":"string","enum":["aircaps-diarization-v1"],"default":"aircaps-diarization-v1","description":"The model. Any other value returns `400 unsupported_model`.","uniqueKey":"model","typeLabel":"enum\u003cstring>"},"audio_url":{"type":"string","maxLength":8192,"format":"uri","description":"An http(s) URL to download the audio from (public or presigned), up to 5 GB, resolving to a public address.","example":"https://example.com/meeting.mp3","uniqueKey":"audio_url","typeLabel":"string\u003curi>"},"file_id":{"type":"string","maxLength":64,"description":"An uploaded file, usable by any number of jobs for 24 hours after upload. ID from [Create an upload URL](/api-reference/upload-url) or [Upload a file](/api-reference/upload-file).","uniqueKey":"file_id","typeLabel":"string"},"webhook_url":{"type":"string","maxLength":2048,"format":"uri","description":"Called with a [webhook event](/api-reference/objects/webhook-event) when the job finishes.","uniqueKey":"webhook_url","typeLabel":"string\u003curi>"},"webhook_auth_header_name":{"type":"string","maxLength":256,"description":"Name of a header to add to webhook requests. Requires `webhook_url`.","example":"Authorization","uniqueKey":"webhook_auth_header_name","typeLabel":"string"},"webhook_auth_header_value":{"type":"string","maxLength":4096,"description":"Value of that header.","uniqueKey":"webhook_auth_header_value","typeLabel":"string"},"metadata":{"type":"object","description":"Any JSON object up to 16 KB; echoed on the diarization and in webhooks.","example":{"meeting_id":42},"uniqueKey":"metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"model":"aircaps-diarization-v1","audio_url":"https://example.com/meeting.mp3","webhook_url":"https://example.com/hooks/aircaps","metadata":{"meeting_id":42}},"examples":{"Example":{"title":"Example","value":{"model":"aircaps-diarization-v1","audio_url":"https://example.com/meeting.mp3","webhook_url":"https://example.com/hooks/aircaps","metadata":{"meeting_id":42}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"262d7bb3-db55-413c-96bf-4ffceb17e981":{"description":"Created. A retried request with the same `Idempotency-Key` returns the original diarization with `200`.","content":{"application/json":{"schema":{"type":"object","required":["id","object","status","created_at","started_at","completed_at","audio_url","file_id","model","audio_duration","metadata","webhook_url","webhook_status","webhook_status_code","error"],"properties":{"id":{"type":"string","description":"Diarization ID.","example":"dia_01k72p0x9h6t3b8r1n4m7q2w5e","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["diarization"],"example":"diarization","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["queued","processing","completed","error"],"description":"`queued`: waiting for a processing slot. `processing`: being diarized. `completed`: result fields present. `error`: see `error`.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","description":"When the diarization was created (UTC).","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"started_at":{"oneOf":[{"type":"string","format":"date-time","description":"When processing started.","isRequired":true,"uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When processing started.","isRequired":true,"uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the job finished (completed or error).","isRequired":true,"uniqueKey":"completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the job finished (completed or error).","isRequired":true,"uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time> | null"},"audio_url":{"oneOf":[{"type":"string","description":"The submitted `audio_url`, if any.","isRequired":true,"uniqueKey":"audio_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The submitted `audio_url`, if any.","isRequired":true,"uniqueKey":"audio_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"audio_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The submitted `file_id`, if any.","isRequired":true,"uniqueKey":"file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The submitted `file_id`, if any.","isRequired":true,"uniqueKey":"file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"file_id","typeLabel":"string | null"},"model":{"type":"string","enum":["aircaps-diarization-v1"],"isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"audio_duration":{"oneOf":[{"type":"number","description":"Audio duration in seconds, once known.","example":3600.512,"isRequired":true,"uniqueKey":"audio_duration.oneOf.0","typeLabel":"number"},{"type":"null","description":"Audio duration in seconds, once known.","example":3600.512,"isRequired":true,"uniqueKey":"audio_duration.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"audio_duration","typeLabel":"number | null"},"metadata":{"oneOf":[{"type":"object","description":"Your `metadata`, echoed back.","isRequired":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Your `metadata`, echoed back.","isRequired":true,"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"metadata","typeLabel":"object | null"},"webhook_url":{"oneOf":[{"type":"string","description":"Webhook target, if any.","isRequired":true,"uniqueKey":"webhook_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Webhook target, if any.","isRequired":true,"uniqueKey":"webhook_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"webhook_url","typeLabel":"string | null"},"webhook_status":{"oneOf":[{"type":"string","enum":["pending","delivered","failed",null],"description":"Webhook delivery state, if `webhook_url` was set.","isRequired":true,"uniqueKey":"webhook_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","delivered","failed",null],"description":"Webhook delivery state, if `webhook_url` was set.","isRequired":true,"uniqueKey":"webhook_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"webhook_status","typeLabel":"enum\u003cstring> | null"},"webhook_status_code":{"oneOf":[{"type":"integer","description":"HTTP status of the last webhook delivery.","isRequired":true,"uniqueKey":"webhook_status_code.oneOf.0","typeLabel":"integer"},{"type":"null","description":"HTTP status of the last webhook delivery.","isRequired":true,"uniqueKey":"webhook_status_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"webhook_status_code","typeLabel":"integer | null"},"error":{"oneOf":[{"type":"object","description":"Set when `status` is `error`.","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_audio","audio_too_long","file_too_large","download_failed","file_not_found","usage_limit_reached","internal_error","canceled"],"description":"Why the job failed. Failed jobs never count toward usage.","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable detail.","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Set when `status` is `error`.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"num_speakers":{"type":"integer","description":"Completed only. Number of speakers found.","example":3,"uniqueKey":"num_speakers","typeLabel":"integer"},"speakers":{"type":"array","items":{"type":"object","required":["id","speaking_time"],"properties":{"id":{"type":"string","example":"speaker_0","isRequired":true,"uniqueKey":"speakers.items.[INDEX].id","typeLabel":"string"},"speaking_time":{"type":"number","description":"Seconds this speaker talks.","example":1402.11,"isRequired":true,"uniqueKey":"speakers.items.[INDEX].speaking_time","typeLabel":"number"}},"uniqueKey":"speakers.items.[INDEX]","typeLabel":"object"},"description":"Completed only. Every speaker, with their speaking time.","uniqueKey":"speakers","typeLabel":"object[]"},"segments":{"type":"array","items":{"type":"object","required":["speaker","start","end"],"properties":{"speaker":{"type":"string","description":"Speaker label (`speaker_0`, `speaker_1`, … in order of first speech).","example":"speaker_0","isRequired":true,"uniqueKey":"segments.items.[INDEX].speaker","typeLabel":"string"},"start":{"type":"number","description":"Start time in seconds.","example":0.48,"isRequired":true,"uniqueKey":"segments.items.[INDEX].start","typeLabel":"number"},"end":{"type":"number","description":"End time in seconds.","example":6.12,"isRequired":true,"uniqueKey":"segments.items.[INDEX].end","typeLabel":"number"}},"uniqueKey":"segments.items.[INDEX]","typeLabel":"object"},"description":"Completed only. Who spoke when, in time order. Overlapping speech appears as overlapping segments of different speakers.","uniqueKey":"segments","typeLabel":"object[]"},"speech_duration":{"type":"number","description":"Completed only. Seconds in which anyone speaks.","example":1498.27,"uniqueKey":"speech_duration","typeLabel":"number"},"overlap_duration":{"type":"number","description":"Completed only. Seconds in which two or more people speak at once.","example":61.44,"uniqueKey":"overlap_duration","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"dia_01k72p0x9h6t3b8r1n4m7q2w5e","object":"diarization","status":"queued","created_at":"2026-10-08T18:01:02.123Z","started_at":null,"completed_at":null,"audio_url":"https://example.com/meeting.mp3","file_id":null,"model":"aircaps-diarization-v1","audio_duration":null,"metadata":{"meeting_id":42},"webhook_url":"https://example.com/hooks/aircaps","webhook_status":null,"webhook_status_code":null,"error":null},"examples":{"Example":{"title":"Example","value":{"id":"dia_01k72p0x9h6t3b8r1n4m7q2w5e","object":"diarization","status":"queued","created_at":"2026-10-08T18:01:02.123Z","started_at":null,"completed_at":null,"audio_url":"https://example.com/meeting.mp3","file_id":null,"model":"aircaps-diarization-v1","audio_duration":null,"metadata":{"meeting_id":42},"webhook_url":"https://example.com/hooks/aircaps","webhook_status":null,"webhook_status_code":null,"error":null}}},"exampleType":"examples"}},"headers":{"Location":{"description":"URL of the new diarization.","schema":{"type":"string"}}},"exampleType":"examples"},"6971fb74-2067-4c1a-b8fc-f67590feedbb":{"description":"Invalid request. Codes: `invalid_request`, `unsupported_model`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_request_error","code":"unsupported_model","message":"model 'a5s-async-v1' is not available for diarization; use \"aircaps-diarization-v1\"","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"unsupported_model","message":"model 'a5s-async-v1' is not available for diarization; use \"aircaps-diarization-v1\"","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"f807ff6c-76d2-4d76-9baa-3268e58690e6":{"description":"Missing or invalid API key. Codes: `unauthorized`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"authentication_error","code":"unauthorized","message":"invalid API key","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"unauthorized","message":"invalid API key","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"53526aad-7e30-4c51-a218-c18413da40af":{"description":"The account may not do this. Codes: `account_suspended`, `account_disabled`, `usage_limit_reached`, `model_access_denied`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"permission_error","code":"model_access_denied","message":"This account does not have access to AirCaps Diarization-v1. To get access, talk to sales at https://aircaps.ai/contact.","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"permission_error","code":"model_access_denied","message":"This account does not have access to AirCaps Diarization-v1. To get access, talk to sales at https://aircaps.ai/contact.","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5355210b-cfd2-4595-bf3f-1cda5ed3eabb":{"description":"Not found. Codes: `file_not_found`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_request_error","code":"file_not_found","message":"file_id not found or expired","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"file_not_found","message":"file_id not found or expired","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"4b50a779-abc3-42c3-abdb-deadc0405db4":{"description":"Idempotency key reused with a different body. Codes: `idempotency_conflict`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_request_error","code":"idempotency_conflict","message":"Idempotency-Key was used with a different request","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"idempotency_conflict","message":"Idempotency-Key was used with a different request","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"10868771-c921-45e9-8a18-274319b686ca":{"description":"Rate or queue limit reached. Codes: `rate_limited`, `queue_full`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"rate_limit_error","code":"rate_limited","message":"too many requests; retry after the Retry-After interval","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"rate_limit_error","code":"rate_limited","message":"too many requests; retry after the Retry-After interval","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"exampleType":"examples"},"4d47e7c9-92d9-43c7-972b-55f9c69e0721":{"description":"Server error. Safe to retry (use the same Idempotency-Key). Codes: `internal_error`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"api_error","code":"internal_error","message":"internal error","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"api_error","code":"internal_error","message":"internal error","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"exampleType":"examples"},"52a12560-e8dc-4a5b-8df6-10c3fd1c6100":{"description":"Temporarily unavailable. Retry after the Retry-After interval. Codes: `service_unavailable`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","request_id"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Machine-readable code; see [Errors](/errors).","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Also in the `x-request-id` header. Include it when contacting support. `null` on 502/504 from the edge.","isRequired":true,"uniqueKey":"error.request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field at fault, if any.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"api_error","code":"service_unavailable","message":"temporarily unavailable; please retry","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"api_error","code":"service_unavailable","message":"temporarily unavailable; please retry","param":null,"request_id":"req_01k6z3m4q8w7e5r2t1y0u9i8o7"}}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"exampleType":"examples"}},"security":{"004c834b-55f5-4cb2-babc-0df824f4a878":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key: `Authorization: Bearer aircaps_sk_...`","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"9571de2f-7d72-4bb3-9ed2-4dbb4898292a":{"url":"https://api.aircaps.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API key: `Authorization: Bearer aircaps_sk_...`","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API key: `Authorization: Bearer aircaps_sk_...`","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"air-caps","siteName":"AirCaps AI","title":"Create a diarization - AirCaps AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-09T00:35:01.276Z","originalFileLocation":"api-reference/create-diarization.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AirCaps AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a diarization - AirCaps AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AirCaps AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://aircaps.ai/docs/api-reference/create-diarization\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aircaps.ai/assets/og/docs.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a diarization - AirCaps AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aircaps.ai/assets/og/docs.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/air-caps/59Z8WdsG4VfZMczA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AirCaps AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1B1B18\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"AA35D7130FFB1F30257FFBE758DC985E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://aircaps.ai/docs/api-reference/create-diarization\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/create-diarization.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://aircaps.ai/#organization\",\"name\":\"AirCaps AI\",\"url\":\"https://aircaps.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/air-caps/tnXe4a3SgZnJ9-d6/logo/light.png?fit=max\u0026auto=format\u0026n=tnXe4a3SgZnJ9-d6\u0026q=85\u0026s=a0ee30295f98b62d4c267b12a091ff1b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://aircaps.ai/docs#website\",\"name\":\"AirCaps AI\",\"url\":\"https://aircaps.ai/docs\",\"publisher\":{\"@id\":\"https://aircaps.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://aircaps.ai/docs/api-reference/create-diarization#webpage\",\"url\":\"https://aircaps.ai/docs/api-reference/create-diarization\",\"name\":\"Create a diarization\",\"description\":\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.\",\"dateModified\":\"2026-10-09T00:35:01.276Z\",\"isPartOf\":{\"@id\":\"https://aircaps.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://aircaps.ai/docs/api-reference/create-diarization#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://aircaps.ai/docs/api-reference/create-diarization#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AirCaps AI\",\"item\":\"https://aircaps.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a diarization\",\"item\":\"https://aircaps.ai/docs/api-reference/create-diarization\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://aircaps.ai/docs/api-reference/create-diarization#apireference\",\"headline\":\"Create a diarization\",\"name\":\"Create a diarization\",\"description\":\"Find who spoke when with AirCaps Diarization-v1 (enabled per account). The job runs asynchronously: poll Get a diarization or pass webhook_url.\",\"url\":\"https://aircaps.ai/docs/api-reference/create-diarization\",\"mainEntityOfPage\":{\"@id\":\"https://aircaps.ai/docs/api-reference/create-diarization#webpage\"},\"image\":\"https://aircaps.ai/assets/og/docs.png\",\"dateModified\":\"2026-10-09T00:35:01.276Z\",\"publisher\":{\"@id\":\"https://aircaps.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://aircaps.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AirCaps AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AirCaps AI","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/overview"}]},{"group":"Transcripts","pages":[{"openapi":"POST /v1/transcripts","title":"Create a transcript","href":"/api-reference/create-transcript"},{"openapi":"POST /v1/transcribe","title":"Transcribe (one request)","href":"/api-reference/transcribe"},{"openapi":"GET /v1/transcripts/{id}","title":"Get a transcript","href":"/api-reference/get-transcript"},{"openapi":"GET /v1/transcripts","title":"List transcripts","href":"/api-reference/list-transcripts"},{"openapi":"DELETE /v1/transcripts/{id}","title":"Delete a transcript","href":"/api-reference/delete-transcript"},{"openapi":"GET /v1/transcripts/{id}/subtitles","title":"Get subtitles","description":"SRT or WebVTT captions for a completed transcript, with the speaker in each cue.","href":"/api-reference/subtitles"}]},{"group":"Diarizations","pages":[{"openapi":"POST /v1/diarizations","title":"Create a diarization","href":"/api-reference/create-diarization"},{"openapi":"GET /v1/diarizations/{id}","title":"Get a diarization","description":"Status and, once `completed`, the result.","href":"/api-reference/get-diarization"},{"openapi":"GET /v1/diarizations","title":"List diarizations","href":"/api-reference/list-diarizations"},{"openapi":"DELETE /v1/diarizations/{id}","title":"Delete a diarization","href":"/api-reference/delete-diarization"},{"openapi":"GET /v1/diarizations/{id}/rttm","title":"Get RTTM","href":"/api-reference/diarization-rttm"}]},{"group":"Speakers","pages":[{"openapi":"POST /v1/speakers/identify","title":"Identify a speaker","href":"/api-reference/identify-speaker"},{"openapi":"POST /v1/speakers","title":"Create a speaker","href":"/api-reference/create-speaker"},{"openapi":"POST /v1/speakers/{id}/enrollments","title":"Add an enrollment","href":"/api-reference/add-enrollment"},{"openapi":"GET /v1/speakers/{id}","title":"Get a speaker","href":"/api-reference/get-speaker"},{"openapi":"GET /v1/speakers","title":"List speakers","href":"/api-reference/list-speakers"},{"openapi":"PATCH /v1/speakers/{id}","title":"Update a speaker","href":"/api-reference/update-speaker"},{"openapi":"DELETE /v1/speakers/{id}/enrollments/{enrollment_id}","title":"Delete an enrollment","href":"/api-reference/delete-enrollment"},{"openapi":"DELETE /v1/speakers/{id}","title":"Delete a speaker","href":"/api-reference/delete-speaker"}]},{"group":"Files","pages":[{"openapi":"POST /v1/files/upload-url","title":"Create an upload URL","href":"/api-reference/upload-url"},{"openapi":"POST /v1/files","title":"Upload a file","href":"/api-reference/upload-file"}]},{"group":"Realtime","pages":[{"title":"Realtime stream","href":"/api-reference/realtime"}]},{"group":"Account","pages":[{"openapi":"GET /v1/models","title":"List models","href":"/api-reference/models"},{"openapi":"GET /v1/account","title":"Get account","href":"/api-reference/account"},{"openapi":"GET /v1/usage","title":"Get usage","href":"/api-reference/usage"}]},{"group":"Objects","pages":[{"title":"Transcript object","href":"/api-reference/objects/transcript"},{"title":"Utterance object","href":"/api-reference/objects/utterance"},{"title":"Word object","href":"/api-reference/objects/word"},{"title":"Diarization object","href":"/api-reference/objects/diarization"},{"title":"Segment object","href":"/api-reference/objects/segment"},{"title":"Speaker object","href":"/api-reference/objects/enrolled-speaker"},{"title":"Speaker enrollment object","href":"/api-reference/objects/speaker-enrollment"},{"title":"Speaker identification object","href":"/api-reference/objects/speaker-identification"},{"title":"File object","href":"/api-reference/objects/file"},{"title":"Error object","href":"/api-reference/objects/error"},{"title":"Webhook event","href":"/api-reference/objects/webhook-event"}]}]}]},"basePath":"","title":"Create a diarization - AirCaps AI","buildId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","deploymentId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-vlKR2tYY.js","utils-DBDPZSWe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CxHK4zz2.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-27b98BOz.js","snippetPresets-DNnui32z.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-cDVS2zyo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BEE-OyDQ.js","shallow-fqEMZOYR.js","getApiPlaygroundDisplay-BPut1_OB.js","CodeSnippet-h9vp8UTG.js","CodeSnippets-DoMjCW5Q.js","Page-BOWGOUSK.js","getPastedJson-C4r-hmQ_.js","icon-CCDahfhO.js","MethodPill-Dpq0JSrS.js","DuplicateIcon-BGPwFt-j.js","createIcon-DBULrQp7.js","DynamicMarkdown-B74atANy.js","SectionHeading-DZCpbSmT.js","axios-vUo_bRtp.js","Markdown-BwkgxkAH.js","clsx-CEIlvfOI.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-f6OgbvLC.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DvlTOml0.js"]}