Store a complete Triage submission or follow-on revision
curl --request POST \
--url https://sandbox.composer.id/v1/records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "1.0",
"environment": "sandbox",
"source": {
"system": "triage",
"instance": "<string>",
"session_id": "<string>",
"revision": 2
},
"requester": {
"id": "<string>",
"display_name": "<string>"
},
"context": {
"locale": "<string>",
"timezone": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z"
},
"questionnaire": "<unknown>",
"responses": [
"<unknown>"
],
"events": [
{
"sequence": 2,
"question_id": "<string>",
"at": "2023-11-07T05:31:56Z",
"detail": "<unknown>"
}
],
"decision": "<unknown>"
}
'import requests
url = "https://sandbox.composer.id/v1/records"
payload = {
"schema_version": "1.0",
"environment": "sandbox",
"source": {
"system": "triage",
"instance": "<string>",
"session_id": "<string>",
"revision": 2
},
"requester": {
"id": "<string>",
"display_name": "<string>"
},
"context": {
"locale": "<string>",
"timezone": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z"
},
"questionnaire": "<unknown>",
"responses": ["<unknown>"],
"events": [
{
"sequence": 2,
"question_id": "<string>",
"at": "2023-11-07T05:31:56Z",
"detail": "<unknown>"
}
],
"decision": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: '1.0',
environment: 'sandbox',
source: {system: 'triage', instance: '<string>', session_id: '<string>', revision: 2},
requester: {id: '<string>', display_name: '<string>'},
context: {
locale: '<string>',
timezone: '<string>',
started_at: '2023-11-07T05:31:56Z',
submitted_at: '2023-11-07T05:31:56Z'
},
questionnaire: '<unknown>',
responses: ['<unknown>'],
events: [
{
sequence: 2,
question_id: '<string>',
at: '2023-11-07T05:31:56Z',
detail: '<unknown>'
}
],
decision: '<unknown>'
})
};
fetch('https://sandbox.composer.id/v1/records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"intent_id": "<string>",
"intent_version": 2,
"stored_at": "2023-11-07T05:31:56Z",
"content_sha256": "<string>",
"replayed": true
}{
"intent_id": "<string>",
"intent_version": 2,
"stored_at": "2023-11-07T05:31:56Z",
"content_sha256": "<string>",
"replayed": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Store a complete Triage submission or follow-on revision
POST
/
records
Store a complete Triage submission or follow-on revision
curl --request POST \
--url https://sandbox.composer.id/v1/records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "1.0",
"environment": "sandbox",
"source": {
"system": "triage",
"instance": "<string>",
"session_id": "<string>",
"revision": 2
},
"requester": {
"id": "<string>",
"display_name": "<string>"
},
"context": {
"locale": "<string>",
"timezone": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z"
},
"questionnaire": "<unknown>",
"responses": [
"<unknown>"
],
"events": [
{
"sequence": 2,
"question_id": "<string>",
"at": "2023-11-07T05:31:56Z",
"detail": "<unknown>"
}
],
"decision": "<unknown>"
}
'import requests
url = "https://sandbox.composer.id/v1/records"
payload = {
"schema_version": "1.0",
"environment": "sandbox",
"source": {
"system": "triage",
"instance": "<string>",
"session_id": "<string>",
"revision": 2
},
"requester": {
"id": "<string>",
"display_name": "<string>"
},
"context": {
"locale": "<string>",
"timezone": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z"
},
"questionnaire": "<unknown>",
"responses": ["<unknown>"],
"events": [
{
"sequence": 2,
"question_id": "<string>",
"at": "2023-11-07T05:31:56Z",
"detail": "<unknown>"
}
],
"decision": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: '1.0',
environment: 'sandbox',
source: {system: 'triage', instance: '<string>', session_id: '<string>', revision: 2},
requester: {id: '<string>', display_name: '<string>'},
context: {
locale: '<string>',
timezone: '<string>',
started_at: '2023-11-07T05:31:56Z',
submitted_at: '2023-11-07T05:31:56Z'
},
questionnaire: '<unknown>',
responses: ['<unknown>'],
events: [
{
sequence: 2,
question_id: '<string>',
at: '2023-11-07T05:31:56Z',
detail: '<unknown>'
}
],
decision: '<unknown>'
})
};
fetch('https://sandbox.composer.id/v1/records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"intent_id": "<string>",
"intent_version": 2,
"stored_at": "2023-11-07T05:31:56Z",
"content_sha256": "<string>",
"replayed": true
}{
"intent_id": "<string>",
"intent_version": 2,
"stored_at": "2023-11-07T05:31:56Z",
"content_sha256": "<string>",
"replayed": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
oauth2bearerAuth
Body
application/json
Complete source-reported Triage capture. Semantic validation also checks answer types against definitions, branch visibility, option IDs, parent references and timings. Follow-ons preserve original diagnostics; change requests get a new linked Intent ID.