Capture workbook model context
curl --request POST \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"workbookContentHash": "<string>",
"workbookFingerprintHash": "<string>",
"sheetManifestHash": "<string>",
"mappingVersion": 123,
"workbookMetadata": {}
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots"
payload = {
"workbookContentHash": "<string>",
"workbookFingerprintHash": "<string>",
"sheetManifestHash": "<string>",
"mappingVersion": 123,
"workbookMetadata": {}
}
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({
workbookContentHash: '<string>',
workbookFingerprintHash: '<string>',
sheetManifestHash: '<string>',
mappingVersion: 123,
workbookMetadata: {}
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "model_context_snapshot",
"modelContextSnapshot": {
"modelContextSnapshotId": "model_ctx_example",
"workbookInstallationId": "wb_install_example",
"workbookContentHash": "sha256:content",
"workbookFingerprintHash": "sha256:fingerprint",
"sheetManifestHash": "sha256:sheets",
"mappingVersion": 1,
"capturedAt": "2026-08-16T12:00:00.000Z",
"host": "excel_mac"
},
"requestId": "req_example"
}Workbooks
Capture workbook model context
Capture the workbook model context used for preview, approval, and safe apply checks.
POST
/
v1
/
workbook-installations
/
{workbook_installation_id}
/
model-context-snapshots
Capture workbook model context
curl --request POST \
--url https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"workbookContentHash": "<string>",
"workbookFingerprintHash": "<string>",
"sheetManifestHash": "<string>",
"mappingVersion": 123,
"workbookMetadata": {}
}
'import requests
url = "https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots"
payload = {
"workbookContentHash": "<string>",
"workbookFingerprintHash": "<string>",
"sheetManifestHash": "<string>",
"mappingVersion": 123,
"workbookMetadata": {}
}
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({
workbookContentHash: '<string>',
workbookFingerprintHash: '<string>',
sheetManifestHash: '<string>',
mappingVersion: 123,
workbookMetadata: {}
})
};
fetch('https://api.turos.app/v1/workbook-installations/{workbook_installation_id}/model-context-snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "model_context_snapshot",
"modelContextSnapshot": {
"modelContextSnapshotId": "model_ctx_example",
"workbookInstallationId": "wb_install_example",
"workbookContentHash": "sha256:content",
"workbookFingerprintHash": "sha256:fingerprint",
"sheetManifestHash": "sha256:sheets",
"mappingVersion": 1,
"capturedAt": "2026-08-16T12:00:00.000Z",
"host": "excel_mac"
},
"requestId": "req_example"
}Path Parameters
Body
application/json
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$