pdf

Type: <boolean>
Default: false
It generates a PDF over the target url.

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

When it's enabled, a new pdf data field will be part of the response payload.
You can configure different specific options, such as scale or margin:

Interactive Code Editor

Test API requests with multiple programming languages. Edit code, execute requests, and view responses in real-time.

Also, combine it with embed for inserting it as HTML markup and refresh it asynchronously in the background (known as stale).
When you generate a PDF, the default mediaType is 'print'.