Skip to main content

Document thumbnails

It's nice to have a thumbnail of your document, right? We thought so too, so we added this feature to our API.

tip

A document is a document, no matter if it's a PDF, a Word document or a PowerPoint presentation or a popular image format. We support all of them.

What you'll need

  • Your secret API key
  • A file_url pointing to a document on the web
  • optional: width of the thumbnail in pixels (default: 100, max: 500)
curl --location --request GET 'https://api.pathfindr.dev/api/documents/thumbnail?width=<width>&file_url=<file_url>' \
--header 'Authorization: Bearer <API key>'

You had a request, here is your response:

warning

This service should be used for generating thumbnails server side only. Never embed the API key in a client side application.