Workflow
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/workflows/session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"patient": {
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"background_context": "<string>",
"input_languages": [
"<string>"
],
"output_language_code": "<string>",
"template_ids": [
"<string>"
]
},
"session_id": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/workflows/session"
payload = {
"patient": {
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"background_context": "<string>",
"input_languages": ["<string>"],
"output_language_code": "<string>",
"template_ids": ["<string>"]
},
"session_id": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"patient": {
"id": "<string>",
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"id": "<string>",
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"background_context": "<string>",
"input_languages": [
"<string>"
],
"output_language_code": "<string>"
},
"resumed": true
}{
"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": {}
}Session workflows and history
Workflow
POST
/
v2
/
scribe
/
open-api
/
workflows
/
session
Workflow
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/workflows/session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"patient": {
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"background_context": "<string>",
"input_languages": [
"<string>"
],
"output_language_code": "<string>",
"template_ids": [
"<string>"
]
},
"session_id": "<string>"
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/workflows/session"
payload = {
"patient": {
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"background_context": "<string>",
"input_languages": ["<string>"],
"output_language_code": "<string>",
"template_ids": ["<string>"]
},
"session_id": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"patient": {
"id": "<string>",
"external_patient_id": "<string>",
"name": "<string>",
"pronouns": "<string>",
"additional_context": "<string>",
"restricted_identifiers": {}
},
"session": {
"id": "<string>",
"external_session_id": "<string>",
"patient_id": "<string>",
"title": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"background_context": "<string>",
"input_languages": [
"<string>"
],
"output_language_code": "<string>"
},
"resumed": true
}{
"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
Body
application/json