PDFBetter Templates API
Your reusable templates and the PDFBetter template library.
Your reusable templates and the PDFBetter template library.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pdfbetter-com:pdfbetter-com-templates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PDFBetter Templates API
version: 1.0.0
description: 'Create, fill, export and send PDFs for signature from your own systems. Requires the Business plan. Guides: https://pdfbetter.com/developers/
Rate limits: 120 requests per 60 s per key, and 30 failed sign-ins per 60 s per IP address. Every response carries RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset and RateLimit-Policy; a 429 adds Retry-After.
Errors: every non-2xx response is `{ "error": { "code", "message", "details"? } }` (schema `Error`) with a stable `code`.
Versioning: The major version is part of every path (`/v1/`). Within v1, changes are additive only: new endpoints, new optional parameters, new response fields, new webhook event types and new `error.code` values, so ignore fields you don''t know. Breaking changes ship only under a new path version (`/v2/`). Before an endpoint or version is retired, its responses carry `Deprecation` and `Sunset` headers (RFC 9745 / RFC 8594) with a `Link` to the migration guide, and the change is announced on the changelog.'
contact:
name: PDFBetter
url: https://pdfbetter.com/developers/
email: support@pdfbetter.com
servers:
- url: https://api.pdfbetter.com
description: Production
security:
- bearerAuth: []
tags:
- name: Templates
description: Your reusable templates and the PDFBetter template library.
paths:
/v1/templates/:
get:
operationId: listTemplates
summary: List templates
description: 'Your reusable templates (`type: user`) followed by the PDFBetter library (`type: library`).'
tags:
- Templates
x-required-scope: templates:read
security:
- bearerAuth: []
parameters:
- name: type
in: query
required: false
description: library or user
schema:
type: string
enum:
- library
- user
responses:
'200':
description: List templates
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateList'
example:
object: list
data:
- object: template
id: invoice
type: library
name: Invoice
description: A clean, fillable invoice with bill-to and ship-to, 12 line items, discount, sales tax and balance due.
category: invoices
pageCount: null
createdAt: null
hasMore: false
nextCursor: null
'400':
$ref: '#/components/responses/Error400'
'401':
$ref: '#/components/responses/Error401'
'402':
$ref: '#/components/responses/Error402'
'403':
$ref: '#/components/responses/Error403'
'404':
$ref: '#/components/responses/Error404'
'409':
$ref: '#/components/responses/Error409'
'422':
$ref: '#/components/responses/Error422'
'429':
$ref: '#/components/responses/Error429'
/v1/templates/{slug}/documents/:
post:
operationId: instantiateTemplate
summary: Create a document from a template
description: '`{slug}` is a library slug or one of your template ids. The template itself is never modified.'
tags:
- Templates
x-required-scope: documents:write
security:
- bearerAuth: []
parameters:
- name: slug
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/IdempotencyKey'
responses:
'201':
description: Create a document from a template
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Document'
example:
object: document
id: Xq3T9vLmA2pR7sKd
title: 'Invoice #1042'
kind: document
status: draft
pageCount: 4
tags:
- vendors
folderId: null
sourceName: vendor-agreement.pdf
sourceSize: 184233
createdFromTemplate: invoice
createdAt: '2026-10-15T09:30:00.000Z'
updatedAt: '2026-10-15T09:30:00.000Z'
'400':
$ref: '#/components/responses/Error400'
'401':
$ref: '#/components/responses/Error401'
'402':
$ref: '#/components/responses/Error402'
'403':
$ref: '#/components/responses/Error403'
'404':
$ref: '#/components/responses/Error404'
'409':
$ref: '#/components/responses/Error409'
'422':
$ref: '#/components/responses/Error422'
'429':
$ref: '#/components/responses/Error429'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
title:
type: string
minLength: 1
maxLength: 200
additionalProperties: false
example:
title: 'Invoice #1042'
components:
responses:
Error409:
description: Conflict with the current state
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error429:
description: Rate limited — see RateLimit-* and Retry-After
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error422:
description: Validation failed
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error404:
description: Not found (or not yours)
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error401:
description: Missing or invalid API key
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error400:
description: Invalid request (see `error.details.issues`)
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error402:
description: Your plan doesn't include this (API access needs Business) or a monthly allowance is used up
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Error403:
description: The API key lacks the required scope
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
TemplateList:
type: object
properties:
object:
type: string
const: list
data:
type: array
items:
type: object
properties:
object:
type: string
const: template
id:
type: string
description: Library slug (type `library`) or template document id (type `user`)
type:
type: string
enum:
- library
- user
name:
type: string
description:
type:
- string
- 'null'
category:
type:
- string
- 'null'
pageCount:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
createdAt:
anyOf:
- type: string
description: ISO 8601 timestamp (UTC)
- type: 'null'
required:
- object
- id
- type
- name
- description
- category
- pageCount
- createdAt
additionalProperties: false
hasMore:
type: boolean
nextCursor:
type:
- string
- 'null'
required:
- object
- data
- hasMore
- nextCursor
additionalProperties: false
Document:
type: object
properties:
object:
type: string
const: document
id:
type: string
title:
type: string
kind:
type: string
enum:
- document
- template
- form
status:
type: string
enum:
- draft
- completed
- archived
pageCount:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
tags:
type: array
items:
type: string
folderId:
type:
- string
- 'null'
sourceName:
type:
- string
- 'null'
sourceSize:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
createdFromTemplate:
description: Library template slug or user template id this document was created from
type:
- string
- 'null'
createdAt:
type: string
description: ISO 8601 timestamp (UTC)
updatedAt:
type: string
description: ISO 8601 timestamp (UTC)
required:
- object
- id
- title
- kind
- status
- pageCount
- tags
- folderId
- sourceName
- sourceSize
- createdFromTemplate
- createdAt
- updatedAt
additionalProperties: false
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable machine-readable code. Branch on it; show `message` to people. New codes may be added, so fall back to the HTTP status for codes you don't know.
examples:
- invalid_request
- invalid_json
- invalid_api_key
- authentication_required
- plan_required
- quota_exceeded
- insufficient_scope
- forbidden
- browser_requests_not_supported
- not_found
- method_not_allowed
- conflict
- unapplied_redactions
- invalid_idempotency_key
- idempotency_conflict
- idempotency_key_reused
- payload_too_large
- unsupported_media_type
- unprocessable_entity
- rate_limited
- internal_error
message:
type: string
details:
type: object
propertyNames:
type: string
additionalProperties: {}
required:
- code
- message
additionalProperties: false
required:
- error
additionalProperties: false
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: Any unique string (≤ 255 chars). The first successful response is replayed for 24 hours for the same key and request.
schema:
type: string
maxLength: 255
headers:
Retry-After:
description: Seconds to wait before retrying (429 only)
schema:
type: integer
RateLimit-Remaining:
description: Requests left in the current window
schema:
type: integer
RateLimit-Limit:
description: Requests allowed in the current window
schema:
type: integer
RateLimit-Policy:
description: Quota and window, e.g. `120;w=60`
schema:
type: string
X-Request-Id:
description: Quote it when contacting support
schema:
type: string
RateLimit-Reset:
description: Seconds until the window resets
schema:
type: integer
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: pb_live_…
description: Create keys in Settings → API keys.
externalDocs:
url: https://pdfbetter.com/developers/
x-api-versioning:
strategy: url-path
current: v1
supported:
- v1
policy: 'The major version is part of every path (`/v1/`). Within v1, changes are additive only: new endpoints, new optional parameters, new response fields, new webhook event types and new `error.code` values, so ignore fields you don''t know. Breaking changes ship only under a new path version (`/v2/`). Before an endpoint or version is retired, its responses carry `Deprecation` and `Sunset` headers (RFC 9745 / RFC 8594) with a `Link` to the migration guide, and the change is announced on the changelog.'