Palbase Flags · API
/flags/users/{user_id}Read a user's values
Every flag's value for one user, as their client would read it (percentiles are the user's; the client context is this request's).
Called by your server, with the project's secret key.
Path
user_idstring · requiredThe user's id.Headers
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 -X GET "https://<your-ref>.palbase.studio/flags/users/<user_id>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The values
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)
403Not the project's secret key
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 GetUserValues of flags's contract.