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).

Embed
Preview of the card
<a href="https://lucidace.com/help/api-versioning"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/5ad8792d-a996-4aa7-9857-1b6165d8a624/social-card.svg?v=3e7ae33eec8b" alt="API versioning and deprecations" width="600" height="315"></a>

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-01
  • The 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 /v1 response echoes the version it was served at in Lucida-Version. Log it when you debug.

  • A value that is not a date, or is older than the oldest published version, answers 400 problem+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) and Sunset: <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.

Updated