API versioning and deprecations
Pin the API with the Lucida-Version header, what counts as a breaking change, and how deprecations are announced (Deprecation and Sunset headers, six months minimum).
The public API lives under /v1. Within /v1 we make additive changes freely: new routes, new optional request fields, new response fields, new event types and enum values. Write clients that ignore fields they do not know.
A breaking change (removing or renaming a field or route, changing a type or meaning, making an optional field required) ships only behind a new version date. You opt in by sending the date; nothing changes under you otherwise.
The Lucida-Version header
GET /v1/projects/{project_id}/flags
Lucida-Version: 2026-11-01The value is a date,
YYYY-MM-DD. The request is served at the newest published version on or before that date.Without the header you get the newest version.
Every
/v1response echoes the version it was served at inLucida-Version. Log it when you debug.A value that is not a date, or is older than the oldest published version, answers
400problem+json.
Published versions today: 2026-11-01 (the first). No breaking change has been released since, so every date from 2026-11-01 on resolves to it. Pin the date you tested against in production integrations and in your SDK or CLI configuration; bump it deliberately, after reading the changelog.
The header applies to the management API. Capture and flag-evaluation endpoints on the capture host have a fixed wire format that SDKs negotiate separately; see Capture over HTTP.
Deprecation policy
A deprecation is announced in the changelog before anything stops working, and stays supported for at least six months from that announcement.
A deprecated route answers with
Deprecation: @<unix time>(RFC 9745, when it was deprecated) andSunset: <HTTP date>(RFC 8594, when it stops). Alert on these headers in your API client's logs.After the sunset date the route may answer
410. It is never silently repurposed.Security fixes and legal requirements can shorten the window; we say so in the announcement.
Nothing is deprecated at the moment.