/v1/configs/{sdk_key}/config.jsonDownload a config
The config JSON (schema 1) every SDK downloads and evaluates locally: no user data is sent. Authenticated by the SDK key in the path, which can read only this config in this environment; no API key or session. Poll with `If-None-Match` (the last `ETag`) and get 304 while nothing changed; changes show within about 5 seconds. Responses are `br`, `gzip` or identity per `Accept-Encoding`, CORS `*` without credentials. Limits: 20 requests per second per (SDK key, client IP) and 20 per client IP; a matching 304 is never refused for the key's sake; unknown keys 2 per second per IP. If the database is unreachable the API keeps serving its last good copy with `X-PC-Config-Stale: 1` for up to 24 hours. `HEAD` answers the same headers without the body.
Path parameters
sdk_key*stringThe SDK key of one config in one environment (`pcf_sdk_` + 38 characters). A malformed key or a wrong checksum is a 404.
Response · 200 The config JSON document (schema 1, no envelope).
object
Example
Request
GET https://api.flags.productcraft.co/v1/configs/{sdk_key}/config.jsonResponse
{}