Certified Mail Sender is an MCP server published by com.certifiedmailsender, hosted at certifiedmailsender.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 6 tools, including quote_letter, create_letter, get_letter, list_letters, send_letter_now.
USPS Certified Mail: person-approved or trusted auto-send, with optional electronic Return Receipt.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Get an itemized price for 1-10 pages or count a base64 PDF. Quoting is free. Unknown input fields are rejected with invalid_request; error.fix names each unknown field and the accepted fields. For a return receipt, use service certified_err. One page costs $9.04 for certified or $12.24 with an electronic Return Receipt; use quote_letter for the exact page count. Quoting never creates, pays for or mails a letter. No refund once USPS accepts the letter, even if USPS can't deliver it. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Example: {"pages":1,"service":"certified"}
| Parameter | Type | Description |
|---|---|---|
| pages | integer | Page count from 1 to 10. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF. |
| service * | string | one of ["certified","certified_err"] |
| pdf_base64 | string | A base64-encoded PDF whose pages we count for the quote. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF. Neither field takes precedence: sending both is rejected, even if the counts agree. |
None yet. Changes appear after a server's second daily check.
Inferred from the host name and headers: what a server runs on, not who runs it.
{
"name": "quote_letter",
"title": "Quote a certified letter",
"description": "Get an itemized price for 1-10 pages or count a base64 PDF. Quoting is free. Unknown input fields are rejected with invalid_request; error.fix names each unknown field and the accepted fields. For a return receipt, use service certified_err. One page costs $9.04 for certified or $12.24 with an electronic Return Receipt; use quote_letter for the exact page count. Quoting never creates, pays for or mails a letter. No refund once USPS accepts the letter, even if USPS can't deliver it. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Example: {\"pages\":1,\"service\":\"certified\"}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"service"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1,
"description": "Page count from 1 to 10. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"pdf_base64": {
"type": "string",
"description": "A base64-encoded PDF whose pages we count for the quote. Provide exactly one of pages or pdf_base64; omit pages when providing a PDF. Neither field takes precedence: sending both is rejected, even if the counts agree."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Quote a certified letter",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Create a US domestic letter draft from exactly one of text, pdf_base64 or pdf_url. Creating a draft is free. Drafts cannot be edited. To change the text, an address or the service: create_letter with a new idempotency_key, give the person the new approval_url, then cancel_letter the old draft so the person cannot pay for the outdated draft. Tell the person the price from quote_letter before making the draft, unless they have already seen it. Unknown fields in the input, to or from are rejected with invalid_request; error.fix names each unknown field. Use organization for a company name, not company. For a return receipt, use service certified_err. An undeliverable address returns error.address_reason with a stable code, affected fields and USPS lookup URL; ask the person about that specific part. One page costs $9.04 for certified or $12.24 with an electronic Return Receipt; use quote_letter for the exact page count. Show approval_url to the person who will review and pay. For text, send the body from the greeting on; we add both addresses and the date. A different leading address block or date is refused with text_has_letterhead (422); remove the line named in the error. People who prefer to write or upload it themselves can use https://certifiedmailsender.com/send. Paid letters wait 30 minutes; send_now:true skips that hold only when the person asks. Screening still applies. Normally the person approves and pays; an auto-send key pays from its account balance. No refund once USPS accepts the letter, even if USPS can't deliver it. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Test mode never mails. Example: {"to":{"name":"Jordan Lee","line1":"500 Market St","line2":"Suite 200","city":"Philadelphia","state":"PA","zip":"19106"},"from":{"name":"Sam Ortiz","line1":"12 Oak Ave","city":"Columbus","state":"OH","zip":"43215"},"service":"certified_err","text":"Dear Jordan,\n\n...","idempotency_key":"<a new UUID>"}
| Parameter | Type | Description |
|---|---|---|
| to * | object | Recipient address, checked by our printing partner against USPS records. If undeliverable during creation, the request is refused with address_undeliverable (422) and no draft is created. Read error.address_reason for its stable code, affected fields, plain explanation and USPS lookup URL; ask the p… |
| from * | object | |
| text | string | The letter body, from the greeting on. We add the sender's address, the date and the recipient's address. Complete matching leading blocks are removed; a different leading address block or date is refused with text_has_letterhead (422), naming the line to remove. Subject lines and addresses after th… |
| pdf_url | string | |
| service * | string | certified sends USPS Certified Mail with USPS tracking. certified_err adds the electronic Return Receipt: a USPS PDF with the recipient's signature, once USPS provides it. Choose certified_err when the person wants proof of receipt. |
| send_now | boolean | Choose true only when the person asks to skip the 30-minute cancellation hold after payment. Payment and any required approval are still required (auto-send pays from balance without per-letter approval), and every screening check must pass before submission. The letter can be canceled only until it… |
| pdf_base64 | string | |
| idempotency_key * | string | Use a new UUID for a new letter; reuse it with the same body on retries. Anonymous keys need at least 16 characters. |
{
"name": "create_letter",
"title": "Create a certified letter draft",
"description": "Create a US domestic letter draft from exactly one of text, pdf_base64 or pdf_url. Creating a draft is free. Drafts cannot be edited. To change the text, an address or the service: create_letter with a new idempotency_key, give the person the new approval_url, then cancel_letter the old draft so the person cannot pay for the outdated draft. Tell the person the price from quote_letter before making the draft, unless they have already seen it. Unknown fields in the input, to or from are rejected with invalid_request; error.fix names each unknown field. Use organization for a company name, not company. For a return receipt, use service certified_err. An undeliverable address returns error.address_reason with a stable code, affected fields and USPS lookup URL; ask the person about that specific part. One page costs $9.04 for certified or $12.24 with an electronic Return Receipt; use quote_letter for the exact page count. Show approval_url to the person who will review and pay. For text, send the body from the greeting on; we add both addresses and the date. A different leading address block or date is refused with text_has_letterhead (422); remove the line named in the error. People who prefer to write or upload it themselves can use https://certifiedmailsender.com/send. Paid letters wait 30 minutes; send_now:true skips that hold only when the person asks. Screening still applies. Normally the person approves and pays; an auto-send key pays from its account balance. No refund once USPS accepts the letter, even if USPS can't deliver it. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Test mode never mails. Example: {\"to\":{\"name\":\"Jordan Lee\",\"line1\":\"500 Market St\",\"line2\":\"Suite 200\",\"city\":\"Philadelphia\",\"state\":\"PA\",\"zip\":\"19106\"},\"from\":{\"name\":\"Sam Ortiz\",\"line1\":\"12 Oak Ave\",\"city\":\"Columbus\",\"state\":\"OH\",\"zip\":\"43215\"},\"service\":\"certified_err\",\"text\":\"Dear Jordan,\\n\\n...\",\"idempotency_key\":\"<a new UUID>\"}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"to",
"from",
"service",
"idempotency_key"
],
"properties": {
"to": {
"type": "object",
"required": [
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"description": "Recipient address, checked by our printing partner against USPS records. If undeliverable during creation, the request is refused with address_undeliverable (422) and no draft is created. Read error.address_reason for its stable code, affected fields, plain explanation and USPS lookup URL; ask the person the specific question rather than guessing variants.",
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"text": {
"type": "string",
"maxLength": 60000,
"description": "The letter body, from the greeting on. We add the sender's address, the date and the recipient's address. Complete matching leading blocks are removed; a different leading address block or date is refused with text_has_letterhead (422), naming the line to remove. Subject lines and addresses after the greeting or first prose are allowed. Provide exactly one of text, pdf_base64 or pdf_url."
},
"pdf_url": {
"type": "string"
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string",
"description": "certified sends USPS Certified Mail with USPS tracking. certified_err adds the electronic Return Receipt: a USPS PDF with the recipient's signature, once USPS provides it. Choose certified_err when the person wants proof of receipt."
},
"send_now": {
"type": "boolean",
"description": "Choose true only when the person asks to skip the 30-minute cancellation hold after payment. Payment and any required approval are still required (auto-send pays from balance without per-letter approval), and every screening check must pass before submission. The letter can be canceled only until it is sent to the printing partner; skipping leaves no guaranteed cancellation period."
},
"pdf_base64": {
"type": "string"
},
"idempotency_key": {
"type": "string",
"minLength": 1,
"description": "Use a new UUID for a new letter; reuse it with the same body on retries. Anonymous keys need at least 16 characters."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"origin",
"id",
"mode",
"state",
"service",
"pages",
"from",
"to",
"quote",
"address_status",
"address_as_given",
"document_source",
"review_note",
"cancel_until",
"send_now",
"refund",
"address_note",
"preview_url",
"letter_url",
"tracking_number",
"tracking_url",
"proof_of_mailing",
"acceptance_expected_by",
"first_usps_scan",
"partner_checked_at",
"files_deleted_at",
"timeline",
"next_step",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"to": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"mode": {
"enum": [
"test",
"live"
],
"type": "string"
},
"pages": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"quote": {
"type": "object",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"state": {
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string",
"description": "Persisted lifecycle state, not proof of mailing. printed comes from a Printed tracking observation; USPS acceptance requires proof_of_mailing. Reads can skip intermediate states. Test letters stop at submitted and never print or mail."
},
"origin": {
"enum": [
"web",
"api",
"mcp",
"unknown"
],
"type": "string"
},
"refund": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"amount_cents",
"destination"
],
"properties": {
"state": {
"enum": [
"accepted",
"manual",
"pending",
"not_charged"
],
"type": "string",
"description": "accepted means the card processor accepted the refund or the prepaid balance was credited; it does not mean a card refund has posted at the bank. manual means we will refund it by hand; pending means acceptance is not yet recorded. not_charged means no money moved."
},
"destination": {
"anyOf": [
{
"enum": [
"card",
"balance"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The card paid with or the prepaid balance paid from; null when nothing was charged."
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Full refund amount in USD cents, including sales tax for a card payment; zero when nothing was charged."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Refund record for a canceled, rejected or failed letter; null when no refund is due. Use state and amount_cents to tell the person what happened to their payment. Card refunds usually show within 5 to 10 business days; the bank decides exactly when."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"send_now": {
"type": "boolean",
"description": "Whether someone chose to skip the 30-minute cancellation hold. This never skips required payment or screening; auto-send keys have no per-letter approval step."
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"state",
"source",
"note"
],
"properties": {
"at": {
"type": "string",
"description": "When the event happened, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ). For USPS tracking scans, this is USPS’s scan time, not the time we recorded it."
},
"note": {
"type": "string",
"description": "Event wording. Printing partner job statuses are observations at the check time; handed to USPS is not a USPS acceptance scan."
},
"state": {
"anyOf": [
{
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "When an acceptance scan exists, the USPS mailed tag belongs to that scan. A legacy mailed tag alone is not proof of mailing; read proof_of_mailing."
},
"source": {
"type": "string",
"description": "Who reported it. partner includes the printing partner’s Printed and Provided to postal processing facility scans; other USPS scans remain usps."
},
"last_at": {
"type": "string",
"description": "UTC time of the last observation in a collapsed status-check row; omitted for one observation. at remains the first observation time, not a mailing time."
},
"observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2,
"description": "Count of adjacent identical printing-partner status checks collapsed into this row; omitted for a single observation. No USPS scans or state transitions are collapsed."
}
},
"additionalProperties": false
}
},
"next_step": {
"type": "string"
},
"created_at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"letter_url": {
"type": "string",
"description": "Keep this complete private link, including its t token. An anonymous letter can be read and canceled only with that token; an id alone or an API key created later cannot open it. A letter created with an API key can also be read and canceled with that same key."
},
"preview_url": {
"type": "string"
},
"receipt_url": {
"type": "string",
"description": "Private token link to the USPS electronic Return Receipt PDF. Present only for certified_err in receipt_ready while files are retained; omitted means no downloadable receipt is available here, not that delivery failed. Keep the t token; this receipt is private like the letter PDF."
},
"review_note": {
"type": [
"string",
"null"
]
},
"address_note": {
"type": [
"string",
"null"
],
"description": "The address partner’s raw note, not wording to relay to the person. Use next_step for the plain-language version to tell the person."
},
"approval_url": {
"type": "string",
"description": "Private review page with the expected mailing date and USPS delivery estimate (not guaranteed). If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it."
},
"cancel_until": {
"type": [
"string",
"null"
],
"description": "The scheduled end of the 30-minute cancellation hold, as an ISO 8601 / UTC RFC 3339 timestamp with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ); null for drafts or letters no longer cancellable. If skipped, this is when sending became eligible after payment. Cancellation remains possible until actual submission, even after this timestamp or during review; no extra cancellation period is guaranteed."
},
"tracking_url": {
"type": [
"string",
"null"
]
},
"address_status": {
"enum": [
"pending",
"deliverable",
"corrected",
"undeliverable"
],
"type": "string"
},
"document_source": {
"anyOf": [
{
"enum": [
"text",
"pdf"
],
"type": "string"
},
{
"type": "null"
}
]
},
"first_usps_scan": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"date": {
"type": "string",
"description": "Local scan calendar date (YYYY-MM-DD)."
},
"scan": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Earliest recorded individual-letter USPS scan, including acceptance: at is UTC, date is the scan’s local YYYY-MM-DD date, scan is USPS’s wording. Excludes shipment acceptance-pending and printing-partner scans. Null means no individual-letter scan is recorded, not that the letter was never mailed. Only proof_of_mailing establishes an acceptance date."
},
"tracking_number": {
"type": [
"string",
"null"
]
},
"address_as_given": {
"anyOf": [
{
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"files_deleted_at": {
"type": [
"string",
"null"
],
"description": "UTC time the letter files were deleted, or null. After deletion, preview_url is retained for compatibility but no longer downloads a file; receipt_url is omitted. Tracking and the record stay available at letter_url."
},
"proof_of_mailing": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "USPS acceptance scan time, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ)."
},
"date": {
"type": "string",
"description": "The scan’s local date (YYYY-MM-DD), as USPS Tracking shows it. Cite this as the mailing date."
},
"scan": {
"type": "string",
"description": "USPS’s acceptance scan text."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The acceptance scan records when USPS accepted the letter; null until an acceptance scan is recorded. Assistants cite date as the mailing date. This is not a postmarked receipt or a legal-status determination."
},
"partner_checked_at": {
"type": [
"string",
"null"
],
"description": "UTC time of the last successful live tracking poll recorded by this service, even if USPS supplied no new scans. Null means no successful poll time is recorded (including test or legacy letters). A read never polls the partner; this is not a delivery or mailing time or a freshness guarantee."
},
"acceptance_expected_by": {
"type": [
"string",
"null"
],
"description": "Eastern date (YYYY-MM-DD) by whose end the acceptance scan usually appears. Present from submission while no acceptance or individual-piece network/delivery scan is recorded and next_step gives this date. Null after an individual-piece scan even if acceptance is missing; proof_of_mailing remains null. Before it ends, tell the person when to contact support; after it ends, contact support now so we can check with the printing partner and USPS."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Create a certified letter draft",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}Read a letter's state, timeline, tracking, proof_of_mailing, acceptance_expected_by, cancel_until, send_now, refund and next step. proof_of_mailing gives the USPS acceptance record; cite its local date as the mailing date. acceptance_expected_by gives the Eastern deadline while waiting, and is null after an individual-piece scan even if acceptance is missing. Relay next_step for the plain explanation. refund gives state, amount_cents and destination (card or balance). accepted means the processor accepted it or the balance was credited, not that the bank has posted it; manual means we will refund it by hand. Address checks usually finish in seconds. A pending address_status is retried each minute for up to a day; read again after a minute. A busy queue or partner delay can slow the check. Reading is free and changes nothing. first_usps_scan identifies the earliest individual-letter scan, not shipment receipt; only proof_of_mailing establishes acceptance. partner_checked_at is the last successful tracking poll, not the scan date. files_deleted_at means downloads are gone. Repeated adjacent checks carry observations and last_at; at stays the first check. Timestamps are UTC RFC 3339 with milliseconds; date-only fields retain their documented calendar dates. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Use id with its API key, or the complete private letter_url from create_letter. Example: {"letter_url":"https://certifiedmailsender.com/l/<id>?t=<token>"}
| Parameter | Type | Description |
|---|---|---|
| id | string | Letter id; send the API key that created it in Authorization. |
| letter_url | string | Complete private letter_url or approval_url, including its t token. |
{
"name": "get_letter",
"title": "Get a letter's status",
"description": "Read a letter's state, timeline, tracking, proof_of_mailing, acceptance_expected_by, cancel_until, send_now, refund and next step. proof_of_mailing gives the USPS acceptance record; cite its local date as the mailing date. acceptance_expected_by gives the Eastern deadline while waiting, and is null after an individual-piece scan even if acceptance is missing. Relay next_step for the plain explanation. refund gives state, amount_cents and destination (card or balance). accepted means the processor accepted it or the balance was credited, not that the bank has posted it; manual means we will refund it by hand. Address checks usually finish in seconds. A pending address_status is retried each minute for up to a day; read again after a minute. A busy queue or partner delay can slow the check. Reading is free and changes nothing. first_usps_scan identifies the earliest individual-letter scan, not shipment receipt; only proof_of_mailing establishes acceptance. partner_checked_at is the last successful tracking poll, not the scan date. files_deleted_at means downloads are gone. Repeated adjacent checks carry observations and last_at; at stays the first check. Timestamps are UTC RFC 3339 with milliseconds; date-only fields retain their documented calendar dates. If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it. Use id with its API key, or the complete private letter_url from create_letter. Example: {\"letter_url\":\"https://certifiedmailsender.com/l/<id>?t=<token>\"}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "Letter id; send the API key that created it in Authorization."
},
"letter_url": {
"type": "string",
"description": "Complete private letter_url or approval_url, including its t token."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"origin",
"id",
"mode",
"state",
"service",
"pages",
"from",
"to",
"quote",
"address_status",
"address_as_given",
"document_source",
"review_note",
"cancel_until",
"send_now",
"refund",
"address_note",
"preview_url",
"letter_url",
"tracking_number",
"tracking_url",
"proof_of_mailing",
"acceptance_expected_by",
"first_usps_scan",
"partner_checked_at",
"files_deleted_at",
"timeline",
"next_step",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"to": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"mode": {
"enum": [
"test",
"live"
],
"type": "string"
},
"pages": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"quote": {
"type": "object",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"state": {
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string",
"description": "Persisted lifecycle state, not proof of mailing. printed comes from a Printed tracking observation; USPS acceptance requires proof_of_mailing. Reads can skip intermediate states. Test letters stop at submitted and never print or mail."
},
"origin": {
"enum": [
"web",
"api",
"mcp",
"unknown"
],
"type": "string"
},
"refund": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"amount_cents",
"destination"
],
"properties": {
"state": {
"enum": [
"accepted",
"manual",
"pending",
"not_charged"
],
"type": "string",
"description": "accepted means the card processor accepted the refund or the prepaid balance was credited; it does not mean a card refund has posted at the bank. manual means we will refund it by hand; pending means acceptance is not yet recorded. not_charged means no money moved."
},
"destination": {
"anyOf": [
{
"enum": [
"card",
"balance"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The card paid with or the prepaid balance paid from; null when nothing was charged."
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Full refund amount in USD cents, including sales tax for a card payment; zero when nothing was charged."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Refund record for a canceled, rejected or failed letter; null when no refund is due. Use state and amount_cents to tell the person what happened to their payment. Card refunds usually show within 5 to 10 business days; the bank decides exactly when."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"send_now": {
"type": "boolean",
"description": "Whether someone chose to skip the 30-minute cancellation hold. This never skips required payment or screening; auto-send keys have no per-letter approval step."
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"state",
"source",
"note"
],
"properties": {
"at": {
"type": "string",
"description": "When the event happened, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ). For USPS tracking scans, this is USPS’s scan time, not the time we recorded it."
},
"note": {
"type": "string",
"description": "Event wording. Printing partner job statuses are observations at the check time; handed to USPS is not a USPS acceptance scan."
},
"state": {
"anyOf": [
{
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "When an acceptance scan exists, the USPS mailed tag belongs to that scan. A legacy mailed tag alone is not proof of mailing; read proof_of_mailing."
},
"source": {
"type": "string",
"description": "Who reported it. partner includes the printing partner’s Printed and Provided to postal processing facility scans; other USPS scans remain usps."
},
"last_at": {
"type": "string",
"description": "UTC time of the last observation in a collapsed status-check row; omitted for one observation. at remains the first observation time, not a mailing time."
},
"observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2,
"description": "Count of adjacent identical printing-partner status checks collapsed into this row; omitted for a single observation. No USPS scans or state transitions are collapsed."
}
},
"additionalProperties": false
}
},
"next_step": {
"type": "string"
},
"created_at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"letter_url": {
"type": "string",
"description": "Keep this complete private link, including its t token. An anonymous letter can be read and canceled only with that token; an id alone or an API key created later cannot open it. A letter created with an API key can also be read and canceled with that same key."
},
"preview_url": {
"type": "string"
},
"receipt_url": {
"type": "string",
"description": "Private token link to the USPS electronic Return Receipt PDF. Present only for certified_err in receipt_ready while files are retained; omitted means no downloadable receipt is available here, not that delivery failed. Keep the t token; this receipt is private like the letter PDF."
},
"review_note": {
"type": [
"string",
"null"
]
},
"address_note": {
"type": [
"string",
"null"
],
"description": "The address partner’s raw note, not wording to relay to the person. Use next_step for the plain-language version to tell the person."
},
"approval_url": {
"type": "string",
"description": "Private review page with the expected mailing date and USPS delivery estimate (not guaranteed). If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it."
},
"cancel_until": {
"type": [
"string",
"null"
],
"description": "The scheduled end of the 30-minute cancellation hold, as an ISO 8601 / UTC RFC 3339 timestamp with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ); null for drafts or letters no longer cancellable. If skipped, this is when sending became eligible after payment. Cancellation remains possible until actual submission, even after this timestamp or during review; no extra cancellation period is guaranteed."
},
"tracking_url": {
"type": [
"string",
"null"
]
},
"address_status": {
"enum": [
"pending",
"deliverable",
"corrected",
"undeliverable"
],
"type": "string"
},
"document_source": {
"anyOf": [
{
"enum": [
"text",
"pdf"
],
"type": "string"
},
{
"type": "null"
}
]
},
"first_usps_scan": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"date": {
"type": "string",
"description": "Local scan calendar date (YYYY-MM-DD)."
},
"scan": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Earliest recorded individual-letter USPS scan, including acceptance: at is UTC, date is the scan’s local YYYY-MM-DD date, scan is USPS’s wording. Excludes shipment acceptance-pending and printing-partner scans. Null means no individual-letter scan is recorded, not that the letter was never mailed. Only proof_of_mailing establishes an acceptance date."
},
"tracking_number": {
"type": [
"string",
"null"
]
},
"address_as_given": {
"anyOf": [
{
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"files_deleted_at": {
"type": [
"string",
"null"
],
"description": "UTC time the letter files were deleted, or null. After deletion, preview_url is retained for compatibility but no longer downloads a file; receipt_url is omitted. Tracking and the record stay available at letter_url."
},
"proof_of_mailing": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "USPS acceptance scan time, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ)."
},
"date": {
"type": "string",
"description": "The scan’s local date (YYYY-MM-DD), as USPS Tracking shows it. Cite this as the mailing date."
},
"scan": {
"type": "string",
"description": "USPS’s acceptance scan text."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The acceptance scan records when USPS accepted the letter; null until an acceptance scan is recorded. Assistants cite date as the mailing date. This is not a postmarked receipt or a legal-status determination."
},
"partner_checked_at": {
"type": [
"string",
"null"
],
"description": "UTC time of the last successful live tracking poll recorded by this service, even if USPS supplied no new scans. Null means no successful poll time is recorded (including test or legacy letters). A read never polls the partner; this is not a delivery or mailing time or a freshness guarantee."
},
"acceptance_expected_by": {
"type": [
"string",
"null"
],
"description": "Eastern date (YYYY-MM-DD) by whose end the acceptance scan usually appears. Present from submission while no acceptance or individual-piece network/delivery scan is recorded and next_step gives this date. Null after an individual-piece scan even if acceptance is missing; proof_of_mailing remains null. Before it ends, tell the person when to contact support; after it ends, contact support now so we can check with the printing partner and USPS."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Get a letter's status",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}List this API key's letters newest first, with cursor pagination. Listing is free and requires the creating API key; it changes nothing. first_usps_scan identifies the earliest individual-letter scan, not shipment receipt; only proof_of_mailing establishes acceptance. partner_checked_at is the last successful tracking poll, not the scan date. files_deleted_at means downloads are gone. Repeated adjacent checks carry observations and last_at; at stays the first check. Timestamps are UTC RFC 3339 with milliseconds; date-only fields retain their documented calendar dates. Pass next_cursor as cursor to read the next page. Example: {"limit":20}
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| cursor | string |
{
"name": "list_letters",
"title": "List letters",
"description": "List this API key's letters newest first, with cursor pagination. Listing is free and requires the creating API key; it changes nothing. first_usps_scan identifies the earliest individual-letter scan, not shipment receipt; only proof_of_mailing establishes acceptance. partner_checked_at is the last successful tracking poll, not the scan date. files_deleted_at means downloads are gone. Repeated adjacent checks carry observations and last_at; at stays the first check. Timestamps are UTC RFC 3339 with milliseconds; date-only fields retain their documented calendar dates. Pass next_cursor as cursor to read the next page. Example: {\"limit\":20}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"letters",
"next_cursor"
],
"properties": {
"letters": {
"type": "array",
"items": {
"type": "object",
"required": [
"origin",
"id",
"mode",
"state",
"service",
"pages",
"from",
"to",
"quote",
"address_status",
"address_as_given",
"document_source",
"review_note",
"cancel_until",
"send_now",
"refund",
"address_note",
"preview_url",
"letter_url",
"tracking_number",
"tracking_url",
"proof_of_mailing",
"acceptance_expected_by",
"first_usps_scan",
"partner_checked_at",
"files_deleted_at",
"timeline",
"next_step",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"to": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"mode": {
"enum": [
"test",
"live"
],
"type": "string"
},
"pages": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"quote": {
"type": "object",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"state": {
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string",
"description": "Persisted lifecycle state, not proof of mailing. printed comes from a Printed tracking observation; USPS acceptance requires proof_of_mailing. Reads can skip intermediate states. Test letters stop at submitted and never print or mail."
},
"origin": {
"enum": [
"web",
"api",
"mcp",
"unknown"
],
"type": "string"
},
"refund": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"amount_cents",
"destination"
],
"properties": {
"state": {
"enum": [
"accepted",
"manual",
"pending",
"not_charged"
],
"type": "string",
"description": "accepted means the card processor accepted the refund or the prepaid balance was credited; it does not mean a card refund has posted at the bank. manual means we will refund it by hand; pending means acceptance is not yet recorded. not_charged means no money moved."
},
"destination": {
"anyOf": [
{
"enum": [
"card",
"balance"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The card paid with or the prepaid balance paid from; null when nothing was charged."
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Full refund amount in USD cents, including sales tax for a card payment; zero when nothing was charged."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Refund record for a canceled, rejected or failed letter; null when no refund is due. Use state and amount_cents to tell the person what happened to their payment. Card refunds usually show within 5 to 10 business days; the bank decides exactly when."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"send_now": {
"type": "boolean",
"description": "Whether someone chose to skip the 30-minute cancellation hold. This never skips required payment or screening; auto-send keys have no per-letter approval step."
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"state",
"source",
"note"
],
"properties": {
"at": {
"type": "string",
"description": "When the event happened, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ). For USPS tracking scans, this is USPS’s scan time, not the time we recorded it."
},
"note": {
"type": "string",
"description": "Event wording. Printing partner job statuses are observations at the check time; handed to USPS is not a USPS acceptance scan."
},
"state": {
"anyOf": [
{
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "When an acceptance scan exists, the USPS mailed tag belongs to that scan. A legacy mailed tag alone is not proof of mailing; read proof_of_mailing."
},
"source": {
"type": "string",
"description": "Who reported it. partner includes the printing partner’s Printed and Provided to postal processing facility scans; other USPS scans remain usps."
},
"last_at": {
"type": "string",
"description": "UTC time of the last observation in a collapsed status-check row; omitted for one observation. at remains the first observation time, not a mailing time."
},
"observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2,
"description": "Count of adjacent identical printing-partner status checks collapsed into this row; omitted for a single observation. No USPS scans or state transitions are collapsed."
}
},
"additionalProperties": false
}
},
"next_step": {
"type": "string"
},
"created_at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"letter_url": {
"type": "string",
"description": "Keep this complete private link, including its t token. An anonymous letter can be read and canceled only with that token; an id alone or an API key created later cannot open it. A letter created with an API key can also be read and canceled with that same key."
},
"preview_url": {
"type": "string"
},
"receipt_url": {
"type": "string",
"description": "Private token link to the USPS electronic Return Receipt PDF. Present only for certified_err in receipt_ready while files are retained; omitted means no downloadable receipt is available here, not that delivery failed. Keep the t token; this receipt is private like the letter PDF."
},
"review_note": {
"type": [
"string",
"null"
]
},
"address_note": {
"type": [
"string",
"null"
],
"description": "The address partner’s raw note, not wording to relay to the person. Use next_step for the plain-language version to tell the person."
},
"approval_url": {
"type": "string",
"description": "Private review page with the expected mailing date and USPS delivery estimate (not guaranteed). If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it."
},
"cancel_until": {
"type": [
"string",
"null"
],
"description": "The scheduled end of the 30-minute cancellation hold, as an ISO 8601 / UTC RFC 3339 timestamp with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ); null for drafts or letters no longer cancellable. If skipped, this is when sending became eligible after payment. Cancellation remains possible until actual submission, even after this timestamp or during review; no extra cancellation period is guaranteed."
},
"tracking_url": {
"type": [
"string",
"null"
]
},
"address_status": {
"enum": [
"pending",
"deliverable",
"corrected",
"undeliverable"
],
"type": "string"
},
"document_source": {
"anyOf": [
{
"enum": [
"text",
"pdf"
],
"type": "string"
},
{
"type": "null"
}
]
},
"first_usps_scan": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"date": {
"type": "string",
"description": "Local scan calendar date (YYYY-MM-DD)."
},
"scan": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Earliest recorded individual-letter USPS scan, including acceptance: at is UTC, date is the scan’s local YYYY-MM-DD date, scan is USPS’s wording. Excludes shipment acceptance-pending and printing-partner scans. Null means no individual-letter scan is recorded, not that the letter was never mailed. Only proof_of_mailing establishes an acceptance date."
},
"tracking_number": {
"type": [
"string",
"null"
]
},
"address_as_given": {
"anyOf": [
{
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"files_deleted_at": {
"type": [
"string",
"null"
],
"description": "UTC time the letter files were deleted, or null. After deletion, preview_url is retained for compatibility but no longer downloads a file; receipt_url is omitted. Tracking and the record stay available at letter_url."
},
"proof_of_mailing": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "USPS acceptance scan time, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ)."
},
"date": {
"type": "string",
"description": "The scan’s local date (YYYY-MM-DD), as USPS Tracking shows it. Cite this as the mailing date."
},
"scan": {
"type": "string",
"description": "USPS’s acceptance scan text."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The acceptance scan records when USPS accepted the letter; null until an acceptance scan is recorded. Assistants cite date as the mailing date. This is not a postmarked receipt or a legal-status determination."
},
"partner_checked_at": {
"type": [
"string",
"null"
],
"description": "UTC time of the last successful live tracking poll recorded by this service, even if USPS supplied no new scans. Null means no successful poll time is recorded (including test or legacy letters). A read never polls the partner; this is not a delivery or mailing time or a freshness guarantee."
},
"acceptance_expected_by": {
"type": [
"string",
"null"
],
"description": "Eastern date (YYYY-MM-DD) by whose end the acceptance scan usually appears. Present from submission while no acceptance or individual-piece network/delivery scan is recorded and next_step gives this date. Null after an individual-piece scan even if acceptance is missing; proof_of_mailing remains null. Before it ends, tell the person when to contact support; after it ends, contact support now so we can check with the printing partner and USPS."
}
},
"additionalProperties": false
}
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"annotations": {
"title": "List letters",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Skip a paid letter's 30-minute cancellation hold when the person asks to send it right away. This never bypasses screening and does not submit immediately. Idempotent while paid, screening or held for review; refused before payment or after submission or cancellation. Cancellation stays possible until submission, with no guaranteed extra time. Read the returned cancel_until and next_step; only the hold is skipped. Use id with its creating API key, or the complete private letter_url. Example: {"letter_url":"https://certifiedmailsender.com/l/<id>?t=<token>"}
| Parameter | Type | Description |
|---|---|---|
| id | string | Letter id; send the API key that created it in Authorization. |
| letter_url | string | Complete private letter_url or approval_url, including its t token. |
{
"name": "send_letter_now",
"title": "Send a paid letter now",
"description": "Skip a paid letter's 30-minute cancellation hold when the person asks to send it right away. This never bypasses screening and does not submit immediately. Idempotent while paid, screening or held for review; refused before payment or after submission or cancellation. Cancellation stays possible until submission, with no guaranteed extra time. Read the returned cancel_until and next_step; only the hold is skipped. Use id with its creating API key, or the complete private letter_url. Example: {\"letter_url\":\"https://certifiedmailsender.com/l/<id>?t=<token>\"}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "Letter id; send the API key that created it in Authorization."
},
"letter_url": {
"type": "string",
"description": "Complete private letter_url or approval_url, including its t token."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"origin",
"id",
"mode",
"state",
"service",
"pages",
"from",
"to",
"quote",
"address_status",
"address_as_given",
"document_source",
"review_note",
"cancel_until",
"send_now",
"refund",
"address_note",
"preview_url",
"letter_url",
"tracking_number",
"tracking_url",
"proof_of_mailing",
"acceptance_expected_by",
"first_usps_scan",
"partner_checked_at",
"files_deleted_at",
"timeline",
"next_step",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"to": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"mode": {
"enum": [
"test",
"live"
],
"type": "string"
},
"pages": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"quote": {
"type": "object",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"state": {
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string",
"description": "Persisted lifecycle state, not proof of mailing. printed comes from a Printed tracking observation; USPS acceptance requires proof_of_mailing. Reads can skip intermediate states. Test letters stop at submitted and never print or mail."
},
"origin": {
"enum": [
"web",
"api",
"mcp",
"unknown"
],
"type": "string"
},
"refund": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"amount_cents",
"destination"
],
"properties": {
"state": {
"enum": [
"accepted",
"manual",
"pending",
"not_charged"
],
"type": "string",
"description": "accepted means the card processor accepted the refund or the prepaid balance was credited; it does not mean a card refund has posted at the bank. manual means we will refund it by hand; pending means acceptance is not yet recorded. not_charged means no money moved."
},
"destination": {
"anyOf": [
{
"enum": [
"card",
"balance"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The card paid with or the prepaid balance paid from; null when nothing was charged."
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Full refund amount in USD cents, including sales tax for a card payment; zero when nothing was charged."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Refund record for a canceled, rejected or failed letter; null when no refund is due. Use state and amount_cents to tell the person what happened to their payment. Card refunds usually show within 5 to 10 business days; the bank decides exactly when."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"send_now": {
"type": "boolean",
"description": "Whether someone chose to skip the 30-minute cancellation hold. This never skips required payment or screening; auto-send keys have no per-letter approval step."
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"state",
"source",
"note"
],
"properties": {
"at": {
"type": "string",
"description": "When the event happened, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ). For USPS tracking scans, this is USPS’s scan time, not the time we recorded it."
},
"note": {
"type": "string",
"description": "Event wording. Printing partner job statuses are observations at the check time; handed to USPS is not a USPS acceptance scan."
},
"state": {
"anyOf": [
{
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "When an acceptance scan exists, the USPS mailed tag belongs to that scan. A legacy mailed tag alone is not proof of mailing; read proof_of_mailing."
},
"source": {
"type": "string",
"description": "Who reported it. partner includes the printing partner’s Printed and Provided to postal processing facility scans; other USPS scans remain usps."
},
"last_at": {
"type": "string",
"description": "UTC time of the last observation in a collapsed status-check row; omitted for one observation. at remains the first observation time, not a mailing time."
},
"observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2,
"description": "Count of adjacent identical printing-partner status checks collapsed into this row; omitted for a single observation. No USPS scans or state transitions are collapsed."
}
},
"additionalProperties": false
}
},
"next_step": {
"type": "string"
},
"created_at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"letter_url": {
"type": "string",
"description": "Keep this complete private link, including its t token. An anonymous letter can be read and canceled only with that token; an id alone or an API key created later cannot open it. A letter created with an API key can also be read and canceled with that same key."
},
"preview_url": {
"type": "string"
},
"receipt_url": {
"type": "string",
"description": "Private token link to the USPS electronic Return Receipt PDF. Present only for certified_err in receipt_ready while files are retained; omitted means no downloadable receipt is available here, not that delivery failed. Keep the t token; this receipt is private like the letter PDF."
},
"review_note": {
"type": [
"string",
"null"
]
},
"address_note": {
"type": [
"string",
"null"
],
"description": "The address partner’s raw note, not wording to relay to the person. Use next_step for the plain-language version to tell the person."
},
"approval_url": {
"type": "string",
"description": "Private review page with the expected mailing date and USPS delivery estimate (not guaranteed). If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it."
},
"cancel_until": {
"type": [
"string",
"null"
],
"description": "The scheduled end of the 30-minute cancellation hold, as an ISO 8601 / UTC RFC 3339 timestamp with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ); null for drafts or letters no longer cancellable. If skipped, this is when sending became eligible after payment. Cancellation remains possible until actual submission, even after this timestamp or during review; no extra cancellation period is guaranteed."
},
"tracking_url": {
"type": [
"string",
"null"
]
},
"address_status": {
"enum": [
"pending",
"deliverable",
"corrected",
"undeliverable"
],
"type": "string"
},
"document_source": {
"anyOf": [
{
"enum": [
"text",
"pdf"
],
"type": "string"
},
{
"type": "null"
}
]
},
"first_usps_scan": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"date": {
"type": "string",
"description": "Local scan calendar date (YYYY-MM-DD)."
},
"scan": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Earliest recorded individual-letter USPS scan, including acceptance: at is UTC, date is the scan’s local YYYY-MM-DD date, scan is USPS’s wording. Excludes shipment acceptance-pending and printing-partner scans. Null means no individual-letter scan is recorded, not that the letter was never mailed. Only proof_of_mailing establishes an acceptance date."
},
"tracking_number": {
"type": [
"string",
"null"
]
},
"address_as_given": {
"anyOf": [
{
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"files_deleted_at": {
"type": [
"string",
"null"
],
"description": "UTC time the letter files were deleted, or null. After deletion, preview_url is retained for compatibility but no longer downloads a file; receipt_url is omitted. Tracking and the record stay available at letter_url."
},
"proof_of_mailing": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "USPS acceptance scan time, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ)."
},
"date": {
"type": "string",
"description": "The scan’s local date (YYYY-MM-DD), as USPS Tracking shows it. Cite this as the mailing date."
},
"scan": {
"type": "string",
"description": "USPS’s acceptance scan text."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The acceptance scan records when USPS accepted the letter; null until an acceptance scan is recorded. Assistants cite date as the mailing date. This is not a postmarked receipt or a legal-status determination."
},
"partner_checked_at": {
"type": [
"string",
"null"
],
"description": "UTC time of the last successful live tracking poll recorded by this service, even if USPS supplied no new scans. Null means no successful poll time is recorded (including test or legacy letters). A read never polls the partner; this is not a delivery or mailing time or a freshness guarantee."
},
"acceptance_expected_by": {
"type": [
"string",
"null"
],
"description": "Eastern date (YYYY-MM-DD) by whose end the acceptance scan usually appears. Present from submission while no acceptance or individual-piece network/delivery scan is recorded and next_step gives this date. Null after an individual-piece scan even if acceptance is missing; proof_of_mailing remains null. Before it ends, tell the person when to contact support; after it ends, contact support now so we can check with the printing partner and USPS."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Send a paid letter now",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": true
}
}Cancel before submission to the printing partner and refund any payment in full. Read refund.state, refund.amount_cents and refund.destination in the result; do not claim a refund succeeded unless its state is accepted. Card refunds go back to the card paid with and usually show within 5 to 10 business days; the bank decides exactly when. Balance refunds return to the prepaid balance. Paid letters normally have a 30-minute hold. Canceling is free; a submitted letter cannot be canceled. Read the returned refund and next_step; cancellation does not mail anything. Use id with its API key, or the complete private letter_url. Example: {"letter_url":"https://certifiedmailsender.com/l/<id>?t=<token>"}
| Parameter | Type | Description |
|---|---|---|
| id | string | Letter id; send the API key that created it in Authorization. |
| letter_url | string | Complete private letter_url or approval_url, including its t token. |
{
"name": "cancel_letter",
"title": "Cancel a letter",
"description": "Cancel before submission to the printing partner and refund any payment in full. Read refund.state, refund.amount_cents and refund.destination in the result; do not claim a refund succeeded unless its state is accepted. Card refunds go back to the card paid with and usually show within 5 to 10 business days; the bank decides exactly when. Balance refunds return to the prepaid balance. Paid letters normally have a 30-minute hold. Canceling is free; a submitted letter cannot be canceled. Read the returned refund and next_step; cancellation does not mail anything. Use id with its API key, or the complete private letter_url. Example: {\"letter_url\":\"https://certifiedmailsender.com/l/<id>?t=<token>\"}",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "Letter id; send the API key that created it in Authorization."
},
"letter_url": {
"type": "string",
"description": "Complete private letter_url or approval_url, including its t token."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"origin",
"id",
"mode",
"state",
"service",
"pages",
"from",
"to",
"quote",
"address_status",
"address_as_given",
"document_source",
"review_note",
"cancel_until",
"send_now",
"refund",
"address_note",
"preview_url",
"letter_url",
"tracking_number",
"tracking_url",
"proof_of_mailing",
"acceptance_expected_by",
"first_usps_scan",
"partner_checked_at",
"files_deleted_at",
"timeline",
"next_step",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"to": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"from": {
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
"mode": {
"enum": [
"test",
"live"
],
"type": "string"
},
"pages": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"quote": {
"type": "object",
"required": [
"service",
"pages",
"line_items",
"total_cents",
"partner_cost_cents",
"currency"
],
"properties": {
"pages": {
"type": "integer",
"maximum": 10,
"minimum": 1
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"currency": {
"type": "string",
"const": "usd"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label",
"amount_cents"
],
"properties": {
"code": {
"enum": [
"postage",
"printing",
"service_fee"
],
"type": "string"
},
"label": {
"type": "string"
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"additionalProperties": false
}
},
"total_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"partner_cost_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Public printing-and-postage cost in USD cents. The itemized price adds a 10% service fee; total_cents is before any Stripe sales tax."
}
},
"additionalProperties": false
},
"state": {
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string",
"description": "Persisted lifecycle state, not proof of mailing. printed comes from a Printed tracking observation; USPS acceptance requires proof_of_mailing. Reads can skip intermediate states. Test letters stop at submitted and never print or mail."
},
"origin": {
"enum": [
"web",
"api",
"mcp",
"unknown"
],
"type": "string"
},
"refund": {
"anyOf": [
{
"type": "object",
"required": [
"state",
"amount_cents",
"destination"
],
"properties": {
"state": {
"enum": [
"accepted",
"manual",
"pending",
"not_charged"
],
"type": "string",
"description": "accepted means the card processor accepted the refund or the prepaid balance was credited; it does not mean a card refund has posted at the bank. manual means we will refund it by hand; pending means acceptance is not yet recorded. not_charged means no money moved."
},
"destination": {
"anyOf": [
{
"enum": [
"card",
"balance"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "The card paid with or the prepaid balance paid from; null when nothing was charged."
},
"amount_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Full refund amount in USD cents, including sales tax for a card payment; zero when nothing was charged."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Refund record for a canceled, rejected or failed letter; null when no refund is due. Use state and amount_cents to tell the person what happened to their payment. Card refunds usually show within 5 to 10 business days; the bank decides exactly when."
},
"service": {
"enum": [
"certified",
"certified_err"
],
"type": "string"
},
"send_now": {
"type": "boolean",
"description": "Whether someone chose to skip the 30-minute cancellation hold. This never skips required payment or screening; auto-send keys have no per-letter approval step."
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"state",
"source",
"note"
],
"properties": {
"at": {
"type": "string",
"description": "When the event happened, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ). For USPS tracking scans, this is USPS’s scan time, not the time we recorded it."
},
"note": {
"type": "string",
"description": "Event wording. Printing partner job statuses are observations at the check time; handed to USPS is not a USPS acceptance scan."
},
"state": {
"anyOf": [
{
"enum": [
"draft",
"paid",
"screening",
"review",
"submitted",
"printed",
"mailed",
"in_transit",
"delivered",
"receipt_ready",
"canceled",
"failed",
"returned",
"refunded"
],
"type": "string"
},
{
"type": "null"
}
],
"description": "When an acceptance scan exists, the USPS mailed tag belongs to that scan. A legacy mailed tag alone is not proof of mailing; read proof_of_mailing."
},
"source": {
"type": "string",
"description": "Who reported it. partner includes the printing partner’s Printed and Provided to postal processing facility scans; other USPS scans remain usps."
},
"last_at": {
"type": "string",
"description": "UTC time of the last observation in a collapsed status-check row; omitted for one observation. at remains the first observation time, not a mailing time."
},
"observations": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2,
"description": "Count of adjacent identical printing-partner status checks collapsed into this row; omitted for a single observation. No USPS scans or state transitions are collapsed."
}
},
"additionalProperties": false
}
},
"next_step": {
"type": "string"
},
"created_at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"letter_url": {
"type": "string",
"description": "Keep this complete private link, including its t token. An anonymous letter can be read and canceled only with that token; an id alone or an API key created later cannot open it. A letter created with an API key can also be read and canceled with that same key."
},
"preview_url": {
"type": "string"
},
"receipt_url": {
"type": "string",
"description": "Private token link to the USPS electronic Return Receipt PDF. Present only for certified_err in receipt_ready while files are retained; omitted means no downloadable receipt is available here, not that delivery failed. Keep the t token; this receipt is private like the letter PDF."
},
"review_note": {
"type": [
"string",
"null"
]
},
"address_note": {
"type": [
"string",
"null"
],
"description": "The address partner’s raw note, not wording to relay to the person. Use next_step for the plain-language version to tell the person."
},
"approval_url": {
"type": "string",
"description": "Private review page with the expected mailing date and USPS delivery estimate (not guaranteed). If the person mentioned a deadline, compare it with the delivery estimate and tell them plainly when the estimate falls after it."
},
"cancel_until": {
"type": [
"string",
"null"
],
"description": "The scheduled end of the 30-minute cancellation hold, as an ISO 8601 / UTC RFC 3339 timestamp with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ); null for drafts or letters no longer cancellable. If skipped, this is when sending became eligible after payment. Cancellation remains possible until actual submission, even after this timestamp or during review; no extra cancellation period is guaranteed."
},
"tracking_url": {
"type": [
"string",
"null"
]
},
"address_status": {
"enum": [
"pending",
"deliverable",
"corrected",
"undeliverable"
],
"type": "string"
},
"document_source": {
"anyOf": [
{
"enum": [
"text",
"pdf"
],
"type": "string"
},
{
"type": "null"
}
]
},
"first_usps_scan": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "UTC RFC 3339 timestamp with milliseconds, YYYY-MM-DDTHH:mm:ss.sssZ."
},
"date": {
"type": "string",
"description": "Local scan calendar date (YYYY-MM-DD)."
},
"scan": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Earliest recorded individual-letter USPS scan, including acceptance: at is UTC, date is the scan’s local YYYY-MM-DD date, scan is USPS’s wording. Excludes shipment acceptance-pending and printing-partner scans. Null means no individual-letter scan is recorded, not that the letter was never mailed. Only proof_of_mailing establishes an acceptance date."
},
"tracking_number": {
"type": [
"string",
"null"
]
},
"address_as_given": {
"anyOf": [
{
"type": "object",
"required": [
"name",
"line1",
"city",
"state",
"zip"
],
"properties": {
"zip": {
"type": "string",
"pattern": "^\\d{5}(-\\d{4})?$"
},
"city": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"default": "",
"maxLength": 40,
"description": "Person's full name. Omit or leave empty when sending to an organization only; either name or organization must contain nonblank text."
},
"line1": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"line2": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"state": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"organization": {
"type": "string",
"minLength": 1,
"description": "Organization or company name. For an organization-only address, provide this and omit name. When both names are the same, we print the organization once."
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"files_deleted_at": {
"type": [
"string",
"null"
],
"description": "UTC time the letter files were deleted, or null. After deletion, preview_url is retained for compatibility but no longer downloads a file; receipt_url is omitted. Tracking and the record stay available at letter_url."
},
"proof_of_mailing": {
"anyOf": [
{
"type": "object",
"required": [
"at",
"date",
"scan"
],
"properties": {
"at": {
"type": "string",
"description": "USPS acceptance scan time, in UTC RFC 3339 format with milliseconds (YYYY-MM-DDTHH:mm:ss.sssZ)."
},
"date": {
"type": "string",
"description": "The scan’s local date (YYYY-MM-DD), as USPS Tracking shows it. Cite this as the mailing date."
},
"scan": {
"type": "string",
"description": "USPS’s acceptance scan text."
}
},
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The acceptance scan records when USPS accepted the letter; null until an acceptance scan is recorded. Assistants cite date as the mailing date. This is not a postmarked receipt or a legal-status determination."
},
"partner_checked_at": {
"type": [
"string",
"null"
],
"description": "UTC time of the last successful live tracking poll recorded by this service, even if USPS supplied no new scans. Null means no successful poll time is recorded (including test or legacy letters). A read never polls the partner; this is not a delivery or mailing time or a freshness guarantee."
},
"acceptance_expected_by": {
"type": [
"string",
"null"
],
"description": "Eastern date (YYYY-MM-DD) by whose end the acceptance scan usually appears. Present from submission while no acceptance or individual-piece network/delivery scan is recorded and next_step gives this date. Null after an individual-piece scan even if acceptance is missing; proof_of_mailing remains null. Before it ends, tell the person when to contact support; after it ends, contact support now so we can check with the printing partner and USPS."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Cancel a letter",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": true
}
}Certified Mail Sender: USPS Certified Mail. quote_letter; create_letter drafts free. Person pays at approval_url; trusted auto-send uses prepaid balance. Never pay. Share only with them. Say exactly: "This link is private. Anyone with it can read your letter and tracking. Until it goes to our printing partner, normally 30 minutes after payment, they can pay a draft, cancel or send it. Then it shows records only and changes nothing. Don't forward it; tap Open letter on its page and share that PDF instead." No account/monthly fee. Price: postage/printing + 10%. 1 page: $9.04 certified; $12.24 with electronic Return Receipt. create_letter: to/from, service, one of text/pdf_base64/pdf_url, new idempotency_key; approval_url/letter_url. The person checks letter/addresses/price/authority; auto-send pays after address confirmation, including USPS corrections. Updates go to the email entered at card checkout. Keep letter_url whole, including t. get_letter: state/timeline/tracking/next_step; list_letters: key's letters. preview_url opens only the PDF; it cannot change the letter. If asked what to share, give preview_url. Paid letters wait 30 minutes. cancel_until: hold end; cancel_letter: full refund until submission. Only if the person asks to send right away, use send_letter_now after payment or send_now:true on create_letter. Screening must pass. Skipping leaves no guaranteed cancellation period. Errors: code/message/fix. address_undeliverable means no draft; error.address_reason: code/fields/message/partner_message/lookup_url. unit_required: ask for the apartment/suite/unit; street_number_unconfirmed: check street number; street_not_found: check street name/spelling; city_zip_mismatch: check city and ZIP. Ask them and do not guess variants. text_has_letterhead: remove the leading address/date the error names. We add both addresses and the date; start from the greeting on. People can write or upload at https://certifiedmailsender.com/send. Not affiliated with USPS; no legal advice.
Names, descriptions and schemas were written by the server and are shown as data.