API Overview

PSPDFKit API exposes a single HTTP endpoint for usage:

POST https://api.pspdfkit.com/build

This endpoint allows you to declaratively assemble a PDF document from multiple independent parts, applying actions on the whole output file and single parts.

The API expects data to be sent as multipart/form-data, with the only required part being the instructions JSON object:

HTTP
POST https://api.pspdfkit.com/build HTTP/1.1
Content-Type: multipart/form-data; boundary=customboundary
Authorization: Bearer your_api_key_here

--customboundary
Content-Disposition: form-data; name="instructions"
Content-Type: application/json
{
  "parts": [],
  "actions": []
}
--customboundary--

For more details on the structure of an API request, see the API Reference.