{"service":"ChainPost","version":"2026-08-agent-v1","discovery":{"capabilitiesEndpoint":"/api/v1/capabilities","quoteEndpoint":"/api/public/jobs/quote","acceptQuoteEndpointTemplate":"/api/public/jobs/{jobId}/accept-quote","statusEndpointTemplate":"/api/public/jobs/{jobId}/status","contractBoundary":{"uiBoundaryNote":"The Blazor web UI is a convenience layer for wallet onboarding, user-visible status checks, and human support escalation. It is not the canonical agent integration contract.","openApiPath":"/openapi.json","agentManifestPath":"/api/public/agent-manifest","canonicalContractRecommendation":"Use /openapi.json and /api/public/agent-manifest as the source of truth for autonomous integrations."}},"auth":{"methods":[{"name":"wallet_session","challengePath":"/api/public/auth/wallet/challenge","verifyPath":"/api/public/auth/wallet/verify","sessionPath":"/api/public/auth/session","allowedChains":["eip155:8453"],"challengeTtlSeconds":300,"sessionIdleTimeoutMinutes":30,"sessionAbsoluteLifetimeHours":4,"sessionRenewal":"sliding","sessionNote":"The session cookie slides forward by sessionIdleTimeoutMinutes on each authenticated request, but is rejected once its age exceeds sessionAbsoluteLifetimeHours regardless of activity. Re-run the challenge/verify flow after that point.","recommendation":"Use wallet_session for interactive sign-in before issuing unattended bot tokens."},{"name":"bearer_bot_token","issuePath":"/api/public/auth/bot/token","revokePath":"/api/public/auth/bot/revoke","rotatePath":"/api/public/auth/bot/rotate","requiredAuthorizationScope":"wallet","supportedScopes":["jobs:read","jobs:write"],"defaultLifetimeMinutes":240,"recommendation":"Use bearer_bot_token for unattended automation with least-privilege scopes."}]},"payment":{"quoteCurrency":"USDC","supportedNetworks":["eip155:8453"],"supportedTokens":[{"symbol":"USDC","network":"eip155:8453","contractAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}],"prepayVerification":{"mode":"rpc_transfer_verification","recipientWallet":"0x4CB66defCC4b76b0a1C669a137ab23Ee048A78AE","minimumConfirmations":1}},"idempotency":{"requiredHeader":"Idempotency-Key","notes":"Clients should reuse the same key for safe retries on quote and accept-quote requests."},"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."}},"workflowContracts":{"quote":{"requestPath":"/api/public/jobs/quote","method":"POST","successStatus":201,"idempotencyHeader":"Idempotency-Key","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"]}},"cancel":{"supported":true,"scope":"fulfillment_requires_review_only","requestPathTemplate":"/api/public/jobs/{jobId}/request-recovery","method":"POST","successStatus":202,"minimumReviewMinutes":30,"maximumRecoveryAmount":5.00,"paymentToken":"USDC","errorCodes":[{"code":"not_eligible_state","remediation":"Wait for fulfillment_requires_review; settlement_requires_review is not eligible."},{"code":"window_not_elapsed","remediation":"Retry only after the published minimum review window."},{"code":"escrow_not_funded","remediation":"No autonomous refund is available because the job has no funded escrow."},{"code":"amount_exceeds_cap","remediation":"The job amount exceeds the published autonomous recovery cap and requires operator review."},{"code":"feature_disabled","remediation":"Autonomous recovery is unavailable; poll status and contact support."}],"note":"Autonomous, policy-gated refund for jobs stuck in fulfillment_requires_review after the minimum review window. Jobs in settlement_requires_review still require operator/support contact."},"status":{"requestPathTemplate":"/api/public/jobs/{jobId}/status","method":"GET","successStatus":200,"includesReasonCode":true}},"retryPolicy":{"transientStatusCodes":[408,429,500,502,503,504],"nonRetryableErrorCodes":["validation_failure","wallet_or_token_required","invalid_token","payment_proof_replayed_across_jobs","payment_proof_already_consumed"]},"callbacks":{"registrationSupported":true,"deliverySupported":false,"pollingRequired":true,"registrationPath":"/api/public/agent-callbacks/register","listPath":"/api/public/agent-callbacks/registrations","auditPath":"/api/public/agent-callbacks/audit","testEventPathTemplate":"/api/public/agent-callbacks/test-event/{jobId}","eventIdField":"eventPayload.eventId","correlationIdField":"eventPayload.correlationId","retry":{"maxAttempts":3,"backoffSeconds":[5,15,30],"note":"ChainPost suppresses duplicate deliveries per callback registration and eventId. Clients should also de-duplicate by eventId and preserve correlationId across retries."},"destinationPolicy":"Optional delivery requires a public HTTPS URL. Redirects, private, loopback, link-local, and user-info URLs are rejected.","fallback":"Poll the public job status endpoint when callbacks are unavailable or delivery fails.","eventTypes":["job.status.changed"],"signature":{"algorithm":"hmac-sha256","verificationPath":"/api/public/receipts/verify","signatureField":"receipt.signature","payloadHashField":"receipt.payloadHash"}},"receipts":{"verificationPath":"/api/public/receipts/verify","signedEvents":["quote_created","payment_required","quote_accepted","dispatch_completion_submitted","recovery_requested","recovery_completed","job.status.changed"],"schema":{"receiptId":"string","eventType":"string","issuedAtUtc":"rfc3339-datetime","payloadHash":"sha256-hex","signature":"hmac-sha256-hex","payload":"json-object"},"correlationRules":{"acceptance":"job:{jobId}:quote_accepted","dispatchCompletion":"job:{jobId}:submitted:{normalizedEvidenceChecksum}","recoveryRequested":"job:{jobId}:recovery_requested","recoveryCompleted":"job:{jobId}:recovery_completed"}}}