Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: SendForMe Letters API
version: 1.0.0
description: 'SendForMe lets your AI agent mail real paper letters: it writes the letter or takes your PDF, and SendForMe prints it, mails it by USPS First-Class or Certified Mail, and tracks it. Same behavior as the MCP tools. Auth: Bearer sfm_ key (from the first letter''s setup, or /account). Previews need no key.'
servers:
- url: https://sendforme.co
security:
- bearer: []
- {}
tags:
- name: Letters
paths:
/v1/letters/preview:
post:
operationId: previewLetter
summary: Free proof, price, delivery estimate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Letter'
responses:
'200':
description: OK
tags:
- Letters
/v1/letters:
post:
operationId: sendLetter
summary: Mail a letter (letter_id from a preview, or the full request).
parameters:
- name: Idempotency-Key
in: header
schema:
type: string
requestBody:
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Letter'
- type: object
properties:
letter_id:
type: string
batch_id:
type: string
responses:
'200':
description: Scheduled
'402':
description: 'needs_setup: show setup_url to the user'
tags:
- Letters
get:
operationId: listLetters
summary: Recent letters on the account (needs a key)
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 50
- name: status
in: query
schema:
type: string
responses:
'200':
description: OK
tags:
- Letters
/v1/letters/{letter_id}:
get:
operationId: getLetter
summary: Status, timeline, tracking and proof links; wait holds until the status changes
parameters:
- name: letter_id
in: path
required: true
schema:
type: string
- name: wait
in: query
schema:
type: integer
maximum: 50
responses:
'200':
description: OK
tags:
- Letters
delete:
operationId: cancelLetter
summary: Cancel during the undo window (credit goes back to the balance)
parameters:
- name: letter_id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
tags:
- Letters
/v1/letters/{letter_id}/send:
post:
operationId: sendPreviewedLetter
summary: Mail a previewed letter by id (same as POST /v1/letters with letter_id)
parameters:
- name: letter_id
in: path
required: true
schema:
type: string
- name: Idempotency-Key
in: header
schema:
type: string
responses:
'200':
description: Scheduled or awaiting_approval
'402':
description: 'needs_setup: show setup_url to the user'
tags:
- Letters
/v1/letters/{letter_id}/cancel:
post:
operationId: cancelLetterPost
summary: Same as DELETE /v1/letters/{letter_id}
parameters:
- name: letter_id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
tags:
- Letters
components:
schemas:
Letter:
type: object
properties:
to:
type: object
description: name or company is required too (who it goes to or is from). A one-line US address string also works where the MCP tools take one.
properties:
name:
type: string
company:
type: string
line1:
type: string
line2:
type: string
city:
type: string
state:
type: string
zip:
type: string
country:
type: string
description: ISO 2-letter, default US
required:
- line1
from:
type: object
description: name or company is required too (who it goes to or is from). A one-line US address string also works where the MCP tools take one.
properties:
name:
type: string
company:
type: string
line1:
type: string
line2:
type: string
city:
type: string
state:
type: string
zip:
type: string
country:
type: string
description: ISO 2-letter, default US
required:
- line1
recipients:
type: array
items:
type: object
description: name or company is required too (who it goes to or is from). A one-line US address string also works where the MCP tools take one.
properties:
name:
type: string
company:
type: string
line1:
type: string
line2:
type: string
city:
type: string
state:
type: string
zip:
type: string
country:
type: string
description: ISO 2-letter, default US
required:
- line1
description: Mail merge (instead of to)
body:
type: string
description: 'Letter text, markdown. Only the body: no addresses, date or signature.'
pdf:
type: string
description: Upload id (f_...), https URL, or base64
attachments:
type: array
items:
type: string
subject:
type: string
references:
type: array
items:
type: string
salutation:
type: string
closing:
type: string
signature:
type: string
enum:
- script
- handwritten
- typed
- image
- none
signer_name:
type: string
signer_title:
type: string
enclosures:
type: array
items:
type: string
cc:
type: array
items:
type: string
postscript:
type: string
date:
type: string
font:
type: string
enum:
- serif
- sans
- handwriting
- typewriter
letterhead:
type: string
enum:
- none
- name
- full
mail_class:
type: string
enum:
- first_class
- certified
- certified_return_receipt
description: Non-US recipients always go First-Class International; no need to set it.
color:
type: boolean
double_sided:
type: boolean
mail_date:
type: string
format: date
must_arrive_by:
type: string
format: date
pdf_placement:
type: string
enum:
- auto
- first_page
- cover_page
label:
type: string
securitySchemes:
bearer:
type: http
scheme: bearer