{
"message": [
"specialty must be a string"
],
"error": "Unprocessable Entity",
"statusCode": 422
}
Authorizations
x-daai-api-key
string
header
required
API key for authentication
Path Parameters
DAAI_CONSULTATION_ID
string
required
DAAI_RECORDING_ID
string
required
Body
application/json
specialty
string
default:generic
Consultation specialty. If not provided, will be considered as 'generic'
Example:
"generic"
reportSchema
object
Report schema. If not provided, will be considered the default schema of the specialty or the globally configured one.
The schema field must be a valid JSON Schema, according to the official specification. This ensures that the generated report follows the expected structure.
The fewShots field must contain examples that satisfy the defined schema.
Tip: You can test and validate the custom report configuration directly in the backoffice, in the transformation tab in the application settings. This way, you can experiment with different schemas and examples before applying them in production.
Show child attributes
Response
Consultation finished successfully
id
string
required
Consultation ID
Example:
"s0q0ud3fi1d9kcwjrt8vs50n"
transcription
string
required
Consultation transcription
Example:
""
recording
object
required
Recording information
Example:
{}
report
object
required
Consultation report
Show child attributes
metadata
object
required
Consultation metadata
Example:
{}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Doctor Assistant AI","colors":{"primary":"#009cb1","light":"#009cb1","dark":"#009cb1"},"logo":{"light":"https://mintcdn.com/doctorassistantai/xrfJ8HMkoZKRtrMI/logo/light.svg?fit=max\u0026auto=format\u0026n=xrfJ8HMkoZKRtrMI\u0026q=85\u0026s=c2df74a826821bf728e34971a8f89734","dark":"https://mintcdn.com/doctorassistantai/xrfJ8HMkoZKRtrMI/logo/dark.svg?fit=max\u0026auto=format\u0026n=xrfJ8HMkoZKRtrMI\u0026q=85\u0026s=e3c442e652d4fb7b738b5cc072562204"},"favicon":"/favicon.ico","navbar":{"links":[{"label":"Suporte","href":"https://www.doctorassistant.ai/prontuario/#contato"}],"primary":{"type":"button","label":"Dashboard","href":"https://backoffice.doctorassistant.ai"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@Doctorassistant_ai","discord":"https://discord.gg/bbAH7D6pSC","github":"https://github.com/doctorassistantai","linkedin":"https://linkedin.com/company/doctorassistant-ai","instagram":"https://instagram.com/doctorassistant.ai"}},"navigation":{"languages":[{"language":"pt-BR","href":"docs/pt-br/introduction"},{"language":"en","href":"docs/en/introduction"},{"language":"es","href":"docs/es/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"doctorassistantai","hasAudioNarration":false,"actualSubdomain":"doctorassistantai","customDomains":["documentation.doctorassistant.ai"],"gitSource":{"type":"github","owner":"jadsondoctorassistantai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae927afb0baf2aa54367b64:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"en","tag":"API Reference","count":11},{"language":"es","tag":"Referencia de API","count":11},{"language":"pt-BR","tag":"Referência da API","count":11},{"language":"en","tag":"Consultations","count":7},{"language":"es","tag":"Consultations","count":7},{"language":"pt-BR","tag":"Consultations","count":7},{"language":"en","tag":"Getting Started","count":3},{"language":"en","tag":"Exams","count":3},{"language":"es","tag":"Primeros Pasos","count":3},{"language":"es","tag":"Exams","count":3},{"language":"pt-BR","tag":"Primeiros Passos","count":3},{"language":"pt-BR","tag":"Exams","count":3},{"language":"en","tag":"Web Components","count":1},{"language":"en","tag":"Summaries","count":1},{"language":"es","tag":"Componentes Web","count":1},{"language":"es","tag":"Summaries","count":1},{"language":"pt-BR","tag":"Componentes Web","count":1},{"language":"pt-BR","tag":"Summaries","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"editor-metadata","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},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/consultations/finish-consultation","slug":"/api-reference/consultations/finish-consultation","pageMetadata":{"title":"Finish consultation","description":"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations/v2/{DAAI_CONSULTATION_ID}/recordings/{DAAI_RECORDING_ID}/finish","href":"/api-reference/consultations/finish-consultation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\"\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":{"title":"Finish consultation","description":"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations/v2/{DAAI_CONSULTATION_ID}/recordings/{DAAI_RECORDING_ID}/finish","href":"/api-reference/consultations/finish-consultation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Consultations"],"summary":"Finish consultation","description":"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.","requestBody":"cc41ae2e-7d40-4e71-9ccb-aa911bb4deaf","parameters":["b3a968d0-929c-465f-b70a-5965f9971a6e","5c9abfe3-dcdf-47b8-8bac-d734310f9545"],"responses":{"201":"5f0903f6-c86e-42e5-9a4a-ff594993990b","401":"65791095-65af-4d49-8397-82e0e2daa44e","404":"2a7423d5-d22b-46eb-83ae-ee6f617863d2","422":"ebd07394-7621-4873-90db-092b85926323"},"method":"post","type":"path","servers":["71f14b0f-1110-49b7-b2a0-7f5c281c13c7"],"security":["ea0dc6ce-53f8-40c4-b49d-54abd167d860"],"path":"/consultations/v2/{DAAI_CONSULTATION_ID}/recordings/{DAAI_RECORDING_ID}/finish","baseUrlOptions":["https://apim.doctorassistant.ai/api/sandbox"],"title":"Finish consultation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b3a968d0-929c-465f-b70a-5965f9971a6e":{"name":"DAAI_CONSULTATION_ID","in":"path","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true},"5c9abfe3-dcdf-47b8-8bac-d734310f9545":{"name":"DAAI_RECORDING_ID","in":"path","schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"specialty":{"type":"string","description":"Consultation specialty. If not provided, will be considered as 'generic'","default":"generic","example":"generic","uniqueKey":"specialty","typeLabel":"string"},"reportSchema":{"type":"object","description":"Report schema. If not provided, will be considered the default schema of the specialty or the globally configured one.\n\n- The `schema` field must be a **valid JSON Schema**, according to the [official specification](https://json-schema.org/specification). This ensures that the generated report follows the expected structure.\n- The `fewShots` field must contain examples that **satisfy the defined schema**.\n\n> **Tip:** You can test and validate the custom report configuration directly in the backoffice, in the transformation tab in the application settings. This way, you can experiment with different schemas and examples before applying them in production.\n","properties":{"instructions":{"type":"string","description":"Instructions for report generation","example":"The report should be written in Brazilian Portuguese and should contain patient information, consultation details and diagnosis.","isRequired":true,"uniqueKey":"reportSchema.instructions","typeLabel":"string"},"schema":{"type":"object","description":"JSON Schema of the report content","properties":{"type":{"type":"string","example":"object","isRequired":true,"uniqueKey":"reportSchema.schema.type","typeLabel":"string"},"required":{"type":"array","items":{"type":"string","uniqueKey":"reportSchema.schema.required.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"reportSchema.schema.required","typeLabel":"string[]"},"properties":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"reportSchema.schema.properties","typeLabel":"object"},"additionalProperties":{"type":"boolean","isRequired":true,"uniqueKey":"reportSchema.schema.\\additionalProperties","typeLabel":"boolean"}},"required":["type","required","properties","additionalProperties"],"isRequired":true,"uniqueKey":"reportSchema.schema","typeLabel":"object"},"fewShots":{"type":"string","description":"Examples of report filling in JSON string format","example":"[{\"foo\":1,\"bar\":\"test\"},{\"foo\":2,\"bar\":\"test2\"}]","uniqueKey":"reportSchema.fewShots","typeLabel":"string"}},"required":["instructions","schema"],"uniqueKey":"reportSchema","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"specialty":"generic"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5f0903f6-c86e-42e5-9a4a-ff594993990b":{"description":"Consultation finished successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Consultation ID","example":"s0q0ud3fi1d9kcwjrt8vs50n","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"transcription":{"type":"string","description":"Consultation transcription","example":"","isRequired":true,"uniqueKey":"transcription","typeLabel":"string"},"recording":{"type":"object","description":"Recording information","example":{},"isRequired":true,"uniqueKey":"recording","typeLabel":"object"},"report":{"type":"object","description":"Consultation report","properties":{"specialty":{"type":"string","description":"Consultation specialty","example":"generic","uniqueKey":"report.specialty","typeLabel":"string"},"content":{"type":"object","description":"Report content","example":{},"uniqueKey":"report.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"report","typeLabel":"object"},"metadata":{"type":"object","description":"Consultation metadata","example":{},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"}},"required":["id","transcription","recording","report","metadata"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"s0q0ud3fi1d9kcwjrt8vs50n","transcription":"","recording":{},"report":{"specialty":"generic","content":{}},"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"65791095-65af-4d49-8397-82e0e2daa44e":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unauthorized","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"statusCode":{"type":"integer","example":401,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["message","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Unauthorized","statusCode":401}}},"exampleType":"generated"}},"exampleType":"generated"},"2a7423d5-d22b-46eb-83ae-ee6f617863d2":{"description":"Consultation not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message","example":"Consultation not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Error type","example":"Not Found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":404,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["message","error","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Consultation not found","error":"Not Found","statusCode":404}}},"exampleType":"generated"}},"exampleType":"generated"},"ebd07394-7621-4873-90db-092b85926323":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"array","description":"List of validation error messages","items":{"type":"string","uniqueKey":"message.items.[INDEX]","typeLabel":"string"},"example":["specialty must be a string"],"isRequired":true,"uniqueKey":"message","typeLabel":"string[]"},"error":{"type":"string","description":"Error type","example":"Unprocessable Entity","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"statusCode":{"type":"integer","description":"HTTP status code","example":422,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["message","error","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":["specialty must be a string"],"error":"Unprocessable Entity","statusCode":422}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ea0dc6ce-53f8-40c4-b49d-54abd167d860":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-daai-api-key","description":"API key for authentication","scopes":[]}}},"servers":{"71f14b0f-1110-49b7-b2a0-7f5c281c13c7":{"url":"https://apim.doctorassistant.ai/api/sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-daai-api-key","description":"API key for authentication","scopes":[]},"schema":{"title":"x-daai-api-key","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-daai-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"docs/en/openapi.yaml"},"subdomain":"doctorassistantai","siteName":"Doctor Assistant AI","title":"Finish consultation - Doctor Assistant AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/docs/pt-br/introduction","matchLevel":3},"en":{"href":"/api-reference/consultations/finish-consultation","matchLevel":0},"es":{"href":"/docs/es/introduction","matchLevel":3}}},"lastModified":"2025-08-14T15:39:49.595Z","originalFileLocation":"api-reference/consultations/finish-consultation.mdx","locale":"en"},"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=\"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Doctor Assistant AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_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=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Finish consultation - Doctor Assistant AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Doctor Assistant AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://doctorassistantai.mintlify.site/_mintlify/api/og/v2?division=Consultations\u0026amp;title=Finish+consultation\u0026amp;description=Finishes+the+consultation+and+starts+audio+processing.+The+specialty+can+be+specified+to+determine+the+report+template.\u0026amp;theme=3e56b020366ab4723e352ef1\u0026amp;signature=b9b78ce7bb771630d036b5f5b435fdc3affcc617bb4a626d633e33f84ac8441f\">\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=\"Finish consultation - Doctor Assistant AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://doctorassistantai.mintlify.site/_mintlify/api/og/v2?division=Consultations\u0026amp;title=Finish+consultation\u0026amp;description=Finishes+the+consultation+and+starts+audio+processing.+The+specialty+can+be+specified+to+determine+the+report+template.\u0026amp;theme=3e56b020366ab4723e352ef1\u0026amp;signature=b9b78ce7bb771630d036b5f5b435fdc3affcc617bb4a626d633e33f84ac8441f\">\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=\"/mintlify-assets/_mintlify/favicons/doctorassistantai/QN2gg8_T5_deVEP0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Doctor Assistant AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#009cb1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/consultations/finish-consultation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://documentation.doctorassistant.ai/#organization\",\"name\":\"Doctor Assistant AI\",\"url\":\"https://documentation.doctorassistant.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/doctorassistantai/xrfJ8HMkoZKRtrMI/logo/light.svg?fit=max\u0026auto=format\u0026n=xrfJ8HMkoZKRtrMI\u0026q=85\u0026s=c2df74a826821bf728e34971a8f89734\"}},{\"@type\":\"WebSite\",\"@id\":\"https://documentation.doctorassistant.ai#website\",\"name\":\"Doctor Assistant AI\",\"url\":\"https://documentation.doctorassistant.ai\",\"publisher\":{\"@id\":\"https://documentation.doctorassistant.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation#webpage\",\"url\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation\",\"name\":\"Finish consultation\",\"description\":\"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\",\"dateModified\":\"2025-08-14T15:39:49.595Z\",\"isPartOf\":{\"@id\":\"https://documentation.doctorassistant.ai#website\"},\"breadcrumb\":{\"@id\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://documentation.doctorassistant.ai/api-reference/consultations/start-consultation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Consultations\",\"item\":\"https://documentation.doctorassistant.ai/api-reference/consultations/start-consultation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Finish consultation\",\"item\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation#apireference\",\"headline\":\"Finish consultation\",\"name\":\"Finish consultation\",\"description\":\"Finishes the consultation and starts audio processing. The specialty can be specified to determine the report template.\",\"url\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation\",\"mainEntityOfPage\":{\"@id\":\"https://documentation.doctorassistant.ai/api-reference/consultations/finish-consultation#webpage\"},\"dateModified\":\"2025-08-14T15:39:49.595Z\",\"publisher\":{\"@id\":\"https://documentation.doctorassistant.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://documentation.doctorassistant.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Doctor Assistant AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Doctor Assistant AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/consultations/finish-consultation.md","siteName":"Doctor Assistant AI","nav":{"global":null,"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/docs/pt-br/introduction"}]},{"language":"en","groups":[{"group":"Getting Started","pages":[{"title":"Start here","icon":"map-pin","href":"/docs/en/introduction"},{"title":"Getting Started","icon":"play","href":"/docs/en/quickstart"},{"title":"Integration","icon":"code","href":"/docs/en/development"}]},{"group":"API Reference","pages":[{"group":"Consultations","pages":[{"title":"Start consultation","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations/v2","href":"/api-reference/consultations/start-consultation"},{"title":"Send audio chunk","description":"Sends an audio chunk from the consultation. Chunks must be sent in sequential order using the chunkIndex parameter.","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations/v2/{DAAI_CONSULTATION_ID}/recordings/{DAAI_RECORDING_ID}/chunks","href":"/api-reference/consultations/send-audio-chunk"},{"title":"Finish consultation","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations/v2/{DAAI_CONSULTATION_ID}/recordings/{DAAI_RECORDING_ID}/finish","href":"/api-reference/consultations/finish-consultation"},{"title":"Create consultation in a single step","description":"\u003cWarning>\nWhen using this endpoint, the response time may be longer, as the audio is processed in a single step.\n\u003c/Warning>\n\nCreates a new medical consultation with the audio in a single step, without the need to send chunks separately.\n","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /consultations","href":"/api-reference/consultations/create-consultation-in-a-single-step"},{"title":"List specialties","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml get /specialties","href":"/api-reference/consultations/list-specialties"},{"title":"Get consultation","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml get /consultations/{DAAI_CONSULTATION_ID}","href":"/api-reference/consultations/get-consultation"},{"title":"Consultation events","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml get /consultations/{DAAI_CONSULTATION_ID}/events","href":"/api-reference/consultations/consultation-events"}]},{"group":"Exams","pages":[{"title":"Process exams in batch","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /exams/batch","href":"/api-reference/exams/process-exams-in-batch"},{"title":"Get exam by ID","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml get /exams/{EXAM_ID}","href":"/api-reference/exams/get-exam-by-id"},{"title":"Exam events","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml get /exams/{EXAM_ID}/events","href":"/api-reference/exams/exam-events"}]},{"group":"Summaries","pages":[{"title":"Document Summarization [Coming Soon]","deprecated":null,"version":null,"openapi":"docs/en/openapi.yaml post /summaries","href":"/api-reference/summaries/document-summarization-[coming-soon]"}]}]},{"group":"Web Components","pages":[{"title":"Consultation Recorder","icon":"podcast","href":"/docs/en/web-components/consultation-recorder"}]}]},{"language":"es","pages":[{"title":"es","href":"/docs/es/introduction"}]}]},"basePath":"","title":"Finish consultation - Doctor Assistant AI","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}