Skip to main content
POST
/
v1
/
flags:resolve
Resolves Flag
curl --request POST \
  --url https://resolver.eu.confidence.dev/v1/flags:resolve \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientSecret": "<string>",
  "apply": true,
  "flags": [
    "<string>"
  ],
  "evaluationContext": {},
  "sdk": {
    "id": "SDK_ID_UNSPECIFIED",
    "customId": "<string>",
    "version": "<string>"
  }
}
'
{
  "resolvedFlags": [
    {
      "flag": "<string>",
      "variant": "<string>",
      "value": {},
      "flagSchema": {
        "schema": [
          {}
        ]
      },
      "reason": "RESOLVE_REASON_UNSPECIFIED",
      "shouldApply": true
    }
  ],
  "resolveToken": {},
  "resolveId": "<string>"
}

Body

application/json
clientSecret
string
required

Credentials for the client. It is used to identify the client and find the flags that are available to it.

apply
boolean
required

Determines whether the flags should be applied directly as part of the resolve, or delayed until ApplyFlag is called. A flag is typically applied when it is used, if this occurs much later than the resolve, then apply should likely be set to false.

flags
string[]

If non-empty, the specific flags are resolved, otherwise all flags available to the client will be resolved.

evaluationContext
object

An object that contains data used in the flag resolve. For example, the targeting key e.g. the id of the randomization unit, other attributes like country or version that are used for targeting.

sdk
object

Information about the SDK used to initiate the request.

Response

200 - application/json

OK

resolvedFlags
object[]

The list of all flags that could be resolved. Note: if any flag was archived it will not be included in this list.

resolveToken
object

An opaque token that is used when apply is set to false in ResolveFlags. When apply is set to false, the token must be passed to ApplyFlags.

resolveId
string

Unique identifier for this particular resolve request.