Sendpaper Letters API

The Letters API from Sendpaper — 1 operation(s) for letters.

GitHub OpenAPI

Operations 1

POST /letters Create a letter #

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/sendmypaper-com:sendmypaper-com-letters-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

sendmypaper-com-letters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sendmypaper Com Letters API
  version: 1.0.0
  description: 'Operations tagged Letters across 2 of this provider''s published API definitions: sendmypaper-com-docs-openapi.json, sendmypaper-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://sendmypaper.com/v1
tags:
- name: Letters
paths:
  /letters:
    post:
      summary: Create a letter
      description: 'Creates a printed letter (up to ~3 pages, 8.5×11, #10 envelope) in `awaiting_payment` and returns a `checkout_url`. Set `certified` to send it by USPS Certified Mail.


        To send the same letter to several people, pass `recipients` (2–25 addresses) instead of `to`. You get back a Batch: one order per recipient and a single `batch.checkout_url`. `POST /orders/{id}/pay` with any order in the batch pays for every unpaid order in it (scope the token to `batch.price`).'
      operationId: createLetter
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLetter'
            examples:
              one:
                summary: One recipient
                value:
                  to:
                    name: Pat Lee
                    line1: 500 Main St
                    line2: Apt 4
                    city: Boston
                    state: MA
                    zip: '02110'
                  from:
                    name: Alex Kim
                    line1: 88 Pine Ave
                    city: Denver
                    state: CO
                    zip: '80202'
                  content:
                    body: 'Dear Pat,


                      Thank you for fixing the roof so quickly.


                      Best,

                      Alex'
                    font: serif
              many:
                summary: Same letter to several people
                value:
                  from:
                    name: Alex Kim
                    line1: 88 Pine Ave
                    city: Denver
                    state: CO
                    zip: '80202'
                  content:
                    body: 'Dear Pat,


                      Thank you for fixing the roof so quickly.


                      Best,

                      Alex'
                    font: serif
                  recipients:
                  - name: Sam Rivera
                    line1: 12 Oak St
                    city: Austin
                    state: TX
                    zip: '78701'
                  - name: Jo Park
                    line1: 12 Oak St
                    city: Dayton
                    state: OH
                    zip: '45402'
      responses:
        '201':
          description: Order created (a Batch when the request used `recipients`)
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Order'
                - $ref: '#/components/schemas/Batch'
        '200':
          description: 'Idempotency-Key already used: the original order is returned (a Batch when the request used `recipients`)'
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Order'
                - $ref: '#/components/schemas/Batch'
        '422':
          $ref: '#/components/responses/Invalid'
      tags:
      - Letters
    servers:
    - url: https://sendmypaper.com/v1
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Any unique string. Retrying with the same key returns the original order instead of creating a duplicate.
      schema:
        type: string
        maxLength: 120
  schemas:
    Batch:
      type: object
      required:
      - batch
      - orders
      properties:
        batch:
          type: object
          required:
          - id
          - count
          - url
          - price
          properties:
            id:
              type: string
              description: Batch id, batch_…
            count:
              type: integer
              description: Number of recipients (one order each)
            url:
              type: string
              format: uri
              description: Batch page listing every recipient with links to each preview
            checkout_url:
              type:
              - string
              - 'null'
              format: uri
              description: One payment link for every unpaid order in the batch; null once all are paid
            price:
              type: object
              properties:
                amount_cents:
                  type: integer
                currency:
                  type: string
                display:
                  type: string
              description: Total for the whole batch
            discount:
              type:
              - object
              - 'null'
              properties:
                amount_cents:
                  type: integer
                display:
                  type: string
                reason:
                  type: string
              description: First-order discount across the batch, already taken off price
        orders:
          type: array
          items:
            $ref: '#/components/schemas/Order'
          description: One order per recipient, in the order given
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              example: invalid_request
            message:
              type: string
            fields:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
    Address:
      type: object
      required:
      - name
      - line1
      - city
      - state
      - zip
      properties:
        name:
          type: string
          maxLength: 60
        company:
          type: string
          maxLength: 60
        line1:
          type: string
          maxLength: 64
          description: Street address
        line2:
          type: string
          maxLength: 64
          description: Apartment, suite, unit
        city:
          type: string
          maxLength: 40
        state:
          type: string
          description: Two-letter US state or territory code
          example: CA
        zip:
          type: string
          pattern: ^\d{5}(-\d{4})?$
          example: '94105'
      description: A US address (recipients are always in the US, including territories and APO/FPO/DPO).
    Order:
      type: object
      properties:
        id:
          type: string
          example: ord_8k2m4qz7c1x9b3vd
        object:
          type: string
          enum:
          - postcard
          - letter
        product:
          type: string
          enum:
          - postcard_4x6
          - postcard_6x9
          - postcard_6x11
          - letter
          - letter_certified
          - letter_certified_rr
        status:
          type: string
          enum:
          - awaiting_payment
          - paid
          - printing
          - mailed
          - cancelled
          - refunded
        status_detail:
          type: string
        price:
          type: object
          properties:
            amount_cents:
              type: integer
            currency:
              type: string
            display:
              type: string
        to:
          $ref: '#/components/schemas/Address'
        from:
          $ref: '#/components/schemas/SenderAddress'
        content:
          type: object
        checkout_url:
          type:
          - string
          - 'null'
          description: Where the person pays. Null once paid or closed. Never expires.
        order_url:
          type: string
          description: Human-readable status page
        preview_url:
          type: string
          description: Exact print preview
        created_at:
          type: string
          format: date-time
        paid_at:
          type:
          - string
          - 'null'
          format: date-time
        mailed_at:
          type:
          - string
          - 'null'
          format: date-time
        events:
          type: array
          items:
            type: object
            properties:
              at:
                type: string
              status:
                type: string
              note:
                type: string
        certified:
          type: string
          enum:
          - none
          - certified
          - certified_return_receipt
          description: 'Letters only: the USPS extra service.'
        tracking:
          type:
          - object
          - 'null'
          description: USPS tracking once the piece is accepted (certified letters always get one).
          properties:
            number:
              type: string
            url:
              type: string
              format: uri
        batch_id:
          type:
          - string
          - 'null'
          description: Set when the order is part of a batch (created with `recipients`). Its checkout_url is then the batch's single payment link.
    SenderAddress:
      type: object
      required:
      - name
      - line1
      - city
      description: 'Return address. It may be outside the US: set `country`. For a US address (no `country`, or `US`), `state` and `zip` are required and follow the US rules; elsewhere `state` is the region and `zip` the postcode, both optional.'
      properties:
        name:
          type: string
          maxLength: 60
        company:
          type: string
          maxLength: 60
        line1:
          type: string
          maxLength: 64
          description: Street address
        line2:
          type: string
          maxLength: 64
          description: Apartment, suite, unit
        city:
          type: string
          maxLength: 40
          description: City or town
        state:
          type: string
          maxLength: 40
          description: 'US: two-letter state or territory code (required). Elsewhere: region, county or province, if any'
          example: CA
        zip:
          type: string
          maxLength: 12
          description: 'US: 5-digit ZIP or ZIP+4 (required). Elsewhere: postcode'
          example: '94105'
        country:
          type: string
          pattern: ^[A-Za-z]{2}$
          default: US
          description: Two-letter ISO 3166-1 country code of the return address, e.g. GB. Defaults to US. US territories use US with their state code.
          example: GB
    CreateLetter:
      type: object
      required:
      - from
      - content
      properties:
        to:
          $ref: '#/components/schemas/Address'
          description: Recipient address Use `recipients` instead to send to several people.
        from:
          $ref: '#/components/schemas/SenderAddress'
        content:
          type: object
          required: []
          properties:
            body:
              type: string
              maxLength: 9000
              description: Plain text; blank lines separate paragraphs
            font:
              type: string
              enum:
              - serif
              - sans
              default: serif
            image_url:
              type: string
              format: uri
              description: Optional https URL of a JPG or PNG printed under the date. A letter with a photo prints in color and costs $1.00 more.
            pdf_url:
              type: string
              format: uri
              description: Mail your own PDF (public https link, up to 6 pages) instead of body. Pages are fitted to 8.5x11; an address page is added in front.
            color:
              type: boolean
              description: 'PDF letters: print in color (+$1.00).'
        customer_email:
          type: string
          format: email
        idempotency_key:
          type: string
          description: ' With `recipients`, a retry with the same key returns the same batch.'
        certified:
          type: string
          enum:
          - none
          - certified
          - certified_return_receipt
          default: none
          description: 'USPS Certified Mail. `certified` ($14.99): tracking number and proof of mailing and delivery. `certified_return_receipt` ($19.99): adds the recipient''s signature. `none` ($4.99): regular First-Class.'
        express:
          type: boolean
          default: false
          description: USPS Priority Mail (2-3 days, tracked); not with certified.
        recipients:
          type: array
          minItems: 2
          maxItems: 25
          items:
            $ref: '#/components/schemas/Address'
          description: 'Send the same postcard or letter to several people: 2–25 addresses, used instead of `to`. Each recipient becomes its own order (own review, tracking and refund), grouped into a batch that is paid with one checkout link. The response is a Batch, not an Order.'
      oneOf:
      - required:
        - to
      - required:
        - recipients
  responses:
    Invalid:
      description: 'Validation failed. Also returned when USPS can''t confirm the recipient or return address (checked before the order is created): `field` is then the whole address (`to`, `from` or `recipients.<i>`) and `message` says what to fix, usually a missing apartment or suite number.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
x-refined-from:
- sendmypaper-com-docs-openapi.json
- sendmypaper-com-openapi.json