{"agentId":"mailer-agent-v1","version":"1.2.0","supportedJobTypes":["mailer"],"supportedPaymentTokens":["USDC"],"payment":{"quoteCurrency":"USDC","supportedNetworks":["eip155:8453"],"supportedTokens":[{"symbol":"USDC","network":"eip155:8453","contractAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}]},"auth":{"methods":[{"name":"wallet_session","challengePath":"/api/public/auth/wallet/challenge","verifyPath":"/api/public/auth/wallet/verify","sessionPath":"/api/public/auth/session","supportedScopes":["wallet"]},{"name":"bearer_bot_token","issuePath":"/api/public/auth/bot/token","revokePath":"/api/public/auth/bot/revoke","rotatePath":"/api/public/auth/bot/rotate","supportedScopes":["jobs:read","jobs:write"]}]},"idempotency":{"requiredHeader":"Idempotency-Key","retrySafePaths":["/api/public/jobs/quote","/api/public/jobs/{jobId}/accept-quote"]},"workflowContracts":{"quote":{"requestPath":"/api/public/jobs/quote","method":"POST","successStatus":201,"requestBody":{"requiredFields":["jobType","deadline","maxBudget","paymentToken","requiredCapabilities","payload"],"payloadFormat":"JSON string containing a MailerPayload object","canonicalAddressFields":["name","address_line_1","address_line_2","city","state","zip"],"requiredRecipientAddressFields":["address_line_1","city","state","zip"],"requiredReturnAddressFields":["address_line_1","city","state","zip"],"optionalAddressFields":["name","address_line_2","country"],"acceptedAliases":{"address_line1":"address_line_1","postal_code":"zip"},"normalization":"Accepted aliases are normalized to canonical field names before storage and fulfillment.","examplePayload":"{\"mail_type\":\"letter\",\"quantity\":1,\"recipients\":[{\"name\":\"Jane Doe\",\"address_line_1\":\"123 Main St\",\"city\":\"Austin\",\"state\":\"TX\",\"zip\":\"78701\"}],\"content\":{\"body_text\":\"Please send this letter.\"},\"return_address\":{\"name\":\"Ops Inc\",\"address_line_1\":\"456 HQ Ave\",\"city\":\"Austin\",\"state\":\"TX\",\"zip\":\"78702\"}}","aliasExamplePayload":"{\"mail_type\":\"letter\",\"quantity\":1,\"recipients\":[{\"name\":\"Jane Doe\",\"address_line1\":\"123 Main St\",\"city\":\"Austin\",\"state\":\"TX\",\"postal_code\":\"78701\"}],\"content\":{\"body_text\":\"Please send this letter.\"},\"return_address\":{\"address_line1\":\"456 HQ Ave\",\"city\":\"Austin\",\"state\":\"TX\",\"postal_code\":\"78702\"}}","errorExample":"{\"error\":\"validation_failure\",\"details\":[\"Payload.recipients[0].zip is required.\"]}"}},"acceptQuote":{"requestPathTemplate":"/api/public/jobs/{jobId}/accept-quote","method":"POST","successStatus":200,"paymentRequiredStatus":402,"paymentRequirementHeader":"X-Payment","requestBody":{"requiredFields":["acceptTerms","paymentTransactionHash"],"optionalFields":["termsVersion","authorizedAmount","paymentRequirementExpiresAt"],"paymentProofField":"paymentTransactionHash","paymentProofAliases":["transactionHash"]}},"status":{"requestPathTemplate":"/api/public/jobs/{jobId}/status","method":"GET","successStatus":200,"includesReasonCode":true}},"lifecycle":{"states":["draft","posted","bidding","awarded","in_progress","submitted","approved","paid","disputed","cancelled"],"terminalStates":["paid","cancelled"],"statusReasonCodes":["awaiting_quote_acceptance","awaiting_escrow","awaiting_fulfillment","fulfillment_in_progress","fulfillment_retry_pending","fulfillment_requires_review","fulfillment_dispatched","awaiting_settlement","settlement_retry_pending","settlement_requires_review","dispute_open","completed","job_cancelled","recovery_funds_returning","recovery_requires_review","recovery_completed"],"statusReasonCodeDetails":[{"code":"awaiting_quote_acceptance","category":"client_action_required","terminal":false,"recommendedPollSeconds":null,"nextAction":"accept_quote","description":"A quote is open. Send USDC to the manifest recipient wallet and call accept-quote with the transaction hash."},{"code":"awaiting_escrow","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":15,"nextAction":"poll_status","description":"Payment was accepted and the escrow contract is being deployed and funded automatically."},{"code":"awaiting_fulfillment","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":30,"nextAction":"poll_status","description":"Escrow is funded and the fulfillment agent is picking the job up."},{"code":"fulfillment_in_progress","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":30,"nextAction":"poll_status","description":"The fulfillment agent is preparing and dispatching the mail piece to the print vendor."},{"code":"fulfillment_retry_pending","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":60,"nextAction":"poll_status","description":"A fulfillment step failed transiently and an automatic retry is scheduled. No client action is required."},{"code":"fulfillment_requires_review","category":"support_intervention_required","terminal":false,"recommendedPollSeconds":300,"nextAction":"contact_support","description":"Automatic fulfillment retries are exhausted or the failure is not retryable. Escrow is still funded and a human review is required."},{"code":"fulfillment_dispatched","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":30,"nextAction":"poll_status","description":"The vendor accepted the mail piece and completion evidence is recorded. Settlement runs automatically; no approval step is required."},{"code":"awaiting_settlement","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":30,"nextAction":"poll_status","description":"Completion evidence is verified and the escrow release transaction is being submitted automatically."},{"code":"settlement_retry_pending","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":60,"nextAction":"poll_status","description":"An escrow release attempt failed transiently and will be retried automatically. The mail piece is already dispatched."},{"code":"settlement_requires_review","category":"support_intervention_required","terminal":false,"recommendedPollSeconds":300,"nextAction":"contact_support","description":"Automated settlement is blocked or its retries are exhausted. The mail piece may already be dispatched; a human review is required."},{"code":"dispute_open","category":"support_intervention_required","terminal":false,"recommendedPollSeconds":300,"nextAction":"contact_support","description":"The job is under dispute. Settlement is on hold until the dispute is resolved."},{"code":"completed","category":"terminal","terminal":true,"recommendedPollSeconds":null,"nextAction":"none","description":"The mail piece was dispatched and escrow was released. Stop polling."},{"code":"job_cancelled","category":"terminal","terminal":true,"recommendedPollSeconds":null,"nextAction":"none","description":"The job was cancelled before completion. Any funded escrow is refunded to the payer. Stop polling."},{"code":"recovery_funds_returning","category":"pending_automated_progress","terminal":false,"recommendedPollSeconds":30,"nextAction":"poll_status","description":"An autonomous client-initiated refund was accepted. Escrow refund and forwarding to the client's wallet are processing automatically."},{"code":"recovery_requires_review","category":"support_intervention_required","terminal":false,"recommendedPollSeconds":300,"nextAction":"contact_support","description":"An autonomous client recovery step failed and its retries are exhausted. A human review is required to complete the refund."},{"code":"recovery_completed","category":"terminal","terminal":true,"recommendedPollSeconds":null,"nextAction":"none","description":"The job was cancelled and the escrowed funds were autonomously returned to the client's own wallet. Stop polling."}],"automation":{"operatorApprovalRequired":false,"note":"After payment is accepted, dispatch and escrow settlement run unattended. Poll status until terminal is true; only support_intervention_required codes need human contact."}},"callbacks":{"registrationPath":"/api/public/agent-callbacks/register","listPath":"/api/public/agent-callbacks/registrations","auditPath":"/api/public/agent-callbacks/audit","defaultEventType":"job.status.changed"},"receipts":{"verificationPath":"/api/public/receipts/verify","signedEvents":["quote_accepted","dispatch_completion_submitted","recovery_requested","recovery_completed","job.status.changed"]},"manifestPath":"/api/public/agent-manifest","mailerPayloadSchema":{"requiredFields":["jobType","deadline","maxBudget","paymentToken","requiredCapabilities","payload"],"payloadFormat":"JSON string containing a MailerPayload object","canonicalAddressFields":["name","address_line_1","address_line_2","city","state","zip"],"requiredRecipientAddressFields":["address_line_1","city","state","zip"],"requiredReturnAddressFields":["address_line_1","city","state","zip"],"optionalAddressFields":["name","address_line_2","country"],"acceptedAliases":{"address_line1":"address_line_1","postal_code":"zip"},"normalization":"Accepted aliases are normalized to canonical field names before storage and fulfillment.","examplePayload":"{\"mail_type\":\"letter\",\"quantity\":1,\"recipients\":[{\"name\":\"Jane Doe\",\"address_line_1\":\"123 Main St\",\"city\":\"Austin\",\"state\":\"TX\",\"zip\":\"78701\"}],\"content\":{\"body_text\":\"Please send this letter.\"},\"return_address\":{\"name\":\"Ops Inc\",\"address_line_1\":\"456 HQ Ave\",\"city\":\"Austin\",\"state\":\"TX\",\"zip\":\"78702\"}}","aliasExamplePayload":"{\"mail_type\":\"letter\",\"quantity\":1,\"recipients\":[{\"name\":\"Jane Doe\",\"address_line1\":\"123 Main St\",\"city\":\"Austin\",\"state\":\"TX\",\"postal_code\":\"78701\"}],\"content\":{\"body_text\":\"Please send this letter.\"},\"return_address\":{\"address_line1\":\"456 HQ Ave\",\"city\":\"Austin\",\"state\":\"TX\",\"postal_code\":\"78702\"}}","errorExample":"{\"error\":\"validation_failure\",\"details\":[\"Payload.recipients[0].zip is required.\"]}"},"mailServices":[{"type":"letter","description":"Standard USPS First-Class letter in envelope, 1-6 pages, B&W. US domestic only.","pricePerUnit":0.94,"lobProduct":"letters","status":"available"},{"type":"certified_letter","description":"USPS Certified Mail with electronic delivery confirmation. Recommended for legal notices and compliance communications.","pricePerUnit":1.94,"lobProduct":"letters","status":"available"},{"type":"invoice","description":"Formatted invoice delivered via USPS First-Class letter.","pricePerUnit":0.94,"lobProduct":"letters","status":"available"},{"type":"notice","description":"Formal notice delivered via USPS First-Class letter.","pricePerUnit":0.94,"lobProduct":"letters","status":"available"},{"type":"image","description":"Image-forward content (e.g. photo mailer) delivered via USPS First-Class letter.","pricePerUnit":0.62,"lobProduct":"letters","status":"available"},{"type":"flyer","description":"Single or multi-page flyer delivered via USPS First-Class letter.","pricePerUnit":0.94,"lobProduct":"letters","status":"available"},{"type":"self_mailer","description":"Folded self-mailer (6x18 bifold) delivered via USPS. No envelope required.","pricePerUnit":0.89,"lobProduct":"self_mailers","status":"coming_soon"},{"type":"snap_pack","description":"Pressure-sealed secure mailer (8.5x11). Ideal for sensitive documents.","pricePerUnit":1.24,"lobProduct":"snap_packs","status":"coming_soon"},{"type":"postcard","description":"USPS postcard (4x6, 6x9, or 6x11). No envelope. Ideal for marketing and notifications.","pricePerUnit":0.62,"lobProduct":"postcards","status":"coming_soon"}]}