The Bridge Admin API

The admin API from The Bridge — 28 operation(s) for admin.

GitHub OpenAPI

Operations 38

POST /admin/file/prepareUploadAnonymous File controller prepare upload anonymous[0] #
POST /v1/admin/file/prepareUploadAnonymous File controller prepare upload anonymous[1] v1 #
POST /admin/file/prepareUpload File controller prepare upload[0] #
POST /v1/admin/file/prepareUpload File controller prepare upload[1] v1 #
GET /admin/flags/flags Feature flags admin controller get flags[0] #
GET /v1/admin/flags/flags Feature flags admin controller get flags[1] v1 #
POST /admin/flags/flag Feature flags admin controller create flag[0] #
POST /v1/admin/flags/flag Feature flags admin controller create flag[1] v1 #
PUT /admin/flags/flag/{flagId} Feature flags admin controller update flag[0] #
DELETE /admin/flags/flag/{flagId} Permanently delete a feature flag and its rules. #
PUT /v1/admin/flags/flag/{flagId} Feature flags admin controller update flag[1] v1 #
DELETE /v1/admin/flags/flag/{flagId} Permanently delete a feature flag and its rules. #
GET /admin/flags/flag/{flagId}/deletion-preview Preview deleting a feature flag: the flag and what deleting it does. #
GET /v1/admin/flags/flag/{flagId}/deletion-preview Preview deleting a feature flag: the flag and what deleting it does. #
GET /admin/flags/segments Feature flags admin controller get segments[0] #
GET /v1/admin/flags/segments Feature flags admin controller get segments[1] v1 #
POST /admin/flags/segment Feature flags admin controller create segment[0] #
POST /v1/admin/flags/segment Feature flags admin controller create segment[1] v1 #
PUT /admin/flags/segment/{segmentId} Feature flags admin controller update segment[0] #
DELETE /admin/flags/segment/{segmentId} Permanently delete an audience segment. #
PUT /v1/admin/flags/segment/{segmentId} Feature flags admin controller update segment[1] v1 #
DELETE /v1/admin/flags/segment/{segmentId} Permanently delete an audience segment. #
GET /admin/flags/onboarding/status Feature-flag onboarding live-signal status (TBP-205) #
GET /v1/admin/flags/onboarding/status Feature-flag onboarding live-signal status (TBP-205) #
GET /admin Root controller index[0] #
GET /v1/admin Root controller index[1] v1 #
GET /admin/tick Root controller tick[0] #
GET /v1/admin/tick Root controller tick[1] v1 #
GET /admin/brand Read the branding applied to the Bridge-hosted auth pages #
PUT /admin/brand Update the branding of the Bridge-hosted auth pages. Partial update #
GET /v1/admin/brand Read the branding applied to the Bridge-hosted auth pages #
PUT /v1/admin/brand Update the branding of the Bridge-hosted auth pages. Partial update #
GET /admin/brand/css Branding admin controller get css[0] #
POST /admin/brand/css Branding admin controller upsert CSS[0] #
DELETE /admin/brand/css Reset the app's custom CSS to the default (TBP-552) #
GET /v1/admin/brand/css Branding admin controller get css[1] v1 #
POST /v1/admin/brand/css Branding admin controller upsert CSS[1] v1 #
DELETE /v1/admin/brand/css Reset the app's custom CSS to the default (TBP-552) #

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/thebridge-dev:thebridge-dev-admin-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

thebridge-dev-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bridge Admin API
  description: 'Bridge Platform REST API. GraphQL: see /graphql playground.'
  version: '1.0'
  contact: {}
servers: []
tags:
- name: Admin
paths:
  /admin/file/prepareUploadAnonymous:
    post:
      operationId: FileController_prepareUploadAnonymous[0]
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareUploadRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareUploadResponseDto'
      tags:
      - Admin
      summary: File controller prepare upload anonymous[0]
      x-summary-source: derived
  /v1/admin/file/prepareUploadAnonymous:
    post:
      operationId: FileController_prepareUploadAnonymous[1]_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareUploadRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareUploadResponseDto'
      tags:
      - Admin
      summary: File controller prepare upload anonymous[1] v1
      x-summary-source: derived
  /admin/file/prepareUpload:
    post:
      operationId: FileController_prepareUpload[0]
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareUploadRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareUploadResponseDto'
      tags:
      - Admin
      summary: File controller prepare upload[0]
      x-summary-source: derived
  /v1/admin/file/prepareUpload:
    post:
      operationId: FileController_prepareUpload[1]_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrepareUploadRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareUploadResponseDto'
      tags:
      - Admin
      summary: File controller prepare upload[1] v1
      x-summary-source: derived
  /admin/flags/flags:
    get:
      operationId: FeatureFlagsAdminController_getFlags[0]
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller get flags[0]
      x-summary-source: derived
  /v1/admin/flags/flags:
    get:
      operationId: FeatureFlagsAdminController_getFlags[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller get flags[1] v1
      x-summary-source: derived
  /admin/flags/flag:
    post:
      operationId: FeatureFlagsAdminController_createFlag[0]
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlagInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller create flag[0]
      x-summary-source: derived
  /v1/admin/flags/flag:
    post:
      operationId: FeatureFlagsAdminController_createFlag[1]_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlagInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller create flag[1] v1
      x-summary-source: derived
  /admin/flags/flag/{flagId}:
    put:
      operationId: FeatureFlagsAdminController_updateFlag[0]
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlagInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller update flag[0]
      x-summary-source: derived
    delete:
      operationId: FeatureFlagsAdminController_deleteFlag[0]
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: Permanently delete a feature flag and its rules.
      tags:
      - Admin
  /v1/admin/flags/flag/{flagId}:
    put:
      operationId: FeatureFlagsAdminController_updateFlag[1]_v1
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FlagInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOutput'
      tags:
      - Admin
      summary: Feature flags admin controller update flag[1] v1
      x-summary-source: derived
    delete:
      operationId: FeatureFlagsAdminController_deleteFlag[1]_v1
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: Permanently delete a feature flag and its rules.
      tags:
      - Admin
  /admin/flags/flag/{flagId}/deletion-preview:
    get:
      operationId: FeatureFlagsAdminController_previewDeleteFlag[0]
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: 'Preview deleting a feature flag: the flag and what deleting it does.'
      tags:
      - Admin
  /v1/admin/flags/flag/{flagId}/deletion-preview:
    get:
      operationId: FeatureFlagsAdminController_previewDeleteFlag[1]_v1
      parameters:
      - name: flagId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: 'Preview deleting a feature flag: the flag and what deleting it does.'
      tags:
      - Admin
  /admin/flags/segments:
    get:
      operationId: FeatureFlagsAdminController_getSegments[0]
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller get segments[0]
      x-summary-source: derived
  /v1/admin/flags/segments:
    get:
      operationId: FeatureFlagsAdminController_getSegments[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller get segments[1] v1
      x-summary-source: derived
  /admin/flags/segment:
    post:
      operationId: FeatureFlagsAdminController_createSegment[0]
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller create segment[0]
      x-summary-source: derived
  /v1/admin/flags/segment:
    post:
      operationId: FeatureFlagsAdminController_createSegment[1]_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller create segment[1] v1
      x-summary-source: derived
  /admin/flags/segment/{segmentId}:
    put:
      operationId: FeatureFlagsAdminController_updateSegment[0]
      parameters:
      - name: segmentId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller update segment[0]
      x-summary-source: derived
    delete:
      operationId: FeatureFlagsAdminController_deleteSegment[0]
      parameters:
      - name: segmentId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: Permanently delete an audience segment.
      tags:
      - Admin
  /v1/admin/flags/segment/{segmentId}:
    put:
      operationId: FeatureFlagsAdminController_updateSegment[1]_v1
      parameters:
      - name: segmentId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SegmentOutput'
      tags:
      - Admin
      summary: Feature flags admin controller update segment[1] v1
      x-summary-source: derived
    delete:
      operationId: FeatureFlagsAdminController_deleteSegment[1]_v1
      parameters:
      - name: segmentId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      summary: Permanently delete an audience segment.
      tags:
      - Admin
  /admin/flags/onboarding/status:
    get:
      description: Returns per-signal detection state for the FF onboarding wizard. Polled every 5–7s by `/onboarding/flags` while the user is integrating.
      operationId: OnboardingStatusController_getStatus[0]
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOnboardingStatusDto'
      summary: Feature-flag onboarding live-signal status (TBP-205)
      tags:
      - Admin
  /v1/admin/flags/onboarding/status:
    get:
      description: Returns per-signal detection state for the FF onboarding wizard. Polled every 5–7s by `/onboarding/flags` while the user is integrating.
      operationId: OnboardingStatusController_getStatus[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlagOnboardingStatusDto'
      summary: Feature-flag onboarding live-signal status (TBP-205)
      tags:
      - Admin
  /admin:
    get:
      operationId: RootController_index[0]
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      tags:
      - Admin
      summary: Root controller index[0]
      x-summary-source: derived
  /v1/admin:
    get:
      operationId: RootController_index[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      tags:
      - Admin
      summary: Root controller index[1] v1
      x-summary-source: derived
  /admin/tick:
    get:
      operationId: RootController_tick[0]
      parameters:
      - name: sleepMs
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      tags:
      - Admin
      summary: Root controller tick[0]
      x-summary-source: derived
  /v1/admin/tick:
    get:
      operationId: RootController_tick[1]_v1
      parameters:
      - name: sleepMs
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      tags:
      - Admin
      summary: Root controller tick[1] v1
      x-summary-source: derived
  /admin/brand:
    get:
      operationId: BrandingAdminController_getBranding[0]
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandingOutput'
      summary: Read the branding applied to the Bridge-hosted auth pages
      tags:
      - Admin
    put:
      operationId: BrandingAdminController_updateBranding[0]
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBrandingRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandingOutput'
      summary: Update the branding of the Bridge-hosted auth pages. Partial update
      tags:
      - Admin
  /v1/admin/brand:
    get:
      operationId: BrandingAdminController_getBranding[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandingOutput'
      summary: Read the branding applied to the Bridge-hosted auth pages
      tags:
      - Admin
    put:
      operationId: BrandingAdminController_updateBranding[1]_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBrandingRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandingOutput'
      summary: Update the branding of the Bridge-hosted auth pages. Partial update
      tags:
      - Admin
  /admin/brand/css:
    get:
      operationId: BrandingAdminController_getCss[0]
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Admin
      summary: Branding admin controller get css[0]
      x-summary-source: derived
    post:
      operationId: BrandingAdminController_upsertCSS[0]
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Admin
      summary: Branding admin controller upsert CSS[0]
      x-summary-source: derived
    delete:
      operationId: BrandingAdminController_deleteCssFile[0]
      parameters: []
      responses:
        '200':
          description: ''
      summary: Reset the app's custom CSS to the default (TBP-552)
      tags:
      - Admin
  /v1/admin/brand/css:
    get:
      operationId: BrandingAdminController_getCss[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - Admin
      summary: Branding admin controller get css[1] v1
      x-summary-source: derived
    post:
      operationId: BrandingAdminController_upsertCSS[1]_v1
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - Admin
      summary: Branding admin controller upsert CSS[1] v1
      x-summary-source: derived
    delete:
      operationId: BrandingAdminController_deleteCssFile[1]_v1
      parameters: []
      responses:
        '200':
          description: ''
      summary: Reset the app's custom CSS to the default (TBP-552)
      tags:
      - Admin
components:
  schemas:
    OnboardingSignals:
      type: object
      properties:
        sdk_initialized:
          description: True once the SDK has reported any liveness — either a recent flag_last_eval row or a recorded call-site for this app. Maps to "✓ SDK pinged us" in the wizard.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignalState'
        flag_discovered:
          description: True once at least one flag has been auto-discovered via the discovery telemetry endpoint. `count` is the number of distinct discovered flag keys. Maps to "✓ first flag discovered" in the wizard.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignalState'
        eval_received:
          description: True once any eval event has been ingested for this app. `count` is the total eval-events summed across all flags (from `flag_last_eval.totalEvals`). Maps to "✓ first flag eval" in the wizard.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignalState'
        attribute_seen:
          description: True once at least one attribute key has been auto-discovered. `count` is the number of distinct discovered attribute keys. Maps to "✓ attributes attached" in the wizard.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignalState'
        flag_activated:
          description: True once a flag has been toggled ON (state != off) AND re-evaluated since that toggle (an eval-rollup row whose server-side updatedAt is newer than the flag config's updatedAt). Proves the toggle propagated to the running app. Maps to the "Turn it on" onboarding step.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignalState'
      required:
      - sdk_initialized
      - flag_discovered
      - eval_received
      - attribute_seen
      - flag_activated
    UpdateBrandingRequestDto:
      type: object
      properties:
        bgColor:
          type: string
        fontFamily:
          type: string
        primaryButtonBgColor:
          type: string
        primaryButtonTextColor:
          type: string
        tertiaryButtonBgColor:
          type: string
        tertiaryButtonTextColor:
          type: string
        textColor:
          type: string
        linkColor:
          type: string
        borderRadius:
          type: string
        boxShadow:
          type: string
    BrandingOutput:
      type: object
      properties:
        defaultValues:
          $ref: '#/components/schemas/BrandingProps'
        customCss:
          type: boolean
        bgColor:
          type: string
        fontFamily:
          type: string
        primaryButtonBgColor:
          type: string
        primaryButtonTextColor:
          type: string
        tertiaryButtonBgColor:
          type: string
        tertiaryButtonTextColor:
          type: string
        textColor:
          type: string
        linkColor:
          type: string
        borderRadius:
          type: string
        boxShadow:
          type: string
      required:
      - defaultValues
      - customCss
      - bgColor
      - fontFamily
      - primaryButtonBgColor
      - primaryButtonTextColor
      - tertiaryButtonBgColor
      - tertiaryButtonTextColor
      - textColor
      - linkColor
      - borderRadius
      - boxShadow
    SegmentOutput:
      type: object
      properties: {}
    FlagInput:
      type: object
      properties: {}
    SegmentInput:
      type: object
      properties: {}
    PrepareUploadRequestDto:
      type: object
      properties:
        name:
          type: string
        contentType:
          type: string
      required:
      - name
      - contentType
    BrandingProps:
      type: object
      properties:
        bgColor:
          type: string
        fontFamily:
          type: string
        primaryButtonBgColor:
          type: string
        primaryButtonTextColor:
          type: string
        tertiaryButtonBgColor:
          type: string
        tertiaryButtonTextColor:
          type: string
        textColor:
          type: string
        linkColor:
          type: string
        borderRadius:
          type: string
        boxShadow:
          type: string
      required:
      - bgColor
      - fontFamily
      - primaryButtonBgColor
      - primaryButtonTextColor
      - tertiaryButtonBgColor
      - tertiaryButtonTextColor
      - textColor
      - linkColor
      - borderRadius
      - boxShadow
    OnboardingSignalState:
      type: object
      properties:
        detected:
          type: boolean
          description: True once the signal has been observed at least once for this app. Sticky — never flips back to false.
        lastSeenAt:
          type:
          - number
          - 'null'
          description: Most recent observation time in epoch milliseconds. Present when detected = true.
        count:
          type:
          - number
          - 'null'
          description: Total rows in the backing collection scoped to this app. Lets the UI render "3 flags discovered" / "42 evals received". Optional and signal-specific.
      required:
      - detected
    FlagOutput:
      type: object
      properties: {}
    FlagOnboardingStatusDto:
      type: object
      properties:
        appId:
          type: string
          description: The app this status snapshot belongs to.
        signals:
          description: Per-signal detection state.
          allOf:
          - $ref: '#/components/schemas/OnboardingSignals'
      required:
      - appId
      - signals
    PrepareUploadResponseDto:
      type: object
      properties:
        url:
          type: string
        fields:
          type: object
      required:
      - url
      - fields
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
    x-app-id:
      type: apiKey
      in: header
      name: x-app-id