Developer guide: 0. Set up your shell
Define the lc helper, the API and capture hosts and the key variables every later call reuses.
0. Set up your shell
export LUCIDA_API="https://lucidace.com" # app / management API
export LUCIDA_CAPTURE="https://capture.lucidace.com" # event + flag-decide + replay ingest
export LUCIDA_ACCOUNT_KEY="lc_pat_..." # your account key, keep it secret
# Management API call helper: adds the auth header and JSON content type
lc() { curl -sS -H "Authorization: Bearer $LUCIDA_ACCOUNT_KEY" -H "Content-Type: application/json" "$@"; }The two hosts are the current values for this deployment. If you run your own Lucida, use your own two hosts: the API host serves /v1/orgs, /v1/projects/... and the rest of the management API; the capture host serves only POST /v1/batch, /v1/s2s/batch, /v1/capture, /v1/flags, /v1/replay and the other ingest and flag-evaluation routes (section 3). The examples use jq to pick ids out of answers. Variables set in earlier steps ($ORG_ID, $PROJECT_ID, $PK, $SK) are reused everywhere. Never print or log a key; read secrets from a file or a secret store.
Updated