Record workbook apply receipt
curl --request POST \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"modelContextSnapshotId": "<string>",
"modelChangeSetId": "<string>",
"approvalRecordId": "<string>",
"currentPreconditionHash": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts"
payload = {
"modelContextSnapshotId": "<string>",
"modelChangeSetId": "<string>",
"approvalRecordId": "<string>",
"currentPreconditionHash": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
modelContextSnapshotId: '<string>',
modelChangeSetId: '<string>',
approvalRecordId: '<string>',
currentPreconditionHash: '<string>',
attemptedAt: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "workbook_apply_receipt",
"applyReceipt": {
"applyReceiptId": "apply_receipt_example",
"modelChangeSetId": "mcs_example",
"approvalRecordId": "approval_example",
"workbookInstallationId": "wb_install_example",
"status": "applied",
"attemptedAt": "2026-08-16T12:02:00.000Z",
"completedAt": "2026-08-16T12:03:00.000Z",
"readBackHash": "sha256:readback"
},
"recoveryCase": null,
"workbookRefreshRun": {
"workbookRefreshRunId": "wb_refresh_example",
"workbookInstallationId": "wb_install_example",
"modelContextSnapshotId": "model_ctx_example",
"modelChangeSetId": "mcs_example",
"applyReceiptId": "apply_receipt_example",
"status": "applied",
"startedAt": "2026-08-16T12:02:00.000Z",
"completedAt": "2026-08-16T12:03:00.000Z",
"changedMappingCount": 2,
"blockedMappingCount": 0,
"evidenceSnapshotIds": [
"evsnap_example"
],
"diagnostics": []
},
"requestId": "req_example"
}Workbooks
Record workbook apply receipt
Records a validated apply receipt after an approved model change set has been written into the workbook. The request is checked against the stored change set and approval record — evidence binding, workbook precondition hash, approved target references, and read-back hash — and the receipt is appended to the workbook’s provenance ledger.
POST
/
v1
/
workbook-installations
/
{workbook_installation_id}
/
apply-receipts
Record workbook apply receipt
curl --request POST \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"modelContextSnapshotId": "<string>",
"modelChangeSetId": "<string>",
"approvalRecordId": "<string>",
"currentPreconditionHash": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts"
payload = {
"modelContextSnapshotId": "<string>",
"modelChangeSetId": "<string>",
"approvalRecordId": "<string>",
"currentPreconditionHash": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
modelContextSnapshotId: '<string>',
modelChangeSetId: '<string>',
approvalRecordId: '<string>',
currentPreconditionHash: '<string>',
attemptedAt: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/apply-receipts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "workbook_apply_receipt",
"applyReceipt": {
"applyReceiptId": "apply_receipt_example",
"modelChangeSetId": "mcs_example",
"approvalRecordId": "approval_example",
"workbookInstallationId": "wb_install_example",
"status": "applied",
"attemptedAt": "2026-08-16T12:02:00.000Z",
"completedAt": "2026-08-16T12:03:00.000Z",
"readBackHash": "sha256:readback"
},
"recoveryCase": null,
"workbookRefreshRun": {
"workbookRefreshRunId": "wb_refresh_example",
"workbookInstallationId": "wb_install_example",
"modelContextSnapshotId": "model_ctx_example",
"modelChangeSetId": "mcs_example",
"applyReceiptId": "apply_receipt_example",
"status": "applied",
"startedAt": "2026-08-16T12:02:00.000Z",
"completedAt": "2026-08-16T12:03:00.000Z",
"changedMappingCount": 2,
"blockedMappingCount": 0,
"evidenceSnapshotIds": [
"evsnap_example"
],
"diagnostics": []
},
"requestId": "req_example"
}Path Parameters
Body
application/json