capture
https://lucidace.com /2/httpapi Amplitude-compatible HTTP API
Public or secret key as api_key. Amplitude events are mapped to Lucida events.
Request body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/2/httpapi" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
{code: 200, events_ingested}.{}https://lucidace.com /decide PostHog-compatible /decide
Public or secret key as api_key or token. Answers in the PostHog decide shape so PostHog SDKs can evaluate flags.
Request body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/decide" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /ofrep/v1/evaluate/flags OpenFeature remote evaluation: all flags
Public or secret key in X-API-Key or Authorization: Bearer. OFREP 1.x.
Request body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/ofrep/v1/evaluate/flags" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /ofrep/v1/evaluate/flags/{key} OpenFeature remote evaluation: one flag
Public or secret key in X-API-Key or Authorization: Bearer. OFREP 1.x.
Parameters
keystringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/ofrep/v1/evaluate/flags/{key}" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /track Mixpanel-compatible /track
Public or secret key as the token. Also accepts GET. Mixpanel events are mapped to Lucida events.
Request body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/track" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
1 or {status: 1}.{}https://lucidace.com /v1/batch Send up to 1000 events
Public or secret key. Body up to 20 MB.
Request body
application/json
api_keystringlc_pk_... public, or secret). May instead be Authorization: Bearer <key>.batchCaptureEvent[]requiredShow child parameters
distinct_idstringrequiredeventstringrequiredpurchase; $-prefixed names are Lucida's own.propertiesobject$lc_* keys are stripped. Strings are cut at 64 KiB; an event over about 1 MiB is rejected with 413.timestampstringuuidstringhistorical_migrationbooleansent_atstring{
"api_key": "string",
"batch": [
{
"distinct_id": "string",
"event": "string",
"properties": {},
"timestamp": "2024-01-01T00:00:00Z",
"uuid": "string"
}
],
"historical_migration": true,
"sent_at": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/batch" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"api_key":"string","batch":[{"distinct_id":"string","event":"string","properties":{},"timestamp":"2024-01-01T00:00:00Z","uuid":"string"}],"historical_migration":true,"sent_at":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"status": 1
}Schema
statusintegerhttps://lucidace.com /v1/capture Send one event
Public or secret key. Body up to 1 MB; the body is the event itself.
Request body
application/json
distinct_idstringrequiredeventstringrequiredpurchase; $-prefixed names are Lucida's own.propertiesobject$lc_* keys are stripped. Strings are cut at 64 KiB; an event over about 1 MiB is rejected with 413.timestampstringuuidstringapi_keystring{
"distinct_id": "string",
"event": "string",
"properties": {},
"timestamp": "2024-01-01T00:00:00Z",
"uuid": "string",
"api_key": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/capture" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"distinct_id":"string","event":"string","properties":{},"timestamp":"2024-01-01T00:00:00Z","uuid":"string","api_key":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
https://lucidace.com /v1/config Remote SDK config
Public or secret key. Recording, autocapture, consent and privacy settings for the browser SDK.
Code samples
cURL
curl -X GET "https://lucidace.com/v1/config" \
-H "Authorization: Bearer $LUCIDACE_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /v1/flags Evaluate flags for one user (decide)
Public or secret key. Sticky assignments (filters.sticky) are applied; see the flags help page.
Request body
application/json
api_keystringAuthorization: Bearer <key>.bucketing_keystringdistinct_idstringrequiredbucketing_key is sent.flag_keysstring[]group_propertiesobjectgroupsobjectperson_propertiesobjectrecord_exposurebooleansend_exposure, with a deterministic event uuid: UUIDv5 over project, distinct_id, flag, value, UTC day and event name, so a retry or repeat call for the same user, flag and value on one UTC day is one row. Flags that need the server or lack a bucketing key are skipped.send_exposureboolean$feature_flag_called and $exposure per decided flag, with a random event uuid (not deduped).{
"api_key": "string",
"bucketing_key": "string",
"distinct_id": "string",
"flag_keys": [
"string"
],
"group_properties": {},
"groups": {},
"person_properties": {},
"record_exposure": false,
"send_exposure": false
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/flags" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"api_key":"string","bucketing_key":"string","distinct_id":"string","flag_keys":["string"],"group_properties":{},"groups":{},"person_properties":{},"record_exposure":false,"send_exposure":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"flags": {},
"quota_limited": true,
"request_id": "string"
}Schema
flagsobjectquota_limitedbooleanrequest_idstringdistinct_id (problem+json).https://lucidace.com /v1/flags/batch Evaluate flags for many users
Public or secret key. Body {users: [{distinct_id, ...}], flag_keys?}; one result per user.
Request body
application/json
{}Code samples
cURL
curl -X POST "https://lucidace.com/v1/flags/batch" \
-H "Authorization: Bearer $LUCIDACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /v1/flags/definitions Flag definitions for local evaluation
Secret key only. Supports If-None-Match (ETag).
Code samples
cURL
curl -X GET "https://lucidace.com/v1/flags/definitions" \
-H "Authorization: Bearer $LUCIDACE_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}https://lucidace.com /v1/flags/stream Flag change notifications (SSE)
Public or secret key. A change notice only; refetch POST /v1/flags on each event.
Code samples
cURL
curl -X GET "https://lucidace.com/v1/flags/stream" \
-H "Authorization: Bearer $LUCIDACE_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
definitions event with the current ETag on connect and after each flag change."string"
https://lucidace.com /v1/flags/{key}/remote-config Remote-config payload of one flag
Secret key only. The plaintext payload of a json flag, without evaluating targeting.
Parameters
keystringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/flags/{key}/remote-config" \
-H "Authorization: Bearer $LUCIDACE_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
{}