Skip to main content

AgentPayable

by Washboard Labs LLC

Agent invoice API

Early access foundation build

AgentPayable is operated by Washboard Labs LLC.

Pricing coming soon.

Checkout and paid tiers are not enabled in this build. Join early access for updates.

Overview

This build exposes one agent-readable invoice endpoint that returns sample data for illustration. There is no API key or session required. Production invoices will use the same agentpayable.invoice.v1 schema.

Human-readable preview: /demo/invoice

GET /api/agent/invoice/demo

Returns a single JSON document agents can fetch to discover the invoice shape. Always marked demo: true.

Authentication

None.

Response

  • 200 — application/json body (see below)

Response headers

  • Cache-Control: public, max-age=300
  • X-AgentPayable-Demo: true

JSON body (current demo)

{
  "schema": "agentpayable.invoice.v1",
  "demo": true,
  "label": "DEMO — not a real invoice. For integration testing and agent discovery only.",
  "invoice": {
    "id": "00000000-0000-4000-8000-000000000demo",
    "agent_pay_token": "demo_agent_pay_token_do_not_use",
    "status": "open",
    "amount_cents": 12500,
    "currency": "USD",
    "due_date": "2026-12-01",
    "description": "Monthly lawn care — November (demo)",
    "issued_at": "2026-11-01T12:00:00.000Z"
  },
  "payee": {
    "business_name": "Oak Street Landscaping (demo)",
    "business_slug": "oak-street-landscaping-demo",
    "contact_email": "billing-demo@example.invalid"
  },
  "payer_hint": {
    "customer_display_name": "Jamie Rivera (demo)"
  },
  "payment": {
    "methods_supported": [
      "card"
    ],
    "checkout_available": false,
    "note": "Payment is not available in early access. Pricing coming soon — join the waitlist to get updates when checkout opens."
  },
  "agent_instructions": {
    "summary": "This is a read-only demo JSON document. Real invoices will include a stable agent_pay_token and payment instructions once checkout ships.",
    "suggested_actions": [
      "Verify amount_cents and currency match the customer's records.",
      "Confirm due_date before initiating payment.",
      "Do not send funds for documents where demo is true."
    ]
  }
}

Top-level fields

schema
Version string, currently agentpayable.invoice.v1.
demo
When true, agents must not initiate payment.
label
Human-readable warning.
invoice
id, agent_pay_token, status, amount_cents, currency, due_date, description, issued_at.
payee
business_name, business_slug, contact_email.
payer_hint
Optional display context (e.g. customer_display_name).
payment
methods_supported, checkout_available, note. Checkout is not enabled in this build.
agent_instructions
summary and suggested_actions for autonomous agents.

Example

curl -sS https://getagentpayable.com/api/agent/invoice/demo \
  -H "Accept: application/json"

Other public routes (site, not invoice)

Implemented in this repo for the marketing site; not part of the agent invoice contract.

POST /api/waitlist

Body: JSON { "email": string, "source"?: string, "session_id"?: string, "path"?: string }. Validates email. On success: 201 with { "ok": true } when recorded, or 204 when the request is accepted. Errors: 400 invalid JSON/email, 500 on server failure. No authentication.

POST /api/funnel

Same-origin JSON POST from the marketing site (session is an httpOnly cookie; do not send session_id in the body). Body: { "event_name": "page_view" | "waitlist_submit" | "cta_click" | "demo_invoice_view" | "docs_view", "path"?: string, "props"?: { "cta_id"?: string, "source"?: string } }. Returns 204 when accepted (events are recorded on the live site). Errors: 400 invalid JSON/payload/session, 403 cross-origin, 413 oversized body, 415 wrong content type, 429 rate limited, 500 on insert failure. No API keys.