REST API

URL

All API endpoints are available under https://api.pantherpdf.com/v1/

Authentication

API requests require authentication. You can create a new API token in API keys.

curl \ --header "Authorization: Bearer <your-token>" \ "https://api.pantherpdf.com/v1/generate"

Request Payload

POST and PUT requests use JSON encoding as payload.

Status codes

The following table shows some of the possible return codes for API requests. When API endpoint returns additional status codes, the documentation for each endpoint specifies this.

Code Description
200 OK Request was successful.
204 No Content Item was deleted. There is no payload.
400 Bad Request A required attribute of the API request is missing or it has wrong type.
401 Unauthorized Invalid (or missing) authentication token.
500 Internal Server Error Unknown server error while handling the request.

Errors

Faulty responses include human readable, JSON encoded error message.

Example:

{ "msg": "Error: Invalid request." }