Pressa public templates API
The public template gallery at pressa.dev/templates.
The public template gallery at pressa.dev/templates.
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/pressa-dev:pressa-dev-public-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: Pressa public templates API
version: 1.5.0
summary: Compile LaTeX into publication-quality PDFs over HTTP.
description: 'Pressa is document infrastructure for AI agents. Send LaTeX source, receive a PDF URL.
POST /api/v1/compile works with NO credentials, 3 successful compilations per day per IP. Failed compilations do not consume that quota, so an agent may iterate on its LaTeX until it compiles. Every other endpoint requires an API key.
Pressa is a LaTeX compiler, not a text-to-PDF converter. Callers are expected to convert markdown, plain text or structured data into LaTeX themselves. Compilation failures return a `diagnosis` object with a concrete suggested fix so a caller can correct the source and retry without human involvement.'
contact:
url: https://pressa.dev
license:
name: Proprietary
url: https://pressa.dev/terms
servers:
- url: https://api.pressa.dev
description: Production
tags:
- name: public templates
description: The public template gallery at pressa.dev/templates.
paths:
/api/v1/public_templates:
get:
tags:
- public templates
operationId: listPublicTemplates
summary: List the public template gallery
description: No authentication. The same templates as https://pressa.dev/templates (invoices, purchase orders, packing slips, delivery notes, receipts, reports, certificates, resumes, CVs, cover letters). Each entry also names its `document` (designs of one document, such as the five resume designs, take the same data), its `design` and the `colors` render accepts. Source is MIT licensed at github.com/pressa-dev/templates.
security:
- {}
responses:
'200':
description: Every public template with slug, title, category, summary, document, design, colors, page URL, preview image and render URL.
content:
application/json:
schema:
type: object
properties:
templates:
type: array
items:
type: object
additionalProperties: true
/api/v1/public_templates/{slug}:
get:
tags:
- public templates
operationId: getPublicTemplate
summary: 'Fetch one public template: schema, sample data, instructions and source'
description: No authentication. `schema` is the JSON the render endpoint expects, `sample_data` a complete valid example, `instructions` how to fill it, `latex_with_placeholders` the Liquid-templated source.
security:
- {}
parameters:
- name: slug
in: path
required: true
schema:
type: string
example: classic-resume
responses:
'200':
description: The template.
content:
application/json:
schema:
type: object
additionalProperties: true
'404':
description: No public template with that slug.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/public_templates/{slug}/render:
post:
tags:
- public templates
operationId: renderPublicTemplate
summary: Fill a public template with JSON data and compile it to a PDF
description: 'Fills the template, then runs exactly the compile endpoint: authentication is OPTIONAL with the same anonymous tier and daily limit, the same plan limits, and the same success and failure bodies. The designs of one document take the same data (the five resume designs, as do the packing slip and the delivery note). Data that does not match the schema is a 422 `schema_validation_failed` listing `missing_fields` and `type_errors`; it never reaches the compiler and costs no quota.'
security:
- {}
- bearerAuth: []
- apiKeyHeader: []
parameters:
- name: slug
in: path
required: true
schema:
type: string
example: modern-resume
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
additionalProperties: true
description: Values for the template's fields; see GET /api/v1/public_templates/{slug}.
color:
type: string
description: 'Optional: one of the template''s `colors` from the list (e.g. navy). Left out, the template''s default colour. An unknown colour is a 422 `invalid_color` listing the valid ones.'
responses:
'200':
description: PDF produced.
content:
application/json:
schema:
$ref: '#/components/schemas/CompileSuccess'
'404':
description: No public template with that slug.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: '`schema_validation_failed` or `invalid_data` (nothing compiled), or a compile failure with the usual diagnosis.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Anonymous daily limit or plan limit reached, as on the compile endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/QuotaError'
components:
schemas:
QuotaError:
type: object
properties:
error:
type: string
enum:
- rate_limit
- anonymous_quota_exhausted
- anonymous_capacity_exhausted
message:
type: string
limit:
type: integer
used:
type: integer
resets_at:
type: string
format: date-time
plan:
type: string
retryable:
type: boolean
upgrade_url:
type: string
format: uri
next_step:
$ref: '#/components/schemas/NextStep'
retry_after_seconds:
type: integer
grace_allowance:
type: integer
description: Size of the plan's grace buffer, which was also exhausted.
CompileSuccess:
type: object
required:
- job_id
- pdf_url
- pages
properties:
job_id:
type: string
format: uuid
pdf_url:
type: string
format: uri
description: Signed URL. Fetchable with no credentials until it expires.
expires_at:
type: string
format: date-time
pages:
type: integer
description: Pages in the PDF at `pdf_url`. For a preview this is what was delivered; `total_pages` is what the document has.
compilation_time_ms:
type: integer
assets_count:
type: integer
font_substitutions:
type: array
description: Present when the document asked for fonts the compile image does not have (Arial, Helvetica, Times New Roman, Calibri, Cambria, Georgia and other commercial fonts) and Pressa compiled them as installed fonts with the same metrics where one exists (Arial as Arimo, Times New Roman as Tinos, Calibri as Carlito), otherwise the closest free design. xelatex and lualatex only. Also on a failed compile, whose log shows the installed names.
items:
type: object
properties:
requested:
type: string
used:
type: string
redefined_commands:
type: array
items:
type: string
description: Present when the document used \newcommand on a name LaTeX itself defines (\H, \vec, \top and a few more), which cannot compile, and Pressa let the document's own definition win (\let\H\relax before it). Names pdflatex uses to set accented letters are left alone, so their error and diagnosis stay.
studio_url:
type: string
format: uri
description: Browser editor link. Absent for anonymous compiles.
anonymous:
type: boolean
description: Present and true when the compile used the keyless tier.
remaining_today:
type: integer
description: Anonymous tier only.
note:
type: string
description: Anonymous tier only. Human- and agent-readable upgrade guidance.
next_step:
$ref: '#/components/schemas/NextStep'
usage:
type: object
description: Monthly counters for accounts; daily counters for the anonymous tier.
quota_grace:
type: boolean
description: Present and true when this compilation exceeded the plan's monthly limit and drew on the paid-plan grace buffer. Grace compilations are not charged.
grace_remaining:
type: integer
description: Compilations left in the grace buffer before requests start failing.
warning:
type: string
description: Present with `quota_grace` (capacity is about to run out) and with `preview` (what was delivered and which plan covers the whole document). Human- and agent-readable; relay it.
preview:
type: boolean
description: Present and true when the document exceeded the plan's page or source-size limit. The PDF at `pdf_url` is what the plan delivers of it. Accounts only; anonymous callers get 413/422 instead.
truncated:
type: boolean
description: 'With `preview`: true when the PDF holds only the first `pages` of a `total_pages` document, false when the source was over the plan''s size limit but every page fit.'
total_pages:
type: integer
description: 'With `preview`: how many pages the whole document has. `pages` is how many were delivered.'
plan_required:
type: string
nullable: true
enum:
- free
- starter
- pro
- business
description: 'With `preview`: the smallest plan whose page and source-size limits cover the whole document. Null when even Business does not.'
upgrade_url:
type: string
format: uri
Error:
type: object
required:
- error
properties:
error:
type: string
message:
type: string
plan:
type: string
upgrade_url:
type: string
format: uri
description: Present only when a bigger plan would fix the error (a limit, a timeout, a plan-only feature). A LaTeX error or bad request data has none.
limit:
type: integer
description: The limit that was applied, in the unit the error names (bytes, pages).
plan_limit:
type: integer
description: 'With `pdf_too_large`: the plan''s own PDF cap, when a larger compile ceiling was applied to the whole document before a preview slice.'
retryable:
type: boolean
retry_after_seconds:
type: integer
preview_attempts_per_day:
type: integer
description: 'With `latex_too_large` after the day''s size previews are used: how many an account gets per rolling day.'
preview_attempts_remaining_today:
type: integer
description: 'With `latex_too_large`: 0 when the day''s size previews are used; retry tomorrow rather than shrinking the document.'
NextStep:
type: object
description: What the caller should do to get past this response.
properties:
action:
type: string
enum:
- obtain_api_key
- retry_without_assets
signup_url:
type: string
format: uri
env_var:
type: string
header:
type: string
remove_fields:
type: array
items:
type: string
card_required:
type: boolean
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer pressa_...'
apiKeyHeader:
type: apiKey
in: header
name: X-API-Key