Superflag Apps API
The Apps API from Superflag — 1 operation(s) for apps.
The Apps API from Superflag — 1 operation(s) for apps.
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-apps-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: Apps
paths:
/api/v1/apps:
get:
operationId: listApps
description: List apps the caller can see. Requires a user-scoped cli_ token. Never returns plaintext secrets.
security:
- BearerAuth: []
responses:
'200':
description: Strict app and environment DTOs
content:
application/json:
schema:
$ref: '#/components/schemas/AppListResponse'
'401':
description: Missing bearer or a non-cli_ credential. admin_/sdk_/pub_ cannot list apps.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
tags:
- Apps
summary: List apps
x-summary-source: derived
post:
operationId: createApp
description: Create an app with default environments and keys. One-time secret delivery. Requires a caller-stable idempotency key.
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAppRequest'
responses:
'201':
description: Created app plus one-time environment and admin credentials. Identical idempotent retries can recover the same payload during the delivery window.
content:
application/json:
schema:
$ref: '#/components/schemas/AppCreateResponse'
'400':
description: Invalid name, slug, or idempotency key
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'401':
description: Missing bearer or a non-cli_ credential. Only an unscoped cli_ token can create apps.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'404':
description: Referenced app resources were not found
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'409':
description: Idempotency key reused with different semantics
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
'429':
description: App quota exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
tags:
- Apps
summary: Create app
x-summary-source: derived
components:
schemas:
EnvironmentDto:
type: object
additionalProperties: false
required:
- id
- appId
- slug
- createdAt
properties:
id:
type: string
minLength: 1
appId:
type: string
minLength: 1
slug:
type: string
minLength: 1
createdAt:
$ref: '#/components/schemas/IsoTimestamp'
AppListResponse:
type: object
additionalProperties: false
required:
- apiVersion
- apps
properties:
apiVersion:
const: 1
apps:
type: array
items:
$ref: '#/components/schemas/AppDto'
KeyWithOneTimeToken:
type: object
additionalProperties: false
required:
- id
- appId
- environmentId
- environmentSlug
- type
- name
- createdAt
- revokedAt
- token
properties:
id:
type: string
minLength: 1
appId:
type: string
minLength: 1
environmentId:
type:
- string
- 'null'
environmentSlug:
type:
- string
- 'null'
type:
enum:
- sdk
- pub
- admin
name:
type: string
minLength: 1
createdAt:
$ref: '#/components/schemas/IsoTimestamp'
revokedAt:
oneOf:
- $ref: '#/components/schemas/IsoTimestamp'
- type: 'null'
token:
type: string
minLength: 1
description: Plaintext credential. Returned only on create/idempotent replay during the delivery window.
CreateAppRequest:
type: object
additionalProperties: false
required:
- name
- idempotencyKey
properties:
name:
type: string
minLength: 1
maxLength: 100
slug:
type: string
minLength: 1
idempotencyKey:
$ref: '#/components/schemas/IdempotencyKey'
AppDto:
type: object
additionalProperties: false
required:
- id
- name
- slug
- createdAt
- environments
properties:
id:
type: string
minLength: 1
name:
type: string
minLength: 1
slug:
type: string
minLength: 1
createdAt:
$ref: '#/components/schemas/IsoTimestamp'
environments:
type: array
items:
$ref: '#/components/schemas/EnvironmentDto'
IsoTimestamp:
type: string
format: date-time
IdempotencyKey:
type: string
minLength: 16
maxLength: 128
pattern: ^[A-Za-z0-9._:-]+$
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
SecretDelivery:
type: object
additionalProperties: false
required:
- idempotencyKey
- replayed
- expiresAt
properties:
idempotencyKey:
$ref: '#/components/schemas/IdempotencyKey'
replayed:
type: boolean
expiresAt:
$ref: '#/components/schemas/IsoTimestamp'
AppCreateResponse:
type: object
additionalProperties: false
required:
- apiVersion
- app
- environments
- keys
- delivery
properties:
apiVersion:
const: 1
app:
$ref: '#/components/schemas/AppDto'
environments:
type: array
items:
$ref: '#/components/schemas/EnvironmentDto'
keys:
type: array
items:
$ref: '#/components/schemas/KeyWithOneTimeToken'
delivery:
$ref: '#/components/schemas/SecretDelivery'
message:
type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key