Skip to main content
GET
/
templates
List templates
import requests

url = "https://api.pdfshift.io/v3/templates"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "success": true,
  "templates": {
    "has_more": false,
    "data": [
      {
        "slug": "test-1",
        "created": 1734076868000,
        "name": "First test for templates"
      }
    ],
    "limit": 10,
    "page": 0,
    "total": 1
  }
}

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Response

List of templates

success
boolean
templates
object