/v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions/{revision}AuthGet 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 · uuidId of the config.
environment_id*string · uuidId of an environment of the same project.
revision*integerThe revision number.
workspace_id*string · uuidId 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_TOKENimport { Flags } from "@productcraft/flags";
// Reads PRODUCTCRAFT_API_KEY from the environment
const flags = new Flags();
const result = await flags.configs.environments.revisions.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "1");flags.configs.environments.revisions.retrieve(configId, environmentId, revision, options?): Flags.ConfigEnvironmentRevisionRetrieveResponse
Response
{}