Postedly Send API API

One document or selected product, one recipient, one approved quote. An agent that already has a document should upload its bytes directly with POST /api/documents using its existing OAuth bearer token, then use the returned document id for a quote. Do not create a separate guest session for an OAut

GitHub OpenAPI

Operations 16

GET /api/catalog Current channel availability and manual beta requests #
POST /mcp/catalog Public MCP endpoint: list services and price one send, no sign-in #
POST /api/session Create a scoped guest session #
GET /api/session Current session verification status #
GET /api/products Curated provider products #
POST /api/documents Upload a file directly from an agent or application #
GET /api/documents/{id} Read the authenticated owner’s private document #
GET /api/document-handoffs/{ticket} Read a prepared upload handoff #
POST /api/document-handoffs/{ticket} Upload bytes to a prepared single-use handoff #
POST /api/postcards/compose Compose a postcard without a PDF #
POST /api/quotes Create an immutable, tax-inclusive quote #
POST /api/checkout Approve quote and create hosted checkout #
GET /api/orders List session orders #
GET /api/orders/{id} Read actual payment and fulfillment status #
GET /api/orders/{id}/delivery-report Download the delivery report for one order #
POST /api/orders/{id}/cancel Cancel only when safely possible #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/postedly-com:postedly-send-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

postedly-com-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"Postedly Send API","version":"1.4.0","description":"One document or selected product, one recipient, one approved quote. An agent that already has a document should upload its bytes directly with POST /api/documents using its existing OAuth bearer token, then use the returned document id for a quote. Do not create a separate guest session for an OAuth-connected owner. Paid sends require verified email, a current quote, explicit final approval and authoritative payment confirmation. Uploading alone never pays or sends. Availability is live; unavailable services cannot be purchased. All examples are synthetic, not live prices, credentials or fulfillment evidence. After an ambiguous checkout result, read existing orders before continuing; never blindly retry a payment or create a replacement order."},"servers":[{"url":"https://postedly.com"}],"components":{"securitySchemes":{"sessionBearer":{"type":"http","scheme":"bearer","description":"Secure guest-session token or OAuth 2.1 access token. Agents should reuse the approved OAuth connection; document upload and preview require quotes:write. Tokens belong in Authorization headers, never chat, query strings or logs."}},"schemas":{"Service":{"type":"string","enum":["fax","letter","certified","postcard","handwritten"],"description":"Services accepted by the document/card quote APIs."},"CatalogService":{"type":"object","required":["id","name","available","startingPriceCents","priceType"],"properties":{"id":{"type":"string","enum":["fax","letter","certified","postcard","handwritten","object"],"description":"Document/card Service values use /api/quotes. The object beta uses its manual quoteUrl."},"name":{"type":"string"},"description":{"type":"string"},"provider":{"type":["string","null"],"description":"Null for a manual beta without an automated fulfillment provider."},"requiresDocument":{"type":"boolean"},"available":{"type":"boolean","description":"Whether automated preparation and ordering are available, subject to the required human approval. A manual beta can be requested through quoteUrl while this is false."},"unavailableReason":{"type":["string","null"]},"startingPriceCents":{"type":["integer","null"],"description":"USD price before applicable tax. Only advertise for available automated services; custom manual quotes have no starting price."},"priceType":{"type":["string","null"],"enum":["fixed","from","custom",null],"description":"fixed means one service price for eligible orders. from means a variable starting price. custom requires a personal quote before payment. Standard handwritten-card fixed pricing includes US postage."},"beta":{"type":"boolean"},"quoteMode":{"type":"string","enum":["manual"],"description":"Manual entries do not support API uploads, quotes, checkout or orders."},"quoteUrl":{"type":"string","format":"uri-reference","description":"Resolve against the API origin to open the manual beta quote request."},"acceptedModelFormats":{"type":"array","items":{"type":"string","enum":["stl","3mf"]},"description":"File formats reviewed through the manual request, not accepted by POST /api/documents."},"documentRequirements":{"type":"object"},"previewImageUrl":{"type":"string","format":"uri","description":"Offered services only: an absolute URL of a public illustration of the option."},"priceLabel":{"type":["string","null"],"description":"Offered services only: the display price before tax, such as $4.99 or $9.99 mailed. Null while the service is unavailable or has no configured price; never an estimate."},"includes":{"type":["string","null"],"description":"Offered services only: one sentence on what the price covers."},"chooseUrl":{"type":"string","format":"uri","description":"Offered services only: website link that starts this option, /send?service=<id>."}}},"LineItem":{"type":"object","required":["label","amountCents"],"properties":{"label":{"type":"string"},"amountCents":{"type":"integer","minimum":0,"description":"Amount in integer US cents; never a floating-point dollar amount."}}},"AddressWarning":{"type":"object","required":["role","code","message","address"],"description":"Immutable warning for one explicitly selected send-as-entered postal address. The browser review must obtain separate address-risk acceptance before payment.","properties":{"role":{"type":"string","enum":["recipient","sender"]},"code":{"type":"string","enum":["address_unit_required","address_unverified"]},"message":{"type":"string"},"address":{"$ref":"#/components/schemas/Contact"}}},"Quote":{"type":"object","required":["id","service","amountCents","currency","lineItems","expiresAt","estimatedDelivery","summary","recipient","sender","options"],"description":"Immutable quote, normally valid for 20 minutes. The document is the final proof (including any fax cover or mail layout), which may differ from the uploaded file. Review this proof and the normalized contact/options snapshot. No approval, order or payment is created. Omitted optional properties are not null.","properties":{"id":{"type":"string","format":"uuid","description":"Use as quoteId for the review link or explicitly approved checkout."},"service":{"$ref":"#/components/schemas/Service"},"amountCents":{"type":"integer","minimum":0,"description":"Amount in integer US cents; never a floating-point dollar amount."},"underReview":{"type":"boolean","description":"Present and true when the quote is paused for a routine review before payment. It cannot be approved until released; nothing is charged."},"reviewMessage":{"type":"string","description":"Calm wording to show the person when underReview is true."},"currency":{"type":"string","const":"USD"},"lineItems":{"type":"array","items":{"$ref":"#/components/schemas/LineItem"}},"expiresAt":{"type":"string","format":"date-time"},"estimatedDelivery":{"type":"string","description":"Provider estimate, not guaranteed arrival."},"summary":{"type":"string"},"document":{"$ref":"#/components/schemas/Document"},"recipient":{"$ref":"#/components/schemas/Contact"},"sender":{"$ref":"#/components/schemas/Contact"},"options":{"type":"object","additionalProperties":true,"description":"Saved, provider-validated options for this quote."},"handwritten":{"$ref":"#/components/schemas/HandwrittenReview"},"addressWarnings":{"type":"array","items":{"$ref":"#/components/schemas/AddressWarning"}}}},"Checkout":{"type":"object","required":["url","orderId"],"description":"An approved order and hosted Stripe payment URL. Receiving this response is not payment or fulfillment confirmation. REST POST /api/checkout normally records approval and creates/reuses an order, but quotes with addressWarnings return a ReviewLink until the human accepts the risk on the scoped browser review page.","properties":{"url":{"type":"string","format":"uri","description":"Private hosted Stripe Checkout URL. Let the user enter payment details there, never in chat."},"orderId":{"type":"string","format":"uuid","description":"Retain for GET /api/orders/{id} even if the browser closes or payment is interrupted."}}},"ReviewLink":{"type":"object","required":["url","requiresBrowserApproval","expiresAt","instructions"],"description":"Returned by the MCP postedly_checkout tool and by REST checkout for quotes requiring address-risk review. Creates a private review link without recording approval, creating an order, charging or sending.","properties":{"checkoutReference":{"type":"string"},"quoteId":{"type":"string"},"statusTool":{"type":"string","const":"postedly_checkout_status"},"url":{"type":"string","format":"uri","description":"Secret capability URL. Share only with the intended human payer; do not log it or make it public. The browser verifies the receipt email and grants that account access only to this order."},"requiresBrowserApproval":{"const":true},"expiresAt":{"type":"string","format":"date-time"},"instructions":{"type":"string"}}},"PaymentStatus":{"type":"string","enum":["checkout_pending","authorized","paid","failed","cancelled","refund_pending","refunded"],"description":"Separate from fulfillment. authorized is a hold, used for fax before capture following confirmed transmission. paid does not mean sent or delivered. refund_pending is not a completed refund."},"FulfillmentStatus":{"type":"string","enum":["awaiting_payment","queued","submitting","submission_unknown","submitted","processing","sent","delivered","failed","cancelled"],"description":"Recorded provider progression. submission_unknown requires reconciliation, never a blind resend. Fax delivered means all approved pages were confirmed by the receiving machine, not that a person read them. Postal statuses reflect available provider milestones."},"OrderDocument":{"type":"object","required":["id","name","pages","bytes","sha256"],"description":"Stored order document metadata; this response does not include a preview URL or contentType. Mail orders may refer to the source document, while the quote contains its final print proof.","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"pages":{"type":"integer","minimum":1},"bytes":{"type":"integer","minimum":1},"sha256":{"$ref":"#/components/schemas/Sha256"}}},"OrderEvent":{"type":"object","required":["id","type","message","createdAt"],"properties":{"id":{"type":"string","description":"Opaque event identifier, not necessarily a UUID."},"type":{"type":"string","description":"Extensible event type; do not treat it as a payment/fulfillment enum."},"message":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"Order":{"type":"object","required":["id","service","amountCents","refundedCents","currency","paymentStatus","fulfillmentStatus","createdAt","updatedAt","recipient","sender","options","timeline","canCancel"],"properties":{"id":{"type":"string","format":"uuid"},"orderUrl":{"type":"string","format":"uri","description":"Order page requiring existing access or receipt-email recovery."},"service":{"type":"string","description":"Recorded service; historical orders can retain a service no longer offered."},"amountCents":{"type":"integer","minimum":0,"description":"Amount in integer US cents; never a floating-point dollar amount."},"refundedCents":{"type":"integer","minimum":0,"description":"Amount in integer US cents; never a floating-point dollar amount."},"currency":{"type":"string","const":"usd","description":"Order storage uses lowercase usd; quote responses use uppercase USD."},"paymentStatus":{"$ref":"#/components/schemas/PaymentStatus"},"fulfillmentStatus":{"$ref":"#/components/schemas/FulfillmentStatus"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"recipient":{"$ref":"#/components/schemas/Contact"},"sender":{"$ref":"#/components/schemas/Contact"},"receiptEmail":{"type":"string","format":"email","description":"The immutable receipt destination; distinct from the quoted postal sender. Private Postedly order emails remain withheld for guest checkouts until this address is verified; Stripe email prefill does not establish ownership."},"receiptEmailVerified":{"type":"boolean","description":"Whether the receipt destination has been verified; false suppresses private order email."},"guestCheckout":{"type":"boolean","description":"Whether this order was approved through the direct-browser guest flow."},"options":{"type":"object","additionalProperties":true},"handwritten":{"$ref":"#/components/schemas/HandwrittenReview"},"addressWarnings":{"type":"array","items":{"$ref":"#/components/schemas/AddressWarning"}},"document":{"$ref":"#/components/schemas/OrderDocument"},"checkoutUrl":{"type":["string","null"],"format":"uri","description":"Present only while the order awaits payment with paymentStatus checkout_pending, or failed after a declined card, and its hosted checkout is still open (60 minutes from approval); absent once that checkout expires or the order is cancelled. May be null only with checkout_pending, while checkout creation has not completed; a declined order with no hosted checkout (a shared payment token attempt) has none. Private URL, not payment evidence."},"timeline":{"type":"array","maxItems":200,"items":{"$ref":"#/components/schemas/OrderEvent"},"description":"Up to 200 earliest events, in ascending timestamp order."},"canCancel":{"type":"boolean","description":"True for awaiting_payment or queued. Advisory snapshot; a cancellation race may still return 409."},"evidence":{"type":"object","additionalProperties":true,"description":"Optional provider-specific evidence. Fields vary by channel; do not assume a tracking number or proof of a recipient reading the item."}}},"OrderList":{"type":"object","required":["orders"],"properties":{"orders":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/Order"},"description":"HTTP returns up to 100 newest orders. MCP postedly_orders returns up to 50."}}},"DocumentService":{"type":"string","enum":["fax","letter","certified","postcard"]},"Sha256":{"type":"string","pattern":"^[A-Fa-f0-9]{64}$","description":"SHA-256 of the exact raw file bytes, as 64 hexadecimal characters."},"Document":{"type":"object","required":["id","name","pages","bytes","sha256","contentType","previewUrl"],"properties":{"id":{"type":"string","format":"uuid","description":"Use this value as documentId in a quote; the person does not need to copy it."},"name":{"type":"string","maxLength":180},"pages":{"type":"integer","minimum":1,"description":"Inspected page count; images count as one. Upload PDFs allow up to 50 pages; service-specific quote limits can be lower."},"bytes":{"type":"integer","minimum":1,"maximum":10485760},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Server-computed SHA-256 of the stored raw file bytes."},"contentType":{"type":"string","enum":["application/pdf","image/jpeg","image/png"],"description":"Detected media type, not a trusted client declaration."},"previewUrl":{"type":"string","format":"uri-reference","description":"Private preview. Standard document URLs require the same owner’s bearer token; capability-scoped handoff URLs require their unexpired ticket. Resolve relative URLs against this API origin. Never make the file public to show a preview."},"coverPage":{"type":"string","enum":["mail-address","fax-cover"],"description":"An added first page in the final proof. Content pages follow it; an ordinary upload or postcard has no added cover label."}}},"DocumentHandoff":{"type":"object","required":["documentRequestId","service","status","expiresAt"],"properties":{"documentRequestId":{"type":"string","format":"uuid"},"service":{"type":"string","description":"Original target service. An existing upload request can retain a service no longer offered; no new upload is accepted for a withdrawn service."},"filename":{"type":["string","null"]},"status":{"type":"string","enum":["awaiting_upload","uploading","complete","expired"]},"expiresAt":{"type":"string","format":"date-time"},"document":{"$ref":"#/components/schemas/Document"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","properties":{"addressRole":{"type":"string","enum":["recipient","sender"]},"canSendAsEntered":{"type":"boolean","description":"Offer an explicit choice only when true, and only for addressRole. Never invent another address."}}}}}}},"QuoteRequest":{"type":"object","required":["service","recipient","sender"],"description":"Handwritten cards use an exact catalog card, handwriting style, message and optional closing, with complete US sender and recipient addresses. No PDF upload is required. Catalog character limits apply to the exact raw text.","allOf":[{"if":{"properties":{"service":{"const":"handwritten"}},"required":["service"]},"then":{"required":["options"],"properties":{"options":{"type":"object","required":["productId","fontLabel","message"],"additionalProperties":false,"properties":{"promoCode":{"type":"string","maxLength":40,"description":"Optional discount code. HOLIDAY takes $1 off an eligible holiday handwritten card or composed holiday postcard before tax through December 31, 2026 Pacific time."},"productId":{"type":"string","pattern":"^[1-9]\\d{0,14}$"},"fontLabel":{"type":"string","minLength":1,"maxLength":100},"message":{"type":"string","minLength":1,"maxLength":1000,"pattern":"\\S"},"wishes":{"type":"string","maxLength":200,"default":""},"quantity":{"type":"integer","const":1}},"description":"The selected card’s catalog limits are authoritative. Raw message.length plus wishes.length must fit combinedCharacterLimit, never above 1000. Plain text only; signature codes, QR codes and template substitutions are not supported."},"sender":{"type":"object","required":["name","address1","city","state","postalCode","country"],"properties":{"country":{"const":"US"}},"description":"When email is omitted, the connected account’s verified email is used; unverified sessions must supply it."},"recipient":{"type":"object","required":["name","address1","city","state","postalCode","country"],"properties":{"country":{"const":"US"}}}}},"else":{"properties":{"options":{"properties":{"message":{"type":"string","maxLength":500}}}}}}],"properties":{"service":{"type":"string","enum":["fax","letter","certified","postcard","handwritten"]},"documentId":{"type":"string","format":"uuid","description":"The id returned by an upload owned by this same session/OAuth connection. Required for document channels; handwritten cards do not require an upload."},"recipient":{"$ref":"#/components/schemas/Contact"},"sender":{"allOf":[{"$ref":"#/components/schemas/Contact"}],"description":"Omit email to reuse the current connected account’s verified email. An unverified session must supply email and complete verification before checkout. Explicit values are never overwritten. Sender name and service-specific return/billing address remain required."},"options":{"type":"object","additionalProperties":true,"properties":{"promoCode":{"type":"string","maxLength":40,"description":"Optional discount code. HOLIDAY takes $1 off an eligible holiday handwritten card or composed holiday postcard before tax through December 31, 2026 Pacific time."},"sendAsEntered":{"type":"object","additionalProperties":false,"properties":{"recipient":{"type":"boolean"},"sender":{"type":"boolean"}},"description":"PostGrid postal mail only. Requests an exact-address quote for an address that failed live verification, set separately for each role. Does not grant approval; the delivery risk shown in addressWarnings is accepted only on the secure approval page before payment."},"productId":{"type":"string","description":"Exact product id returned by the current product catalog."},"fontLabel":{"type":"string","minLength":1,"maxLength":100,"description":"Handwritten cards only. Exact label from the selected card’s options.handwritingStyles; a style ID is not a substitute for this label."},"wishes":{"type":"string","maxLength":200,"default":"","description":"Handwritten cards only. Exact optional closing. Raw message.length + wishes.length must not exceed the card’s options.combinedCharacterLimit; no separator is added to this count."},"quantity":{"type":"integer","const":1,"description":"One selected item per order."},"message":{"type":"string","maxLength":1000,"description":"Exact personal message. Handwritten cards require nonempty text, at most options.maxMessageLength (never above 1000), with message plus wishes within options.combinedCharacterLimit."}}}}},"Contact":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"fax":{"type":"string"},"phone":{"type":"string"},"address1":{"type":"string"},"address2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string","default":"US"}}},"HandwritingStyle":{"type":"object","required":["id","label","imageUrl"],"properties":{"id":{"type":"string","description":"Provider style identifier; quote input uses the exact label instead."},"label":{"type":"string"},"imageUrl":{"type":"string","format":"uri","pattern":"^https://","description":"Handwriting-style sample, not a rendering of the submitted message."}}},"HandwrittenProductOptions":{"type":"object","required":["handwritingStyles","maxMessageLength","maxWishesLength","combinedCharacterLimit"],"properties":{"handwritingStyles":{"type":"array","items":{"$ref":"#/components/schemas/HandwritingStyle"}},"maxMessageLength":{"type":"integer","minimum":1,"maximum":1000},"maxWishesLength":{"type":"integer","minimum":0,"maximum":200},"combinedCharacterLimit":{"type":"integer","minimum":1,"maximum":1000,"description":"Maximum raw message.length plus wishes.length, without trimming or an added separator."}}},"HandwrittenReview":{"type":"object","required":["cardId","cardName","cardImageUrl","fontId","fontLabel","fontImageUrl","message","wishes","sender","recipient","previewKind","stampOptionId","stampName"],"description":"Immutable quoted card, handwriting style, exact text, postal addresses and postage option. Images are design/style samples, not a rendered final-message proof.","properties":{"cardId":{"type":"string","pattern":"^[1-9]\\d{0,14}$"},"cardName":{"type":"string"},"cardImageUrl":{"type":"string","format":"uri","pattern":"^https://"},"fontId":{"type":"string"},"fontLabel":{"type":"string"},"fontImageUrl":{"type":"string","format":"uri","pattern":"^https://"},"message":{"type":"string","minLength":1,"maxLength":1000},"wishes":{"type":"string","maxLength":200},"sender":{"$ref":"#/components/schemas/Contact"},"recipient":{"$ref":"#/components/schemas/Contact"},"previewKind":{"type":"string","const":"design_and_style_samples"},"stampOptionId":{"type":"integer"},"stampName":{"type":"string"}}}}},"paths":{"/api/catalog":{"get":{"summary":"Current channel availability and manual beta requests","operationId":"listServices","security":[],"responses":{"200":{"description":"Service list with fixed, variable or custom pricing. Unavailable automated services cannot be purchased. A beta with quoteMode manual can be requested through quoteUrl and does not support API quotes or checkout.","content":{"application/json":{"schema":{"type":"object","required":["services"],"properties":{"services":{"type":"array","items":{"$ref":"#/components/schemas/CatalogService"}}}}}}}}}},"/mcp/catalog":{"post":{"summary":"Public MCP endpoint: list services and price one send, no sign-in","operationId":"callCatalogMcp","security":[],"description":"MCP Streamable HTTP, JSON-RPC 2.0 over POST. Tools postedly_list_services and postedly_price_order are read-only, need no credential, accept no documents or personal data, and create no quote or order. Rate limited per client IP address (429 with Retry-After). The authenticated endpoints are /mcp/send and /mcp/correspondence.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":"integer"},"method":{"type":"string","enum":["initialize","tools/list","tools/call","server/discover","ping"]},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC result."},"429":{"description":"Too many requests from this address."}}}},"/api/session":{"post":{"summary":"Create a scoped guest session","operationId":"createGuestSession","security":[],"description":"For clients without an OAuth connection. Do not replace an existing approved OAuth connection with a new guest session.","responses":{"200":{"description":"Session token; keep secret"}}},"get":{"summary":"Current session verification status","security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Successful response"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource not found or belongs to another owner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"State conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"getSession"}},"/api/products":{"get":{"summary":"Curated provider products","security":[],"responses":{"200":{"description":"Product catalog; handwritten item options follow HandwrittenProductOptions.","content":{"application/json":{"schema":{"type":"object","required":["products"],"properties":{"products":{"type":"array","items":{"type":"object","allOf":[{"if":{"properties":{"service":{"const":"handwritten"}},"required":["service"]},"then":{"properties":{"options":{"$ref":"#/components/schemas/HandwrittenProductOptions"}}}}]}}}}}}},"400":{"description":"Unsupported product service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Product catalog unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"listProducts","description":"Read-only product discovery can remain available while ordering is closed. A purchase requires both the service and product to be available. Every product has imageUrl, priceCents and priceLabel (null unless the service is open), includes and chooseUrl (/send?service=<service>&product=<id>). Handwritten products use numeric string IDs and expose card images plus handwriting style samples and character limits. Postcard products are ready-made designs: kind design or photo_frame, requiresPhoto, options.photoSlot and options.minPhotoPixels for frames, and message limits. A design is composed into a postcard document with POST /api/postcards/compose, then quoted like any postcard.","parameters":[{"name":"service","in":"query","required":true,"schema":{"type":"string","enum":["handwritten","postcard"]}}]}},"/api/documents":{"post":{"summary":"Upload a file directly from an agent or application","operationId":"uploadDocument","security":[{"sessionBearer":[]}],"description":"Preferred for an agent that has file bytes and authenticated HTTP access. Reuse its existing OAuth bearer token with quotes:write, send multipart fields file, service (optional; defaults to fax) and optional expectedSha256. Return HTTP 201 with a Document object directly: its id is the quote documentId. Validate the returned hash against the source. There is no user download/re-upload step and no arbitrary URL import. Stored upload acceptance does not guarantee a selected product or service can quote the file; quote preflight applies exact product dimensions/page limits and generates the final proof for approval. Uploading neither charges nor sends.","x-required-oauth-scopes":["quotes:write"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"Actual bytes of the intended recipient-facing document, from 1 byte through 10 MiB (10,485,760 bytes). Finish requested letter content before uploading; never substitute a sample, placeholder or instructions to write the letter. Intentional forms and test documents are valid when requested. Not a URL, data URL, base64 string, or local path. Format is inspected from the bytes. Fax, letter and certified require valid unencrypted PDF. Postcard takes the two-page postcard PDF, or a JPEG or PNG image that is only used to compose a postcard with POST /api/postcards/compose. Format and checksum validation do not establish content correctness.","x-maxFileBytes":10485760},"service":{"$ref":"#/components/schemas/DocumentService","default":"fax","description":"Choose the intended service explicitly. Omission preserves the fax default."},"expectedSha256":{"$ref":"#/components/schemas/Sha256","description":"Optional source checksum. A mismatch is rejected before storage."}}},"encoding":{"file":{"contentType":"application/pdf"}}}}},"responses":{"201":{"description":"Validated document saved privately for the authenticated owner. This is the Document object itself, not an envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"Invalid service, missing file, invalid SHA-256, hash mismatch, invalid or encrypted PDF, unsupported format, or document limits exceeded. No document is saved when validation fails.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Valid session or OAuth bearer token required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"OAuth token requires quotes:write","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds the bounded upload envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Upload rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Upload could not be stored","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/documents/{id}":{"get":{"summary":"Read the authenticated owner’s private document","security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Raw private file bytes, not JSON. Authorization is required; URL possession alone is insufficient.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Document not found or belongs to another owner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Document is no longer retained","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"operationId":"getDocument","x-required-oauth-scopes":["quotes:write"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/api/document-handoffs/{ticket}":{"parameters":[{"name":"ticket","in":"path","required":true,"schema":{"type":"string"},"description":"Secret, owner-bound capability returned by postedly_prepare_document; 15-minute lifetime. Do not log or expose it beyond the intended upload."}],"get":{"summary":"Read a prepared upload handoff","operationId":"getDocumentHandoff","security":[],"responses":{"200":{"description":"Handoff state; document is present after completion.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentHandoff"}}}},"404":{"description":"Invalid ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Expired ticket","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Upload bytes to a prepared single-use handoff","operationId":"uploadPreparedDocument","security":[],"description":"Use the exact uploadEndpoint returned by postedly_prepare_document. The ticket authorizes one successful file upload for its connected owner and fixed service; no separate bearer token or guest session is needed. Only file is supplied. Prefer authenticated POST /api/documents when the agent already has file bytes and authenticated HTTP access. This route enables runtime upload with a prepared ticket; the returned browser uploadUrl is a fallback when the agent cannot access the bytes. No arbitrary URL import.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"Actual bytes of the intended recipient-facing document, from 1 byte through 10 MiB (10,485,760 bytes). Finish requested letter content before uploading; never substitute a sample, placeholder or instructions to write the letter. Intentional forms and test documents are valid when requested. Not a URL, data URL, base

# --- truncated at 32 KB (52 KB total) ---
# Full source: https://artifacts.apis.io/postedly-com/openapi/_original/postedly-com-api-openapi.json