For agent builders
Build agents that send real mail
Priority Only is a remote MCP server (and a REST API with the same operations) that turns a letter into USPS mail in three steps, always in this order: Design, Pay, Approve. This page covers auth, the REST API, fill-in links, payments, limits, errors, test mode and status updates.
Endpoints and machine-readable files
Everything an agent needs to find us, price a letter and pick a template without scraping HTML.
Remote MCP server
Launching soon. The server URL will be listed here and on Connect your AI. Transport: MCP Streamable HTTP. We also plan to publish it to the official MCP Registry.
xAI API (Grok): add the same URL as a remote MCP tool (type: "mcp" with server_url and server_label) in the Responses API or the xAI SDK. No authorization is needed: pass your customer’s email as customer_email. Your app must show the customer the preview pages (the links in the tool result) and the total, and get their yes, before calling checkout.
REST API
JSON over HTTPS at https://api.priorityonly.com, described in /openapi.json. It also runs our order form. See REST API below.
Static files
- /openapi.json — OpenAPI 3.1 spec of the REST API (/v1), generated from the same route table as the server
- /pricing.json — Prices in cents and USD, generated from the same table as this page
- /templates.json — Letter templates with required fields, form_fields (types and limits) and default mail class
- /llms.txt — Plain-text site summary for language models
- /llms-full.txt — Everything in one file, including every template's form fields
Tools
Call them in this order for a typical letter: verify_address → create_draft → preview_letter → (Design: the user says yes to the preview and price) → checkout (Pay) → get_status until the final print proof is ready → approve_print with the user's answer (Approve) → get_status.
| Tool | Input | Output |
|---|---|---|
verify_address | address | standardized address, deliverable flag, suggestions, estimated arrival |
list_templates | category (optional) | template ids, names, required fields |
create_draft | customer_email, sender, recipient, body text OR template_id + fields, mail_class, add_ons | draft_id |
preview_letter | draft_id, customer_email | proof_id, approval_token (private: only for checkout and approve_print), page images (signed links, valid 24 hours), itemized price, estimated arrival |
get_options | none | mail classes and prices |
checkout | proof_id, the total and your yes, customer_email, approval_token (from the preview; needed without sign-in) | Stripe Checkout URL, private tracking link, what happens after payment |
approve_print | order_id (or order_group_id for an order to several people), decision (approve or reject), customer_email, approval_token (the one used for checkout; needed without sign-in) | result (approved or rejected), the amount charged on approval, estimated arrival after approval |
get_status | order_id, customer_email | status, approval state and next step, final print proof images and the approve-by date while waiting for approval, tracking number and USPS link, private tracking link, proof of mailing, return receipt url, estimated arrival before mailing |
cancel_letter | order_id, customer_email | result |
request_quote | description, contact email, draft_id (optional) | quote_request_id |
REST API
The same operations as the MCP tools, plus greeting cards and orders to several people, as JSON over HTTPS. Request and response schemas are in /openapi.json (OpenAPI 3.1).
Who can call
Calls without sign-in name the customer with customer_email in the JSON body. They are accepted from the priorityonly.com website and, where enabled, from servers; otherwise you get 403 agent_access_disabled: use the MCP connector or a fill-in link. Calls with an OAuth access token (Authorization: Bearer, the same sign-in as the connector) are always accepted.
Requests
POST bodies are JSON with Content-Type: application/json, up to 16 KB (128 KB for /v1/drafts, /v1/batches, /v1/batches/{batch_id}/content, /v1/batches/{batch_id}/recipients, /v1/batches/{batch_id}/recipients/{recipient_id}). Emails never go in URLs, so lookups such as status are POSTs too. Ids in the path also count as body fields. The x-turnstile-token header is only for our own order form.
Responses
Errors are {"error":{"code","message","retry_after"?,"details"?}} with the HTTP status in the error table; a field problem lists details.issues as {path, message}. Every response has an x-request-id header. The catalog reads are public and cacheable.
| Endpoint | What it does | Success |
|---|---|---|
GET /v1/form-config | Order form settings: whether orders are accepted, the spam-check key and limits. | 200 |
GET /v1/options | Mail classes and prices in plain language. | 200 |
GET /v1/templates | Letter templates with every field (type, limits, options) and who the recipient should be. | 200 |
GET /v1/card-designs | Greeting-card occasions and designs, with each design's own fields and a thumbnail link. | 200 |
GET /v1/card-designs/{design_id}/thumbnail.png | A small PNG of a card design's front. | 200 |
POST /v1/addresses/verify | Standardize a US address and check that USPS can deliver to it. Undeliverable addresses are blocked later. | 200 |
POST /v1/drafts | Create a letter draft from one of our templates plus fields, or from plain text in our standard layout. | 201 |
POST /v1/cards | Create a greeting-card draft from one of our designs, with an optional deliver-by date. | 201 |
POST /v1/drafts/{draft_id}/preview | Design step: screen the draft, make its preview and email the page images (no price) to the customer. | 201 |
POST /v1/checkout | Pay step: get a Stripe Checkout link for the proof the user said yes to. Needs the user’s explicit yes. | 200 |
POST /v1/orders/{order_id}/status | Order status and the next step: the final print proof while it waits for approval, then tracking with a USPS link, the private tracking link, proof of mailing and the return receipt. | 200 |
POST /v1/orders/{order_id}/decision | Approve step: the user's own decision on the final print proof. Approve charges the card and is final; reject releases the hold, nothing is charged. Needs the user’s explicit yes. | 200 |
GET /v1/checkout-sessions/{session_id}/final-proof | The final print proof of the order a Stripe Checkout payment was for, and where its decision stands. | 200 |
POST /v1/checkout-sessions/{session_id}/decision | Approve or reject the final print proof on the page shown after payment. Needs the user’s explicit yes. | 200 |
GET /v1/final-decisions | The final print proof behind the decision link in the final proof email, and where its decision stands. | 200 |
POST /v1/final-decisions | Approve or reject the final print proof from the final proof email's link. Needs the user’s explicit yes. | 200 |
POST /v1/orders/{order_id}/cancel | Cancel an order (nothing charged; the card hold released) until its final print proof is approved. Needs the user’s explicit yes. | 200 |
POST /v1/quote-requests | Ask a person for a quote for custom work outside our templates. | 201 |
POST /v1/batches | Start an order to several people (up to 25): one greeting card design or "write my own" letter, one payment. | 201 |
POST /v1/batches/{batch_id}/content | Change the shared design, message or letter text. | 200 |
POST /v1/batches/{batch_id}/recipients | Add people to the order (up to 25 in all). | 200 |
POST /v1/batches/{batch_id}/recipients/{recipient_id} | Change one person: address, greeting name or their own wording. | 200 |
POST /v1/batches/{batch_id}/recipients/{recipient_id}/remove | Remove one person from the order. | 200 |
POST /v1/batches/{batch_id}/preview | Proof everyone who needs a new proof, in the background. | 202 |
POST /v1/batches/{batch_id}/recipients/{recipient_id}/preview | Proof one person now, like preview_letter. | 201 |
POST /v1/batches/{batch_id}/status | Everyone's state and current proof, the total, and whether the order is ready for the user's yes. | 200 |
POST /v1/batches/{batch_id}/checkout | Pay step for several people: one Stripe Checkout link for every piece. Needs the user’s explicit yes. | 200 |
POST /v1/order-groups/{order_group_id}/status | Every piece of an order to several people: status, approval state and private tracking link. | 200 |
POST /v1/order-groups/{order_group_id}/cancel | Cancel every piece whose final print proof isn't approved yet. Needs the user’s explicit yes. | 200 |
POST /v1/order-groups/{order_group_id}/decision | Approve step for an order to several people: one decision on every piece's final print proof. Needs the user’s explicit yes. | 200 |
A typical letter: POST /v1/addresses/verify → POST /v1/drafts → POST /v1/drafts/{draft_id}/preview → the user says yes to the page images and the total → POST /v1/checkout with confirmed_total_cents and the user’s own yes as user_confirmation (our order form sends its button label, “Yes, the preview and the total of $19.99 are right”) and, without sign-in, the preview’s approval_token (keep it private) → the user pays on Stripe → POST /v1/orders/{order_id}/status until the final print proof is ready → the user approves or rejects it (approve_print).
Nothing is printed or charged until the customer approves the final print proof: paying only places a hold on their card. Approving charges the card, and the letter is final: it can't be changed or cancelled, and there is no refund for a change of mind. Reject, cancel_letter or no answer within 3 business days releases the hold: nothing is charged and nothing is mailed (a reminder email goes out after 24 hours). If the card can't be charged when they approve, the order is closed and they need to order again. Never tell the customer release or print times; only the estimated arrival.
Address checks, drafts, previews and status (before mailing) carry delivery_estimate: the mail day, an estimated arrival window and a ready-to-say summary; orders to several people have one per person. Before asking for the yes, tell the customer the estimated arrival for each recipient (from delivery_estimate.summary), together with the preview images and total price. USPS doesn’t guarantee delivery dates.
Fill-in links for chatbots without the connector
A chatbot that can’t call our tools can still prepare a letter: it builds a link to our order form with the details in the part after “#”, and the user checks everything, says yes to the preview and the price, pays and then approves the final print proof. The exact instructions are in /llms.txt.
Instructions for the assistant
If you can't call Priority Only's tools, never say a letter was sent. Prepare it, and the user finishes on our website:
- Pick a template id and its form_fields from https://priorityonly.com/templates.json, or write the letter as plain text.
- Build JSON: {"v":1,"template_id":"…","fields":{…},"sender":{…},"recipient":{…}} or {"v":1,"body_text":"…","mail_class":"first_class|certified|certified_return_receipt","sender":{…},"recipient":{…}}. Address keys: name, company (optional), address_line1, address_line2 (optional), address_city, address_state (2 letters), address_zip. Dates YYYY-MM-DD; amounts like 1850 or "1850.00"; lists as arrays.
- Link: https://priorityonly.com/send/#j= followed by the JSON encoded with encodeURIComponent (or #d= followed by base64url of the UTF-8 JSON, if you run code). Use only this domain.
- Never put the user's email address, payment details, prices, ids or an approval in the link. Keep the link under 4,000 characters. For a longer letter, give the JSON in a code block and tell the user to open https://priorityonly.com/send/ and choose "Paste from my assistant".
- Tell the user: "Open this link and check every detail. Enter your email and press Create my preview. Check the preview pages and the total, then say yes and pay on Stripe's page. After payment, check the final print proof and press Approve the final proof. Nothing is charged before you pay, and nothing is mailed before you approve the final print proof. Once you approve, your letter is final and can't be changed or cancelled."
What the order form does with a link
- A link only fills in the form. The form has three steps. Design: the user enters their email, presses Create my preview and checks the preview pages and the total. Pay: the user says yes (the button reads "Yes, the preview and the total of $… are right") and pays on Stripe's page, which only places a hold on the card; nothing is created or charged before that. Approve: after payment the final print proof is shown on the payment page and emailed; nothing is mailed or charged until the user presses Approve the final proof, which charges the card, and once approved the letter is final and can't be changed or cancelled. Rejecting the final print proof releases the hold: nothing is charged. The email address is never taken from a link.
- The JSON rides in the part after "#", which browsers never send to a server; the page removes it from the address bar as soon as it has read it.
- Ignored and never applied: email addresses, ids, prices or totals, approvals or payment flags, a title, and any other key that isn't in the schema (also inside sender and recipient). The page tells the user how many items it ignored, by kind only, never their values.
- If both template_id and body_text are given, the template wins and the text is shown to the user to copy. mail_class is ignored for templates: template letters always go Certified Mail with electronic return receipt.
- Field keys are matched exactly, then ignoring case, spaces, hyphens and underscores. Values that fit no field are shown to the user as text to copy; values in the wrong format are kept and flagged on the field.
- Text is cleaned (control characters removed, line breaks kept only in body_text and long_text fields) and cut to the limits; the page says which values were shortened.
- Links longer than 16,000 characters after "#" aren't read, so stay under 4,000. The "Paste from my assistant" box takes up to 64 KB of JSON (optionally in a code block) or a whole link.
- Fill-in links are for letters. For a greeting card, send the user to https://priorityonly.com/send/ to pick a design.
Worked example
A security deposit demand letter. Field names, types and limits for every template are the form_fields in /templates.json (also listed in /llms-full.txt).
{
"v": 1,
"template_id": "security-deposit-demand",
"fields": {
"rental_address": "12 Oak St, Apt 4, Austin, TX 78701",
"tenancy_start": "2025-08-01",
"move_out_date": "2026-10-31",
"deposit_amount": "1850.00",
"respond_by": "2026-12-15",
"key_dates": [
{
"date": "2026-10-31",
"event": "Returned the keys"
}
]
},
"sender": {
"name": "Jordan Lee",
"address_line1": "55 Pine Ave",
"address_city": "Austin",
"address_state": "TX",
"address_zip": "78702"
},
"recipient": {
"name": "Sam Rivera",
"company": "Oak Street Rentals LLC",
"address_line1": "900 Congress Ave",
"address_line2": "Suite 200",
"address_city": "Austin",
"address_state": "TX",
"address_zip": "78701"
}
}The link (percent-encoded JSON after #j=):
https://priorityonly.com/send/#j=%7B%22v%22%3A1%2C%22template_id%22%3A%22security-deposit-demand%22%2C%22fields%22%3A%7B%22rental_address%22%3A%2212%20Oak%20St%2C%20Apt%204%2C%20Austin%2C%20TX%2078701%22%2C%22tenancy_start%22%3A%222025-08-01%22%2C%22move_out_date%22%3A%222026-10-31%22%2C%22deposit_amount%22%3A%221850.00%22%2C%22respond_by%22%3A%222026-12-15%22%2C%22key_dates%22%3A%5B%7B%22date%22%3A%222026-10-31%22%2C%22event%22%3A%22Returned%20the%20keys%22%7D%5D%7D%2C%22sender%22%3A%7B%22name%22%3A%22Jordan%20Lee%22%2C%22address_line1%22%3A%2255%20Pine%20Ave%22%2C%22address_city%22%3A%22Austin%22%2C%22address_state%22%3A%22TX%22%2C%22address_zip%22%3A%2278702%22%7D%2C%22recipient%22%3A%7B%22name%22%3A%22Sam%20Rivera%22%2C%22company%22%3A%22Oak%20Street%20Rentals%20LLC%22%2C%22address_line1%22%3A%22900%20Congress%20Ave%22%2C%22address_line2%22%3A%22Suite%20200%22%2C%22address_city%22%3A%22Austin%22%2C%22address_state%22%3A%22TX%22%2C%22address_zip%22%3A%2278701%22%7D%7DOpen the example in the order form (it only fills in the form; nothing is sent).
JSON Schema of a fill-in link (version 1)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://priorityonly.com/schemas/handoff-v1.json",
"title": "Priority Only fill-in link, version 1",
"type": "object",
"properties": {
"v": {
"type": "number",
"const": 1
},
"template_id": {
"description": "An id from https://priorityonly.com/templates.json. Omit for a plain letter.",
"type": "string",
"pattern": "^[a-z0-9-]{1,100}$"
},
"fields": {
"description": "Template field values keyed by form_fields[].name. Dates YYYY-MM-DD; amounts like 1850 or \"1850.00\"; lists as arrays.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 20000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"maxItems": 50,
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
},
"maxProperties": 20
}
]
}
}
]
},
"maxProperties": 100
},
"body_text": {
"description": "Plain letter text, instead of template_id.",
"type": "string",
"maxLength": 20000
},
"mail_class": {
"description": "Plain letters only.",
"type": "string",
"enum": [
"first_class",
"certified",
"certified_return_receipt"
]
},
"sender": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"company": {
"type": "string",
"maxLength": 200
},
"address_line1": {
"type": "string",
"maxLength": 200
},
"address_line2": {
"type": "string",
"maxLength": 200
},
"address_city": {
"type": "string",
"maxLength": 100
},
"address_state": {
"type": "string",
"pattern": "^[A-Za-z]{2}$"
},
"address_zip": {
"type": "string",
"pattern": "^\\d{5}(-?\\d{4})?$"
}
},
"additionalProperties": false
},
"recipient": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"company": {
"type": "string",
"maxLength": 200
},
"address_line1": {
"type": "string",
"maxLength": 200
},
"address_line2": {
"type": "string",
"maxLength": 200
},
"address_city": {
"type": "string",
"maxLength": 100
},
"address_state": {
"type": "string",
"pattern": "^[A-Za-z]{2}$"
},
"address_zip": {
"type": "string",
"pattern": "^\\d{5}(-?\\d{4})?$"
}
},
"additionalProperties": false
}
},
"required": [
"v"
],
"additionalProperties": false,
"not": {
"required": [
"template_id",
"body_text"
]
}
}Authentication
No account is needed. Every call acts for one customer: identified by their email address, or by an optional OAuth sign-in.
No account: the customer’s email
Requests without a token are guest requests. Ask the user for their email address and pass it as customer_email on create_draft, then the same address on every later call for that letter (preview_letter, checkout, get_status, cancel_letter). An id alone is never enough: a wrong email gets the same not_found as an unknown id. Read-only tools such as list_templates and get_options need no email.
Optional OAuth 2.1 sign-in
Clients that prefer to sign in use the sign-in URL (the server URL followed by /signin), which follows the MCP authorization spec: OAuth 2.1 with PKCE and protected-resource metadata. A signed-in connector acts for that user and doesn’t need customer_email. Row-level security means it only sees that user’s drafts, proofs and orders.
REST API calls
The REST API takes the same two kinds of calls: with customer_email in the JSON body, or with the same OAuth bearer token. Calls without a token are accepted from the priorityonly.com website and, where enabled, from servers. Account API keys for server-to-server integrations (Zapier, n8n, your own backend) are planned; keys will stay on your server, never in a prompt.
Payments
Card data never touches Priority Only's servers. Every charge is tied to one preview the user said yes to, at its exact price. Checkout only places a hold on the card: nothing prints or is charged until the user approves the final print proof after payment, and approving captures exactly the approved total. Reject, or no answer within 3 business days, releases the hold.
Hosted Stripe Checkout
checkout returns a Stripe Checkout link for the proof the user said yes to. The user pays on Stripe’s page; the amount comes from the proof and can’t be changed. Stripe’s page also says that once the final print proof is approved, the letter is final.
Pay in chat
For repeat users who saved a card on Stripe: a one-tap “Yes, pay” button on the preview, clicked by the person, not the model. Falls back to Checkout if the card needs authentication. The final print proof is still approved after payment.
Prepaid credits
Top up once and let your assistant send from the balance, with a spending limit you set. Each debit still needs an approved proof. Business accounts first.
Agent-native payments
Agent wallets and machine payments (such as Stripe Shared Payment Tokens, MPP or x402) for agents that pay on a user’s behalf, bound to the approved price. Added as demand appears.
Prices
Postage included, US addresses. preview_letter always returns the itemized total; /pricing.json has the same numbers.
Mail class (mail_class) | Price |
|---|---|
First-Class Mail (first_class) | $4.99 |
Certified Mail (certified) | $14.99 |
Certified Mail + electronic return receipt (certified_return_receipt) | $19.99 |
| Each page after the first 2 | +$1.00 |
Rate limits and screening
Limits protect recipients from unwanted mail. Hitting one returns rate_limited with details.retry_after_seconds.
5
letters per day
For new accounts.
2
per recipient per week
Letters from one account to the same recipient address in any 7 days.
Guest
calls are capped
Calls without a sign-in have hourly limits per email address, per network and overall. Proof review emails to one inbox are capped per day, and guest orders to an address many accounts wrote to this week are held for review. Signed-in connectors are exempt.
All
of letters screened
Every letter is screened before print. Borderline letters go to held_for_review. See the acceptable use policy.
Error codes
Tool errors come back as an MCP tool result with isError: true and structured content like { "code", "message", "details"? }. The REST API uses the same codes in {"error": {...}}, with the HTTP status below. Show the message to the user; branch on the code.
| Code | HTTP | When | What your agent should do | Retry |
|---|---|---|---|---|
validation_failed | 422 | A field is missing or malformed, including a call without sign-in that has no customer_email. The REST API lists each problem in details.issues as {path, message}, e.g. sender.address_zip or content.fields.key_dates.0.date (HTTP 400 when the body isn't JSON at all). Also approve_print without sign-in and without the approval_token the checkout was made with (details.reason is approval_token). | Ask the user for the missing or corrected detail, such as their email address, and call again. Without the approval_token, the user can decide with the Approve or Reject button in the final proof email. | After fixing input |
unauthorized | 401 | An invalid, expired or revoked OAuth token (only connectors that sign in send one; calls without a token are guest calls), or, on the REST API, a call without a token while guest calls are switched off. | Run the OAuth flow again, or call without a token and pass customer_email. | After sign-in |
not_found | 404 | The draft, proof or order doesn't exist, or belongs to another account or another customer_email. Both get the same answer. On the REST API, also an unknown endpoint. | Check the id and the email; ids are only visible to the email or account that created them. | No |
address_undeliverable | 422 | create_draft (or create_card) found the sender's or recipient's address undeliverable; details.which lists which (sender, recipient). | Check the street, unit, city, state and ZIP with the user (verify_address shows USPS's standard form), then call again. | With a new address |
content_rejected | 422 | The letter breaks the acceptable use policy (threats, harassment, impersonating a court or agency). | Tell the user it can't be sent and link the acceptable use policy. | No |
held_for_review | 409 | Content screening flagged the letter at preview_letter (no proof is made or emailed), or checkout found the order needs a person's review, for example many orders to one address (details.order_id). Nothing prints or is charged until a person reviews it. | Tell the user it's under review; for a held order we email a payment link once it is cleared. Do not rephrase to get around screening. | No |
proof_not_approved | 409 | checkout was called for a proof (the Design preview) that was never emailed to the user for review, or that the user hasn't said yes to. | Call preview_letter again if needed, show the preview images and total, and get an explicit yes first. | After the user's yes |
proof_stale | 409 | The letter, address, mail class or price changed after this proof, a newer proof exists, or a call without sign-in didn't pass the preview's approval_token. | Call preview_letter again and get a new yes for the new proof. | With the new proof_id |
proof_expired | 409 | The proof (the Design preview, valid 24 hours) has expired. | Call preview_letter again and get a new yes. | With the new proof_id |
price_mismatch | 409 | confirmed_total_cents isn't the proof's total; details.total_cents has the real total. | Show the user the proof's real total and ask for a new yes. | After a new yes |
confirmation_required | 422 | user_confirmation isn't the user's own clear yes (for example a question, a hedge or an empty string). | Show the proof and the total, ask the user, and pass their explicit yes in their own words. | After an explicit yes |
payment_required | 402 | The order exists but has no checkout or payment yet. On a decision (approve): the card couldn't be charged when the user approved (the hold expired or the card was declined), so the order was NOT approved and is closed; nothing is charged or mailed. | Give the user the checkout link again. After a failed approval: tell the user plainly the payment could not be completed and they need to order again (a new preview and a new payment). | After payment (a failed approval: only as a new order) |
past_print_cutoff | 409 | MCP connector only: schedule_card was called for a greeting card that is already with the printer, so its date can no longer change. (Cancelling or rejecting an approved order returns approved_final.) | Tell the user the card's date can no longer change; get_status keeps tracking it. | No |
final_proof_not_ready | 409 | A decision on the final print proof (approve_print, or another decision endpoint) came when there is nothing to approve: the order isn't paid yet, the final print proof is still being prepared (usually a few minutes), it didn't match the preview (a redesign is needed), our team is reviewing the order, or the order is already cancelled or failed. details.statuses lists the order statuses. | Follow next_step in get_status: give the user the payment link, or call get_status again shortly and show every page of the final print proof. For a redesign, the user makes a new preview (the card hold is kept) or cancels (the hold is released, nothing is charged). | When approval_state is awaiting_approval |
approved_final | 409 | The customer already approved the final print proof, so the order is final: cancel_letter, a reject or (MCP connector) a new card date was refused. Nothing changed. | Tell the user it is final (the card was charged on approval) and can no longer be changed, cancelled or refunded; get_status keeps tracking it. Never promise a refund: a mistake by us or our print partner gets a free reprint, not a refund. | No |
rate_limited | 429 | A rate limit was hit (see Rate limits and screening). Includes details.retry_after_seconds; the REST API also sends retry_after and a Retry-After header. Nothing is charged. | Tell the user when they can try again. | After retry_after_seconds |
not_available | 409 | The feature isn't switched on yet, for example paying for a greeting card before cards launch. On a decision (approve): our payment provider couldn't be reached to charge the card, so nothing was approved or charged. | Tell the user it isn't available yet. Nothing has been charged. After a decision: try the approval again in a minute. | No (a decision: yes, in a minute) |
internal | 500 | Something went wrong on our side. Nothing was charged. (HTTP 503 with this code means sign-in couldn't be checked right now.) | Try again in a moment; if it keeps happening, tell the user to contact support. | After a short wait |
forbidden_origin | 403 | REST only: a call without sign-in from another website's page (an Origin header that isn't priorityonly.com). | Use the MCP connector, sign in with OAuth, or give the user a fill-in link. | No |
agent_access_disabled | 403 | REST only: a call without sign-in and without an Origin header (a server, script or GPT Action) while server access is switched off. | Use the MCP connector, sign in with OAuth, or give the user a fill-in link. | No |
captcha_required | 403 | REST only: a call without sign-in from the priorityonly.com order form, without the x-turnstile-token header, on a preview or quote request while the spam check is on. | The order form adds the token itself; other clients use the MCP connector or sign in. | With a token |
captcha_failed | 403 | REST only: the spam-check token was invalid, expired or already used. | Complete the spam check again and resend with the new token. | With a new token |
captcha_unavailable | 503 | REST only: the spam check couldn't be reached and the server is set to refuse in that case. | Try again in a few minutes. | After Retry-After |
api_disabled | 503 | REST only: the API is paused. GET /v1/form-config still answers, with accepting_orders: false. The MCP connector is not affected. | Try again later, or use the MCP connector. | After Retry-After |
method_not_allowed | 405 | REST only: the wrong HTTP method for this endpoint; the Allow header lists the right one. | Use the listed method. | With the right method |
unsupported_media_type | 415 | REST only: a POST without Content-Type: application/json. | Send the body as JSON with that header. | With the header |
payload_too_large | 413 | REST only: the body is over 16 KB (128 KB for /v1/drafts, /v1/batches, /v1/batches/{batch_id}/content, /v1/batches/{batch_id}/recipients, /v1/batches/{batch_id}/recipients/{recipient_id}). | Shorten the letter. | With a smaller body |
Test mode (sandbox)
Build and test the whole flow without mailing anything or spending money.
Getting a test account
PlannedHow to get test access will be documented here before launch. Use Stripe test cards such as 4242 4242 4242 4242 at checkout. Live mail is off by default and only turned on for production accounts.
Status updates and webhooks
PlannedToday, poll get_status with the order_id (and the same customer_email for guest orders); it also returns the order’s private tracking link for the user. Planned: register an HTTPS endpoint and receive a signed order.status_changed event each time an order moves, with the order id, new status, tracking number and evidence links.
| Status | Meaning |
|---|---|
draft | Letter started; no preview yet. |
previewed | The user said yes to the preview and price; waiting for payment. |
paid | Payment completed; the final print proof is being made. |
final_proof_ready | The final print proof is waiting for the user's approval. Nothing prints until they approve, and approving charges the card; reject, or no answer within 3 business days, releases the card hold. |
redesign_needed | The final print proof didn't match the preview. The user goes back to Design (the card hold is kept) or cancels (the hold is released, nothing charged). |
approved | The user approved the final print proof. The order is final: no changes or cancellations. |
submitted | Sent to the print-and-mail partner. |
printed | Printed and enveloped. |
mailed | Handed to USPS; proof of mailing available. |
in_transit | Moving through USPS; tracking events arriving. |
delivered | Delivered (return receipt follows for that mail class). Final. |
returned | USPS returned it to the sender. Returns are not refunded; if our mistake caused it, we reprint it free. Final. |
failed | Could not be printed or mailed. If it was never printed, it is refunded in full automatically (or, if never approved, nothing was charged). Otherwise our team checks what went wrong and emails the user; if we or our print partner made a mistake, we reprint it free. Final. |
held_for_review | A person reviews it before payment or printing (borderline wording, or many orders to one address); the user is emailed a payment link once it is cleared. |
cancelled | Cancelled before printing: rejected or cancelled before the final print proof was approved, or not approved within 3 business days. Nothing is charged: the card hold is released (after a redesign, it moves to the new order instead; a payment charged before card holds is refunded in full). Final. |
proofed | Older orders only: a proof waiting for the user, from before Design, Pay, Approve. |
Usual path: draft → previewed → paid → final_proof_ready → approved (final) → submitted → printed → mailed → in_transit → delivered. cancel_letter (or rejecting the final print proof) cancels until the user approves the final print proof: nothing is charged, the card hold is released. Once approved, the card is charged and the letter is final: no change, no cancellation and no refund for a change of mind. A scheduled card is mailed on its mail-by date only if approved. A mistake by us or our print partner is fixed with a free reprint, not a refund.