Download artifact
curl --request GET \
--url https://api.turos.app/v1/artifacts/{artifact_id}/download \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/artifacts/{artifact_id}/download"
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/artifacts/{artifact_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Artifacts
Download artifact
Returns the saved payload directly when it is stored inline. When the payload is held in object storage, the response is a 302 redirect to a short-lived signed URL, so your client must follow redirects. Retain the artifact ID and manifest checksum alongside downloaded content.
GET
/
v1
/
artifacts
/
{artifact_id}
/
download
Download artifact
curl --request GET \
--url https://api.turos.app/v1/artifacts/{artifact_id}/download \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/artifacts/{artifact_id}/download"
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/artifacts/{artifact_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<string>{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}