Superflag Telemetry API

The Telemetry API from Superflag — 7 operation(s) for telemetry.

GitHub OpenAPI

Operations 10

GET /api/v1/telemetry/exports List raw telemetry export destinations #
POST /api/v1/telemetry/exports Create raw telemetry export destination #
GET /api/v1/telemetry/exports/{id} Get raw telemetry export destination #
PATCH /api/v1/telemetry/exports/{id} Update raw telemetry export destination #
POST /api/v1/telemetry/exports/{id}/rotate-secret Rotate raw telemetry export secret #
POST /api/v1/telemetry/exports/{id}/backfills Create raw telemetry export backfill #
GET /api/v1/telemetry/exports/{id}/deliveries List raw telemetry export deliveries #
POST /api/v1/telemetry/exports/{id}/deliveries/{deliveryId}/retry Retry raw telemetry export delivery #
POST /api/v1/telemetry/erasures Request telemetry subject erasure #
GET /api/v1/telemetry/erasures Get telemetry subject erasure #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/superflag-sh:superflag-sh-telemetry-api"
All apis
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.

Get an API 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 Specification

superflag-sh-telemetry-api-openapi.yml Raw ↑
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: Telemetry
paths:
  /api/v1/telemetry/exports:
    get:
      operationId: listRawTelemetryExportDestinations
      security:
      - BearerAuth: []
      parameters:
      - name: appId
        in: query
        required: true
        schema:
          type: string
      - name: env
        in: query
        required: true
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
          enum:
          - active
          - paused
          - disabled
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Signed webhook export destinations
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: List Raw Telemetry Export Destinations
      tags:
      - Telemetry
      summary: List raw telemetry export destinations
      x-summary-source: derived
    post:
      operationId: createRawTelemetryExportDestination
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RawTelemetryExportCreateRequest'
      responses:
        '201':
          description: Destination created with one-time signing secret
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Idempotency key reused with different semantics
      description: Create Raw Telemetry Export Destination
      tags:
      - Telemetry
      summary: Create raw telemetry export destination
      x-summary-source: derived
  /api/v1/telemetry/exports/{id}:
    get:
      operationId: getRawTelemetryExportDestination
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: appId
        in: query
        required: true
        schema:
          type: string
      - name: env
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Destination and health diagnostics
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: Get Raw Telemetry Export Destination
      tags:
      - Telemetry
      summary: Get raw telemetry export destination
      x-summary-source: derived
    patch:
      operationId: updateRawTelemetryExportDestination
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RawTelemetryExportPatchRequest'
      responses:
        '200':
          description: Updated destination
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Destination version conflict
      description: Update Raw Telemetry Export Destination
      tags:
      - Telemetry
      summary: Update raw telemetry export destination
      x-summary-source: derived
  /api/v1/telemetry/exports/{id}/rotate-secret:
    post:
      operationId: rotateRawTelemetryExportSecret
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - appId
              - env
              - version
              properties:
                appId:
                  type: string
                env:
                  type: string
                version:
                  type: integer
                  minimum: 1
      responses:
        '200':
          description: Rotated one-time signing secret
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: Rotate Raw Telemetry Export Secret
      tags:
      - Telemetry
      summary: Rotate raw telemetry export secret
      x-summary-source: derived
  /api/v1/telemetry/exports/{id}/backfills:
    post:
      operationId: createRawTelemetryExportBackfill
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - appId
              - env
              - from
              - idempotencyKey
              properties:
                appId:
                  type: string
                env:
                  type: string
                from:
                  type: string
                  format: date-time
                to:
                  type: string
                  format: date-time
                idempotencyKey:
                  type: string
                  minLength: 16
      responses:
        '202':
          description: Bounded retention backfill scheduled
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: Create Raw Telemetry Export Backfill
      tags:
      - Telemetry
      summary: Create raw telemetry export backfill
      x-summary-source: derived
  /api/v1/telemetry/exports/{id}/deliveries:
    get:
      operationId: listRawTelemetryExportDeliveries
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: appId
        in: query
        required: true
        schema:
          type: string
      - name: env
        in: query
        required: true
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
          enum:
          - pending
          - delivering
          - delivered
          - failed
          - expired
      - name: from
        in: query
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Bounded delivery diagnostics
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: List Raw Telemetry Export Deliveries
      tags:
      - Telemetry
      summary: List raw telemetry export deliveries
      x-summary-source: derived
  /api/v1/telemetry/exports/{id}/deliveries/{deliveryId}/retry:
    post:
      operationId: retryRawTelemetryExportDelivery
      security:
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: deliveryId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - appId
              - env
              properties:
                appId:
                  type: string
                env:
                  type: string
      responses:
        '202':
          description: Eligible retained delivery scheduled for retry
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      description: Retry Raw Telemetry Export Delivery
      tags:
      - Telemetry
      summary: Retry raw telemetry export delivery
      x-summary-source: derived
  /api/v1/telemetry/erasures:
    post:
      operationId: requestTelemetrySubjectErasure
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TelemetryErasureRequest'
      responses:
        '202':
          description: Erasure scheduled with an opaque receipt
        '401':
          description: Invalid management credential
        '403':
          description: Credential does not own the app
        '503':
          description: Telemetry identity service unavailable
      description: Request Telemetry Subject Erasure
      tags:
      - Telemetry
      summary: Request telemetry subject erasure
      x-summary-source: derived
    get:
      operationId: getTelemetrySubjectErasure
      security:
      - BearerAuth: []
      parameters:
      - name: appId
        in: query
        required: true
        schema:
          type: string
      - name: env
        in: query
        required: true
        schema:
          type: string
      - name: id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Non-identifying erasure status receipt
        '401':
          description: Unauthorized bearer or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Erasure receipt not found
      description: Get Telemetry Subject Erasure
      tags:
      - Telemetry
      summary: Get telemetry subject erasure
      x-summary-source: derived
components:
  schemas:
    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
    TelemetryErasureRequest:
      type: object
      additionalProperties: false
      required:
      - appId
      - env
      - namespace
      - subjectId
      properties:
        appId:
          type: string
          minLength: 1
        env:
          type: string
          minLength: 1
          maxLength: 63
        namespace:
          type: string
          minLength: 1
          maxLength: 96
        subjectId:
          type: string
          pattern: ^psn_[A-Za-z0-9_-]{16,96}$
    RawTelemetryExportPatchRequest:
      type: object
      additionalProperties: false
      required:
      - appId
      - env
      - version
      properties:
        appId:
          type: string
        env:
          type: string
        version:
          type: integer
          minimum: 1
        status:
          type: string
          enum:
          - active
          - paused
          - disabled
        url:
          type: string
          format: uri
        filters:
          type: object
          additionalProperties: false
    RawTelemetryExportCreateRequest:
      type: object
      additionalProperties: false
      required:
      - appId
      - env
      - type
      - url
      - idempotencyKey
      properties:
        appId:
          type: string
        env:
          type: string
        type:
          const: signed_webhook
        url:
          type: string
          format: uri
        filters:
          type: object
          additionalProperties: false
        idempotencyKey:
          type: string
          minLength: 16
          maxLength: 128
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key