PDFBetter Bulk fill API

Fill one document per spreadsheet row.

GitHub OpenAPI

Operations 2

POST /v1/documents/{id}/bulk-fill/ Start a bulk fill #
GET /v1/jobs/{id}/ Retrieve a job #

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/pdfbetter-com:pdfbetter-com-bulk-fill-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

pdfbetter-com-bulk-fill-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PDFBetter Bulk fill 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: Bulk fill
  description: Fill one document per spreadsheet row.
paths:
  /v1/documents/{id}/bulk-fill/:
    post:
      operationId: bulkFillDocument
      summary: Start a bulk fill
      description: 'One filled PDF per row (≤ 5,000 rows), zipped in parts of 500. `mapping` is field name → column name. Returns a job (202); poll Retrieve a job or listen for `bulk_job.completed`. `dryRun: true` validates rows and previews file names without using quota.'
      tags:
      - Bulk fill
      x-required-scope: documents:write
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '202':
          description: Start a bulk fill
          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/Job'
              example:
                object: job
                id: Jb2nM5qW8eR1tY4u
                type: bulk_fill
                documentId: Xq3T9vLmA2pR7sKd
                status: queued
                rowCount: 120
                doneCount: 0
                succeededCount: 0
                failedCount: 0
                progress: 0
                failedRows: []
                error: null
                createdAt: '2026-10-15T09:30:00.000Z'
                downloads: []
        '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: true
        content:
          application/json:
            schema:
              type: object
              properties:
                rows:
                  minItems: 1
                  maxItems: 5000
                  type: array
                  items:
                    type: object
                    propertyNames:
                      type: string
                      maxLength: 200
                    additionalProperties:
                      type: string
                      maxLength: 5000
                mapping:
                  type: object
                  propertyNames:
                    type: string
                    minLength: 1
                    maxLength: 300
                  additionalProperties:
                    type: string
                    minLength: 1
                    maxLength: 200
                fileNameTemplate:
                  default: document-{row}
                  type: string
                  maxLength: 200
                flatten:
                  default: true
                  type: boolean
                dryRun:
                  default: false
                  type: boolean
              required:
              - rows
              - mapping
              additionalProperties: false
            example:
              rows:
              - Name: Acme Ltd
                Email: ap@acme.example
              mapping:
                company_name: Name
                email: Email
              fileNameTemplate: invoice-{Name}
              flatten: true
  /v1/jobs/{id}/:
    get:
      operationId: getJob
      summary: Retrieve a job
      description: Progress, failed rows and download links (valid 15 minutes) for each finished zip part.
      tags:
      - Bulk fill
      x-required-scope: documents:read
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Retrieve a job
          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/Job'
              example:
                object: job
                id: Jb2nM5qW8eR1tY4u
                type: bulk_fill
                documentId: Xq3T9vLmA2pR7sKd
                status: running
                rowCount: 120
                doneCount: 45
                succeededCount: 44
                failedCount: 1
                progress: 38
                failedRows:
                - row: 17
                  error: 'email: Enter a valid email address.'
                error: null
                createdAt: '2026-10-15T09:30:00.000Z'
                downloads: []
        '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'
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:
    Job:
      type: object
      properties:
        object:
          type: string
          const: job
        id:
          type: string
        type:
          type: string
          const: bulk_fill
        documentId:
          type: string
        status:
          type: string
          enum:
          - queued
          - running
          - succeeded
          - failed
          - canceled
        rowCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        doneCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        succeededCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        failedCount:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        progress:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: 0–100
        failedRows:
          type: array
          items:
            type: object
            properties:
              row:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              error:
                type: string
            required:
            - row
            - error
            additionalProperties: false
        error:
          type:
          - string
          - 'null'
        createdAt:
          type: string
          description: ISO 8601 timestamp (UTC)
        downloads:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              url:
                type: string
              size:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              fromRow:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
              toRow:
                type: integer
                minimum: -9007199254740991
                maximum: 9007199254740991
            required:
            - name
            - url
            - size
            - fromRow
            - toRow
            additionalProperties: false
          description: Zip parts (≤ 500 rows each); links valid 15 minutes
      required:
      - object
      - id
      - type
      - documentId
      - status
      - rowCount
      - doneCount
      - succeededCount
      - failedCount
      - progress
      - failedRows
      - error
      - createdAt
      - downloads
      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.'