palbaseDocs

Palbase Flags · API

GET/flags/delta

Read what changed

What changed for the reader since a version, in order: a value put (with its experiment variant, when an experiment gave it), or a flag deleted; an experiment started or ended on a flag is a change of it. A client whose answer may no longer be its own — its context, country or user changed, a time condition turned, or the reader entered or left an audience (its If-None-Match says) — or whose version is older than the deletions still kept (30 days), is answered 410 and takes a snapshot. Resolved for the reader: a signed-in user's token (with the publishable key) makes the answer theirs — their own values first, then the variant of the experiment running on a flag when they are one of its people, then the first condition of each flag that matches, then its default. Conditions read what the client declares (platform, versions, locale), the share of users a percentile picks (signed-in users only), the country of the address the edge saw, the server's clock, and the analytics audiences the reader — the user or, signed in as no one, the installation proven with its secret — is in, having allowed personalization.

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.

Query

sinceinteger · optionalThe version the client holds (its last sync_version).

Headers

If-None-Matchstring · optionalThe ETag of the answer the client holds.
X-Palbase-Installationstring · optionalThe app installation's id (64 characters at most): signed in as no one and proven with X-Palbase-Installation-Secret, whom an audience condition asks about and an experiment places.
X-Palbase-Installation-Secretstring · optionalThe installation's secret (kernel/installclaim; 43 to 256 characters): proves the X-Palbase-Installation it was made into. Without it, an installation named is no one for audiences and experiments.
X-Platformstring · optionalThe client's platform (client.platform).
X-OS-Versionstring · optionalThe operating system's version (client.os_version).
X-Palbase-Client-Versionstring · optionalThe app's version (client.app_version).
Accept-Languagestring · optionalThe client's languages; the first is client.locale.
curl
curl -X GET "https://<your-ref>.palbase.studio/flags/delta" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The changes

304Nothing changed

400The request is malformed, or a definition or a value breaks a flag's rules (the error names which)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

410The answer held can no longer be brought up to date: take a snapshot

429The project's request rate, or its flag reads for the period under its quota, are used up; Retry-After says when to try again

503The platform could not answer now; retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation GetDelta of flags's contract.