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.
Request Headers
Section titled “Request Headers”X-Lattice-Role: One ofceo,dept_head,team_member. Defaults toteam_memberif absent. Controls field-level filtering.Content-Type:application/jsonfor POST/PATCH requests.
Response Headers
Section titled “Response Headers”X-Lattice-Version: Entity version number (for optimistic concurrency).