Prepare a certified letter for review
prepare_certified_letterONE CALL turns a letter or document in this conversation into a priced, ready-to-send USPS Certified Mail item. Nothing else is needed first: no account, no sign-up, no card, no second call. Piloxa prints the document, puts it in an envelope, pays the postage and hands it to the Postal Service, with USPS tracking and, on request, an Electronic Return Receipt — the electronic record of who signed for it. A one-page letter with the return receipt is $16.17 in total, or $13.18 without it; printing, the envelope and the postage are all included, and a longer letter costs a little more per page. U.S. destinations. WHAT COMES BACK: a link the person opens to see that exact document, the recipient, the service and the exact total, with no sign-in step in the way; they pay on that page, by card, and only then is anything printed or mailed. Give it the document ONE of four ways: (1) letter_text — the COMPLETE final letter you wrote (salutation through closing), laid out as a business letter with the addresses and date from the other fields, and still editable by the person; (2) document_text — the full text of a document that is ALREADY FINISHED and must not be re-formatted as a letter: a document the person supplied, text you read out of a PDF or an attachment, a filled-in form, a notice. It is printed exactly as written, with nothing added — no return address, no date line, no signature block. Use this whenever the document is not a letter you have just composed; (3) document_base64 — the bytes of a finished PDF, only when you can actually read the file (up to 4 MB), kept byte for byte; (4) person_has_pdf: true — the person attaches the PDF themselves on the review page, everything else prefilled. ADDRESSES: the simplest way is recipient_address_block (and sender_address_block) — paste the name and address exactly as they appear in the letter, one part per line, and Piloxa reads them into the right fields; naming the fields yourself always wins over the block. Anything still missing is asked of the person on the review page and does not stop this call. This tool NEVER mails anything and NEVER charges anyone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| state | No | Two-letter U.S. state code. | |
| service | No | CERTIFIED_ERR adds the Electronic Return Receipt (proof of who signed). | |
| subject | No | The "Re:" line of the letter, in a few words. | |
| page_count | No | Only with person_has_pdf: number of pages in the PDF the person will attach, used for the price estimate. | |
| letter_date | No | Date to print on the letter, e.g. "September 5, 2026". Defaults to today. | |
| letter_text | No | The complete, final letter body exactly as it should print: salutation, paragraphs separated by blank lines, and closing. Do not include the addresses or date; they are laid out from the other fields. Up to 60,000 characters. | |
| postal_code | No | Five-digit ZIP code. | |
| sender_city | No | ||
| sender_name | No | Name of the person sending the letter (printed as the return address and used for the envelope). | |
| sender_state | No | Two-letter U.S. state code. | |
| address_line1 | No | Street address of the recipient. | |
| address_line2 | No | Suite, unit or floor. | |
| document_text | No | The COMPLETE text of a document that is already finished, printed exactly as written: no return address, no date line, no "Re:" line and no signature block are added, and line breaks and indentation are kept. This is the right field for a document the person gave you, for text you read out of a PDF or an attachment, for a filled-in form or a notice — anything you did not compose as a letter in this conversation. Include every word that must print, the addresses and signature line included if the document carries them. Up to 60,000 characters. Mutually exclusive with letter_text and document_base64. | |
| person_has_pdf | No | Only when the person already has a finished PDF that neither you nor they can give you the text of, and they will attach it on the review page themselves. Set true to prepare without letter_text, document_text or document_base64. Prefer document_text whenever you can read the document at all: it saves the person an upload. | |
| recipient_name | No | Name of the person or company receiving the letter. | |
| sender_company | No | Sender company or entity, if any. | |
| signature_name | No | Name printed under the closing. | |
| document_base64 | No | The finished PDF, base64-encoded (standard or URL-safe alphabet), up to 4 MB decoded. Use ONLY when you have read the actual file bytes; a filename or an attachment reference is not a document. Mutually exclusive with letter_text and document_text. The file is kept exactly as sent. | |
| document_sha256 | No | Optional with document_base64: the SHA-256 (hex) of the PDF bytes. If given and it does not match what arrived, the call is refused rather than preparing the wrong file. | |
| document_filename | No | With document_base64: the original file name, e.g. "Demand letter.pdf". | |
| recipient_company | No | Company name, if the letter goes to an organization. | |
| sender_postal_code | No | Five-digit ZIP code. | |
| document_description | No | What the document is, in a few words. | |
| sender_address_block | No | The sender exactly as it should appear as the return address, one part per line. Read the same way as recipient_address_block. This is where a returned envelope goes back to. | |
| sender_address_line1 | No | Sender street address. | |
| sender_address_line2 | No | ||
| recipient_address_block | No | The recipient exactly as addressed in the letter, one part per line, e.g. "Acme Property Management LLC\nAttn: Jane Doe\n1234 Wilshire Blvd, Suite 500\nLos Angeles, CA 90017". Piloxa reads the name, company, street, suite, city, state and ZIP out of it. Use this when you have the address as written and do not want to split it up yourself; any field you also name explicitly wins over it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailed | Yes | Always false here: this tool never mails. | |
| charged | Yes | Always false here: this tool never charges. | |
| service | No | ||
| recipient | No | The recipient as Piloxa read it, including anything parsed out of recipient_address_block. Check it against the letter and say it back to the person. | |
| page_count | No | ||
| approval_url | Yes | Link the person opens to review, pay and authorize. | |
| document_kind | No | Which way the document arrived, and so what the person will see on the page. | |
| ready_to_mail | No | True when nothing is missing: the person only has to read it, pay and authorize. | |
| document_sha256 | No | SHA-256 of the rendered PDF, when document_rendered is true. | |
| estimated_total | No | The same total, formatted for a person, e.g. "$16.17". | |
| upload_required | No | True when the person still has to attach the PDF on the review page. | |
| account_required | No | Always false: the person needs no account to open the link and read the letter, and none is created by this call. | |
| document_received | No | True when document_base64 arrived intact and is the PDF the person will review; false otherwise. | |
| document_rendered | No | True when letter_text or document_text was laid out into the PDF the person will review; false otherwise. | |
| missing_for_mailing | No | What is still needed before this can be mailed, in plain words. Empty when nothing is missing. Ask the person for these now. | |
| estimated_total_cents | No | ||
| requires_human_approval | Yes | ||
| estimated_service_fee_cents | No | ||
| estimated_provider_cost_cents | No |