import requests
url = "https://api.pdfshift.io/v3/logs/{request_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"log": {
"id": 12345500,
"duration": 2191,
"executed": 1764753251000,
"credits": 1,
"sandbox": false,
"filesize": 305345,
"error": null,
"code": 200,
"user_agent": "Python/3.9 aiohttp/3.10.5",
"request_id": "40bad9f3-0eb8-4de3-82de-3886ff9522ed",
"query": null
}
}import requests
url = "https://api.pdfshift.io/v3/logs/{request_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"log": {
"id": 12345500,
"duration": 2191,
"executed": 1764753251000,
"credits": 1,
"sandbox": false,
"filesize": 305345,
"error": null,
"code": 200,
"user_agent": "Python/3.9 aiohttp/3.10.5",
"request_id": "40bad9f3-0eb8-4de3-82de-3886ff9522ed",
"query": null
}
}The unique request ID of the log entry to retrieve.