Generate Note
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/consult-note \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"template_ids": [
"<string>"
],
"output_language_code": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/consult-note"
payload = {
"template_ids": ["<string>"],
"output_language_code": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)event: output.delta
data: {"document_id":"document_example","data":"Consultation text"}
{
"job_id": "<string>",
"job_ids": [
"<string>"
],
"status": "<string>",
"document_ids": [
"<string>"
]
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}Notes and documents
Generate Note
POST
/
v2
/
scribe
/
open-api
/
sessions
/
{session_id}
/
consult-note
Generate Note
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/consult-note \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"template_ids": [
"<string>"
],
"output_language_code": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/consult-note"
payload = {
"template_ids": ["<string>"],
"output_language_code": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)event: output.delta
data: {"document_id":"document_example","data":"Consultation text"}
{
"job_id": "<string>",
"job_ids": [
"<string>"
],
"status": "<string>",
"document_ids": [
"<string>"
]
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}{
"message": "<string>",
"errors": [
{
"code": "<string>",
"field": "<string>"
}
],
"context": {}
}Authorizations
Response
Server-sent events with generated text and the saved document. Use stream=false for a 202 JSON receipt.
The response is of type string.