palbaseDocs

Palbase Analytics · API

GET/analytics/perf/config

Read the sampling

The share of samples the project keeps, for the SDK to sample at before it sends (the server samples again), and how the SDK batches them. An unchanged configuration is 304 against If-None-Match.

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.

Headers

If-None-Matchstring · optionalThe ETag of the configuration the SDK holds.
curl
curl -X GET "https://<your-ref>.palbase.studio/analytics/perf/config" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The configuration

304The SDK holds this configuration

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

503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)

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

Operation GetPerfConfig of analytics's contract.