Skip to main content
GET
/
logs
/
{request_id}
Get log by request ID
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
  }
}

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Path Parameters

request_id
string
required

The unique request ID of the log entry to retrieve.

Response

Returns a specific log entry by its request ID

success
boolean
log
object