Skip to main content
GET
/
templates
/
{slug}
.html
Get template HTML
import requests

url = "https://api.pdfshift.io/v3/templates/{slug}.html"

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

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

print(response.text)
"<html>...</html>"

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.

Path Parameters

slug
string
required

Response

HTML content

The response is of type string.