Get a run and its log
curl --request GET \
--url https://api.peel.sh/v1/runs/{run_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/runs/{run_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"run": {
"id": "<string>",
"api_id": "<string>",
"marketplace_id": "<string>",
"endpoint": "<string>",
"status": "success",
"status_code": 123,
"error_code": "<string>",
"duration_ms": 123,
"credits_charged": 1,
"transport": "html_browser",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"actor": {
"type": "session",
"user_id": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"requests": [
{
"method": "<string>",
"origin": "<string>",
"path": "<string>",
"status": 123
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Account
Get a run and its log
GET
/
v1
/
runs
/
{run_id}
Get a run and its log
curl --request GET \
--url https://api.peel.sh/v1/runs/{run_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/runs/{run_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"run": {
"id": "<string>",
"api_id": "<string>",
"marketplace_id": "<string>",
"endpoint": "<string>",
"status": "success",
"status_code": 123,
"error_code": "<string>",
"duration_ms": 123,
"credits_charged": 1,
"transport": "html_browser",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"actor": {
"type": "session",
"user_id": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"requests": [
{
"method": "<string>",
"origin": "<string>",
"path": "<string>",
"status": 123
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I