Structured Response
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/structured-responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"questions": [
{
"questionId": "<string>",
"question": "<string>",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": false,
"childQuestions": "<array>"
}
],
"template": "",
"summaryRequired": false,
"metadata": [
"<string>"
]
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/structured-responses"
payload = {
"questions": [
{
"questionId": "<string>",
"question": "<string>",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": False,
"childQuestions": "<array>"
}
],
"template": "",
"summaryRequired": False,
"metadata": ["<string>"]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"document_id": "<string>",
"document_version": 123,
"content": "<string>",
"questionAnswers": [
{
"questionId": "<string>",
"question": "<string>",
"answerType": "SingleResponse",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": false,
"childQuestions": "<array>",
"answer": [
{
"value": "<string>"
}
]
}
],
"summary": "<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": {}
}Sections and structured forms
Structured Response
POST
/
v2
/
scribe
/
open-api
/
sessions
/
{session_id}
/
structured-responses
Structured Response
curl --request POST \
--url https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/structured-responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"questions": [
{
"questionId": "<string>",
"question": "<string>",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": false,
"childQuestions": "<array>"
}
],
"template": "",
"summaryRequired": false,
"metadata": [
"<string>"
]
}
'import requests
url = "https://sandbox.api.cortexanote.com/v2/scribe/open-api/sessions/{session_id}/structured-responses"
payload = {
"questions": [
{
"questionId": "<string>",
"question": "<string>",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": False,
"childQuestions": "<array>"
}
],
"template": "",
"summaryRequired": False,
"metadata": ["<string>"]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"document_id": "<string>",
"document_version": 123,
"content": "<string>",
"questionAnswers": [
{
"questionId": "<string>",
"question": "<string>",
"answerType": "SingleResponse",
"description": "",
"answerOptions": [
{
"value": "<string>",
"metadata": {}
}
],
"dateFormat": "YYYY/MM/DD",
"repeatable": false,
"childQuestions": "<array>",
"answer": [
{
"value": "<string>"
}
]
}
],
"summary": "<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
Body
application/json