Skip to content
Priority Only

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.

Items marked “Planned” are not built yet.

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.

MCP tools with their inputs and outputs
ToolInputOutput
verify_addressaddressstandardized address, deliverable flag, suggestions, estimated arrival
list_templatescategory (optional)template ids, names, required fields
create_draftcustomer_email, sender, recipient, body text OR template_id + fields, mail_class, add_onsdraft_id
preview_letterdraft_id, customer_emailproof_id, approval_token (private: only for checkout and approve_print), page images (signed links, valid 24 hours), itemized price, estimated arrival
get_optionsnonemail classes and prices
checkoutproof_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_printorder_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_statusorder_id, customer_emailstatus, 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_letterorder_id, customer_emailresult
request_quotedescription, 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.

REST API endpoints and what each one does
EndpointWhat it doesSuccess
GET /v1/form-configOrder form settings: whether orders are accepted, the spam-check key and limits. 200
GET /v1/optionsMail classes and prices in plain language. 200
GET /v1/templatesLetter templates with every field (type, limits, options) and who the recipient should be. 200
GET /v1/card-designsGreeting-card occasions and designs, with each design's own fields and a thumbnail link. 200
GET /v1/card-designs/{design_id}/thumbnail.pngA small PNG of a card design's front. 200
POST /v1/addresses/verifyStandardize a US address and check that USPS can deliver to it. Undeliverable addresses are blocked later. 200
POST /v1/draftsCreate a letter draft from one of our templates plus fields, or from plain text in our standard layout. 201
POST /v1/cardsCreate a greeting-card draft from one of our designs, with an optional deliver-by date. 201
POST /v1/drafts/{draft_id}/previewDesign step: screen the draft, make its preview and email the page images (no price) to the customer. 201
POST /v1/checkoutPay 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}/statusOrder 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}/decisionApprove 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-proofThe final print proof of the order a Stripe Checkout payment was for, and where its decision stands. 200
POST /v1/checkout-sessions/{session_id}/decisionApprove or reject the final print proof on the page shown after payment. Needs the user’s explicit yes.200
GET /v1/final-decisionsThe final print proof behind the decision link in the final proof email, and where its decision stands. 200
POST /v1/final-decisionsApprove 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}/cancelCancel 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-requestsAsk a person for a quote for custom work outside our templates. 201
POST /v1/batchesStart 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}/contentChange the shared design, message or letter text. 200
POST /v1/batches/{batch_id}/recipientsAdd 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}/removeRemove one person from the order. 200
POST /v1/batches/{batch_id}/previewProof everyone who needs a new proof, in the background. 202
POST /v1/batches/{batch_id}/recipients/{recipient_id}/previewProof one person now, like preview_letter. 201
POST /v1/batches/{batch_id}/statusEveryone's state and current proof, the total, and whether the order is ready for the user's yes. 200
POST /v1/batches/{batch_id}/checkoutPay 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}/statusEvery piece of an order to several people: status, approval state and private tracking link. 200
POST /v1/order-groups/{order_group_id}/cancelCancel every piece whose final print proof isn't approved yet. Needs the user’s explicit yes.200
POST /v1/order-groups/{order_group_id}/decisionApprove 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.

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.

At launch

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.

Planned

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.

Planned

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.

Planned

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.

Letter prices by mail class
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.

Error codes, HTTP statuses, causes and what to do
CodeHTTPWhenWhat your agent should doRetry
validation_failed422A 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
unauthorized401An 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_found404The 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_undeliverable422create_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_rejected422The 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_review409Content 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_approved409checkout 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_stale409The 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_expired409The proof (the Design preview, valid 24 hours) has expired.Call preview_letter again and get a new yes.With the new proof_id
price_mismatch409confirmed_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_required422user_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_required402The 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_cutoff409MCP 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_ready409A 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_final409The 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_limited429A 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_available409The 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)
internal500Something 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_origin403REST 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_disabled403REST 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_required403REST 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_failed403REST 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_unavailable503REST 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_disabled503REST 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_allowed405REST 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_type415REST only: a POST without Content-Type: application/json.Send the body as JSON with that header.With the header
payload_too_large413REST 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

Planned

How 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

Planned

Today, 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.

Order statuses in the order they usually happen
StatusMeaning
draftLetter started; no preview yet.
previewedThe user said yes to the preview and price; waiting for payment.
paidPayment completed; the final print proof is being made.
final_proof_readyThe 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_neededThe 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).
approvedThe user approved the final print proof. The order is final: no changes or cancellations.
submittedSent to the print-and-mail partner.
printedPrinted and enveloped.
mailedHanded to USPS; proof of mailing available.
in_transitMoving through USPS; tracking events arriving.
deliveredDelivered (return receipt follows for that mail class). Final.
returnedUSPS returned it to the sender. Returns are not refunded; if our mistake caused it, we reprint it free. Final.
failedCould 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_reviewA 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.
cancelledCancelled 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.
proofedOlder 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.