Superflag Config Versions API
The Config Versions API from Superflag — 3 operation(s) for config versions.
The Config Versions API from Superflag — 3 operation(s) for config versions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/superflag-sh:superflag-sh-config-versions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Superflag control-plane evaluation and advanced…
version: 1.0.0
description: 'Public Superflag HTTP API. Discovery documents at /openapi.json and /api/v1/contract do not require auth. Delivery and management routes require Authorization: Bearer with a cli_, admin_, sdk_, or pub_ credential. See https://superflag.sh/docs/api-reference/overview.'
servers:
- url: https://superflag.sh
description: Production
tags:
- name: Config Versions
paths:
/api/v1/config-versions:
get:
operationId: listConfigVersions
security:
- BearerAuth: []
parameters:
- name: appId
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: env
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 20
responses:
'200':
description: Retained configuration versions and current composite state
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigVersionListResponse'
'401':
description: Unauthorized bearer or API key
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
description: List Config Versions
tags:
- Config Versions
summary: List config versions
x-summary-source: derived
/api/v1/config-versions/{version}:
get:
operationId: getConfigVersion
security:
- BearerAuth: []
parameters:
- name: version
in: path
required: true
schema:
type: integer
minimum: 0
- name: appId
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: env
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
responses:
'200':
description: Exact retained configuration snapshot
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigVersionResponse'
'401':
description: Unauthorized bearer or API key
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
description: Get Config Version
tags:
- Config Versions
summary: Get config version
x-summary-source: derived
/api/v1/config-versions/diff:
get:
operationId: diffConfigVersions
security:
- BearerAuth: []
parameters:
- name: appId
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: env
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 128
- name: from
in: query
required: true
schema:
type: integer
minimum: 0
- name: to
in: query
required: true
schema:
type: integer
minimum: 0
responses:
'200':
description: 'Deterministic structured version diff: from/to rollback state, changes, dependencies, visibility'
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigVersionDiffResponse'
'401':
description: Unauthorized bearer or API key
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
description: Diff Config Versions
tags:
- Config Versions
summary: Diff config versions
x-summary-source: derived
components:
schemas:
ConfigVersionDiff:
type: object
additionalProperties: false
required:
- from
- to
- changes
- dependencies
- visibilityImpact
properties:
from:
$ref: '#/components/schemas/RollbackState'
to:
$ref: '#/components/schemas/RollbackState'
changes:
type: array
maxItems: 5000
items:
$ref: '#/components/schemas/ConfigVersionChange'
dependencies:
type: array
items:
$ref: '#/components/schemas/ConfigVersionDependency'
visibilityImpact:
type: object
additionalProperties: false
required:
- added
- removed
properties:
added:
type: array
items:
type: string
removed:
type: array
items:
type: string
ConfigVersionDependency:
type: object
additionalProperties: false
required:
- from
- to
- kind
properties:
from:
$ref: '#/components/schemas/ConfigVersionDependencyResource'
to:
$ref: '#/components/schemas/ConfigVersionDependencyResource'
kind:
enum:
- flag_prerequisite
- flag_rule
- flag_segment
- segment_segment
- assignment
- audience
path:
type: string
minLength: 1
ConfigVersionChange:
type: object
additionalProperties: false
required:
- op
- path
properties:
op:
enum:
- add
- remove
- replace
path:
type: string
pattern: ^/
before: {}
after: {}
ConfigVersionListResponse:
type: object
additionalProperties: false
required:
- apiVersion
- versions
- current
- experimentVersions
properties:
apiVersion:
const: 1
versions:
type: array
items:
$ref: '#/components/schemas/ConfigVersionSummary'
current:
$ref: '#/components/schemas/RollbackState'
experimentVersions:
type: array
items:
type: object
additionalProperties: false
required:
- id
- versions
properties:
id:
type: string
versions:
type: array
items:
$ref: '#/components/schemas/ExperimentVersionSummary'
ConfigVersionSummary:
type: object
additionalProperties: false
required:
- configVersion
- createdAt
- compositeAvailable
- current
properties:
configVersion:
type: integer
minimum: 0
createdAt:
type: string
format: date-time
updatedBy:
type: string
note:
type: string
compositeAvailable:
type: boolean
current:
type: boolean
RollbackState:
type: object
additionalProperties: false
required:
- configVersion
- experiments
properties:
configVersion:
type: integer
minimum: 0
experiments:
type: array
maxItems: 100
items:
type: object
additionalProperties: false
required:
- id
- experimentVersion
properties:
id:
type: string
experimentVersion:
type: integer
minimum: 1
ConfigVersionDiffResponse:
type: object
additionalProperties: false
required:
- apiVersion
- diff
properties:
apiVersion:
const: 1
diff:
$ref: '#/components/schemas/ConfigVersionDiff'
ExperimentVersionSummary:
type: object
additionalProperties: false
required:
- experimentVersion
- createdAt
- current
properties:
experimentVersion:
type: integer
minimum: 1
createdAt:
type: string
format: date-time
current:
type: boolean
ConfigVersionDependencyResource:
type: object
additionalProperties: false
required:
- type
- id
properties:
type:
enum:
- flag
- segment
- experiment
id:
type: string
minLength: 1
ApiError:
type: object
additionalProperties: false
required:
- error
properties:
apiVersion:
type: integer
const: 1
code:
type: string
message:
type: string
resolution:
type: string
error:
oneOf:
- type: string
- type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
resolution:
type: string
retryable:
type: boolean
metadata:
type: object
ConfigVersionResponse:
type: object
additionalProperties: false
required:
- apiVersion
- version
properties:
apiVersion:
const: 1
version:
type: object
additionalProperties: false
required:
- configVersion
- envId
- state
- snapshot
- snapshotHash
- createdAt
properties:
configVersion:
type: integer
minimum: 0
envId:
type: string
state:
$ref: '#/components/schemas/RollbackState'
snapshot:
type: object
snapshotHash:
type: string
pattern: ^[a-f0-9]{64}$
createdAt:
type: string
format: date-time
securitySchemes:
BearerAuth:
type: http
scheme: bearer
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key