Export one situation
curl --request GET \
--url https://api.turos.app/v1/situations/{situation_id}/export \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/situations/{situation_id}/export"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/situations/{situation_id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"object": "export_job",
"jobId": "<string>",
"status": "queued",
"dataset": "company_overview",
"format": "json",
"rowCount": 4503599627370495,
"byteSize": 4503599627370495,
"downloadUrl": "<string>",
"expiresAt": "<string>",
"contentHash": "<string>",
"revisionId": "<string>",
"replayed": true,
"errorText": "<string>"
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Situations
Export one situation
Exports one situation. json, csv, xlsx, and llm are returned inline; pdf is produced as an asynchronous job.
GET
/
v1
/
situations
/
{situation_id}
/
export
Export one situation
curl --request GET \
--url https://api.turos.app/v1/situations/{situation_id}/export \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/situations/{situation_id}/export"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/situations/{situation_id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"object": "export_job",
"jobId": "<string>",
"status": "queued",
"dataset": "company_overview",
"format": "json",
"rowCount": 4503599627370495,
"byteSize": 4503599627370495,
"downloadUrl": "<string>",
"expiresAt": "<string>",
"contentHash": "<string>",
"revisionId": "<string>",
"replayed": true,
"errorText": "<string>"
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Query Parameters
Response
Inline snapshot export
The response is of type string.