Flags API reference

Flags API · Revisions

get/v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions/{revision}Auth

Get a config revision

The config JSON (schema 1) of one revision, byte for byte what SDKs download: keys, types, values, rules, segments and hashes, but no names, descriptions or cleartext of confidential lists. The response body is the document itself (no envelope).

Path parameters

config_id*string · uuid

Id of the config.

environment_id*string · uuid

Id of an environment of the same project.

revision*integer

The revision number.

workspace_id*string · uuid

Id of the workspace.

Response · 200 The config JSON document (schema 1). `ETag` carries the revision's ETag.

object

Example

Request

GET https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions/{revision}
Authorization: Bearer YOUR_TOKEN

Response

{}