Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python
import requests url = "https://api.pdfshift.io/v3/templates" payload = { "slug": "<string>", "name": "<string>", "content": "<string>" } headers = { "X-API-Key": "<api-key>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "success": true, "template": { "slug": "test-1", "created": 1734076868073, "name": "First test for templates" } }
Creates a new template stored at PDFShift.
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.
Unique identifier for the template.
Name of the template.
HTML content of the template.
Template created
Show child attributes