Skip to main content
When you do a successful call to the /convert/{pdf|jpeg|png|webp} endpoint, the response will contain a few custom headers that can help you better trace the whole requests througout our system. Here’s the list of headers returned by PDFShift:
X-Response-Status-Code
Integer
Provides the status code PDFShift got when loading your source when it is an HTTP request.
X-PDFShift-Processor
String
Returns the name of the PDFShift’s server that ran the conversion.
X-Credits-Cost
Integer
Indicates the number of credits that this generation requires.
X-Credits-Used
Integer
Contrary to X-Credits-Cost, this header indicates the number of credits that were decreased from your account. It is identical to X-Credits-Cost excepted if you passed the sandbox parameter, in which case the value will be at 0.
X-Response-Duration
Integer
The number of miliseconds it took to load the HTML source provided in the request.
X-PDFShift-Duration
Integer
The number of miliseconds it took to load the source and then generate the PDF document. This value should be closer to the Time To First Byte duration you can have on your end.