Pressa Templates API

Stored LaTeX templates.

GitHub OpenAPI

Operations 5

GET /api/v1/templates List saved templates #
POST /api/v1/templates Create or update a template by name #
GET /api/v1/templates/{id} Fetch one template #
DELETE /api/v1/templates/{id} Delete a template #
POST /api/v2/templates/{id}/promote Convert a raw LaTeX template into a placeholder template #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pressa-dev:pressa-dev-templates-api"
All apis
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.

Get an API 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 Specification

pressa-dev-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pressa 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: Templates
  description: Stored LaTeX templates.
paths:
  /api/v1/templates:
    get:
      tags:
      - Templates
      operationId: listTemplates
      summary: List saved templates
      responses:
        '200':
          description: Templates owned by the caller.
        '401':
          description: Missing or invalid API key.
    post:
      tags:
      - Templates
      operationId: saveTemplate
      summary: Create or update a template by name
      description: 'Idempotent on `name`: an existing template with the same name is updated and `created` is false. `placeholder_engine: "liquid"` saves a placeholder template for the render endpoint, and converts an existing raw LaTeX template in place (`promoted` is true). A source containing Liquid placeholders sent without `placeholder_engine` is refused with `liquid_placeholders_in_v1_template`, because raw LaTeX would print them literally.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  maxLength: 100
                latex_content:
                  type: string
                  description: Required for a new template. Optional on an update, and when converting the saved source with placeholder_engine "liquid".
                description:
                  type: string
                  maxLength: 500
                instructions:
                  type: string
                placeholder_engine:
                  type: string
                  enum:
                  - liquid
                  - none
                  description: '"liquid": the source contains Liquid placeholders, filled by the render endpoint. "none": raw LaTeX whose braces only look like placeholders. Omit to keep the template''s current kind.'
      responses:
        '200':
          description: Existing template updated.
        '201':
          description: Template created.
        '401':
          description: Missing or invalid API key.
        '422':
          description: '`validation_failed` (with a `fields` list naming each field, rule and limit), `liquid_placeholders_in_v1_template`, `liquid_syntax_error`, `template_security_violation`, `engine_downgrade_not_supported` or `invalid_placeholder_engine`. Every refusal leaves the template unchanged.'
  /api/v1/templates/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
      description: Numeric template id or the template name.
    get:
      tags:
      - Templates
      operationId: getTemplate
      summary: Fetch one template
      responses:
        '200':
          description: Template detail.
        '401':
          description: Missing or invalid API key.
        '404':
          description: No such template for this account.
    delete:
      tags:
      - Templates
      operationId: deleteTemplate
      summary: Delete a template
      responses:
        '200':
          description: Deleted.
        '401':
          description: Missing or invalid API key.
        '404':
          description: No such template for this account.
  /api/v2/templates/{id}/promote:
    post:
      tags:
      - Templates
      operationId: promoteTemplate
      summary: Convert a raw LaTeX template into a placeholder template
      description: Keeps the id, name, instructions and creation date. Without `latex_with_placeholders` the saved source is promoted as it is. The source must pass the template security policy and parse as Liquid.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Numeric template id or template name.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                latex_with_placeholders:
                  type: string
                  description: LaTeX with Liquid placeholders. Defaults to the saved source.
      responses:
        '200':
          description: 'Template converted. Includes the derived `schema` and `sample_data`, and `promoted: true`.'
        '401':
          description: Missing or invalid API key.
        '404':
          description: No such template for this account.
        '422':
          description: '`already_v2`, `liquid_syntax_error` or `template_security_violation`. The template is left unchanged.'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer pressa_...'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key