Developer Docs

Production-first API contracts for governed operations.

This page is the quick contract index. For broader integration context and architecture notes, see /developers.

Idempotent public intake Policy-bound status transitions Control-tower endpoints
Public APIs

Lead and audit intake

  • POST /api/public/audit — idempotent audit request intake.
  • POST /api/public/contact — contact capture with duplicate suppression.
  • POST /api/public/client/access/request — secure client access request flow.
Admin APIs

Commercial and delivery controls

  • GET /api/admin/leads — normalized lead list.
  • PATCH /api/admin/leads/:request_id/status — guarded transition policy.
  • POST /api/admin/leads/:request_id/pro-offer — fixed-scope pilot offer creation.
Ops APIs

Control-tower visibility

  • GET /api/admin/ops/scoreboard — weekly logos/revenue/proof metrics.
  • GET /api/admin/ops/control-tower — GO/NO-GO decision payload.
  • Gate artifacts from p11, p12, and p13.
Sample Request

Public audit intake with idempotency key

curl -X POST https://erainai.com/api/public/audit \
  -H "content-type: application/json" \
  -H "Idempotency-Key: 4ec0a393-2d8f-4cda-9bc1-49ab1d5b8a92" \
  -d '{"contact":{"name":"Alex","email":"alex@company.com"},"context":"Execution variance in plant ops"}'