Generate Document
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/documents/{document_id}/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"output_language_code": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/documents/{document_id}/content"
payload = { "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>",
"status": "<string>",
"document_id": "<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 Document
POST
/
v2
/
scribe
/
open-api
/
sessions
/
{session_id}
/
documents
/
{document_id}
/
content
Generate Document
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/documents/{document_id}/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"output_language_code": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/documents/{document_id}/content"
payload = { "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>",
"status": "<string>",
"document_id": "<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.