Download an automation version script
curl --request GET \
--url https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Task Automations
Download an automation version script | Comp AI API
Downloads the exact script a published automation version ran, as a plain-text attachment. Evidence artifacts name the version that produced them, so this.
GET
/
v1
/
tasks
/
{taskId}
/
automations
/
{automationId}
/
versions
/
{version}
/
script
Download an automation version script
curl --request GET \
--url https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/{taskId}/automations/{automationId}/versions/{version}/script"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Was this page helpful?

