Skip to content

Daemon API

The Gateway Worker exposes a uniform API. Every endpoint works the same way regardless of entity type. The entity’s type determines which state fields are populated, not how you access them.

All API routes are prefixed with /api/v1/. The gateway applies CORS headers globally and policy middleware on all /api/* routes.

  • X-Lattice-Role: One of ceo, dept_head, team_member. Defaults to team_member if absent. Controls field-level filtering.
  • Content-Type: application/json for POST/PATCH requests.
  • X-Lattice-Version: Entity version number (for optimistic concurrency).