Lucida API

Base URL, API keys, errors, pagination and where to find each endpoint.

Embed
Preview of the card
<a href="https://lucidace.com/docs/introduction"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/206658c7-671f-45a2-b291-55c111214688/social-card.svg?v=3e7ae33eec8b" alt="Lucida API" width="600" height="315"></a>

Everything the Lucida app does goes through the same HTTP API, so anything you can click you can also script. The endpoints are listed by area under Endpoints, generated from the live OpenAPI document.

Base URL

https://lucidace.com

The control-plane API lives under /v1. Browsers and servers send events to the capture host shown in your project's install instructions, not to the app host.

Authentication

Create a key under Settings → Project and send it as a bearer token:

curl https://lucidace.com/v1/me \
  -H "Authorization: Bearer lc_sk_..."
  • A secret key (lc_sk_) is for servers only. Give it the narrowest scopes it needs.

  • A public key (lc_pk_) is for the browser and mobile SDKs and can only capture events and read flags. It never authenticates the control plane.

  • A personal key (lc_pat_) acts as you, from Settings → Personal.

  • Which organization and project a call touches comes only from the key. Resources you cannot see answer 404, not 403.

Errors

Errors are application/problem+json (RFC 9457) with a title, a status and a detail. Validation errors list each failing field in errors.

Pagination

List endpoints take ?limit=&cursor= and answer { "data": [...], "next_cursor": "..." }. Pass next_cursor back as cursor until it is null.

Delivery

Events are delivered at least once and deduplicated by the event uuid. Send the same uuid when you retry.

Guides

Step-by-step guides are in the Guides. What changed is in the changelog.

Updated