Authorizations
API key passed in the header
Path Parameters
The ID of the task
Response
Task draft retrieved successfully
curl --request GET \
--url https://api.anchorbrowser.io/v1/task/{taskId}/draft \
--header 'anchor-api-key: <api-key>'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "<string>",
"code": "<string>",
"language": "typescript",
"description": "<string>",
"browserConfiguration": {
"initial_url": "<string>",
"recording": {
"active": true
},
"proxy": {
"active": true,
"type": "anchor_proxy",
"country_code": "af",
"region": "<string>",
"city": "<string>"
},
"timeout": {
"max_duration": 123,
"idle_timeout": 123
},
"live_view": {
"read_only": true
}
},
"deleted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Retrieves the draft version of a task, including the full code content.
curl --request GET \
--url https://api.anchorbrowser.io/v1/task/{taskId}/draft \
--header 'anchor-api-key: <api-key>'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": "<string>",
"code": "<string>",
"language": "typescript",
"description": "<string>",
"browserConfiguration": {
"initial_url": "<string>",
"recording": {
"active": true
},
"proxy": {
"active": true,
"type": "anchor_proxy",
"country_code": "af",
"region": "<string>",
"city": "<string>"
},
"timeout": {
"max_duration": 123,
"idle_timeout": 123
},
"live_view": {
"read_only": true
}
},
"deleted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
API key passed in the header
The ID of the task
Task draft retrieved successfully
Show child attributes
Was this page helpful?