Skip to main content
POST
/
account
/
api
Create API key
import requests

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

payload = { "name": "<string>" }
headers = {
    "X-API-Key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "success": true,
  "key": {
    "created": 1734076868000,
    "name": "Production key",
    "removed": null,
    "token": "sk_abcde...",
    "public": "zyzabc...",
    "last_used": null,
    "usage": 0,
    "is_master": false
  }
}

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.

Body

application/json
name
string

A human-friendly name to identify the API key.

Maximum string length: 250

Response

API key created

success
boolean
key
object