Backstage Provider API

List of endpoints per provider

Operations 4

GET /start Initializes the authorization flow and redirects to a consent screen for the… #
GET /frame/handler Handles the response from the consent popup for the provider #
GET /refresh Handles refreshing of tokens due to reload or expiry #
POST /logout Logs user out of the current provider #

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/backstage-provider-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

backstage-provider-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Auth Provider API
  description: '# Backstage''s auth-provider API.


    **Provided by `@backstage/auth-backend`.**


    The purpose of the Auth APIs in Backstage are to identify the user, and to provide a way for plugins

    to request access to 3rd party services on behalf of that user.


    The API is supplied with a list of providers - such as `Google` or `GitHub` - and will add the endpoints

    described below to each of those providers.


    Read more about User Authentication and Authorization in Backstage.'
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 0.1.1-alpha.8
servers:
- url: http://localhost:7007/api/auth/
tags:
- name: Provider
  description: List of endpoints per provider
paths:
  /start:
    get:
      tags:
      - Provider
      summary: Initializes the authorization flow and redirects to a consent screen for the…
      description: The popup window is pointed to the `/start` endpoint of the auth provider in the auth-backend plugin, which then redirects to the OAuth consent screen of the provider.
      parameters:
      - name: scope
        in: query
        description: Scope requested for the auth session. The scope format and handling is specific to each provider
        required: true
        schema:
          type: string
          example: email
      - name: env
        in: query
        description: Parameter to indicate runtime environment
        required: true
        schema:
          type: string
          example: development
      responses:
        302:
          description: Redirect to the consent popup
          headers:
            Location:
              description: The url to the consent popup
              schema:
                type: string
            Set-Cookie:
              description: Nonce cookie
              schema:
                $ref: '#/components/schemas/Nonce-Cookie'
        default:
          description: An error occurred
      operationId: getStart
      x-operation-id-source: derived
  /frame/handler:
    get:
      tags:
      - Provider
      summary: Handles the response from the consent popup for the provider
      description: If the login request is accepted, the popup window will be redirected back to the `/handler/frame` endpoint of the auth backend.
      parameters:
      - name: scope
        in: query
        description: Scope requested for the auth session
        required: true
        schema:
          type: string
          example: email
      - name: code
        in: query
        description: Short-term authorization code used to be exchanged for access tokens
        required: true
        schema:
          type: string
      - name: state
        in: query
        description: Nonce value stored in state
        required: true
        schema:
          type: string
      - name: provider-nonce
        in: cookie
        description: Nonce value stored in cookie
        required: true
        schema:
          type: string
      - name: env
        in: query
        description: Parameter to indicate runtime environment
        required: true
        schema:
          type: string
          example: development
      responses:
        200:
          description: Message received from consent popup
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/AuthResponse'
                - $ref: '#/components/schemas/AuthError'
              examples:
                AuthResponse:
                  summary: AuthResponse
                  value: "{\n  type: \"auth-result\",\n  payload: {\n      accessToken: \"access-token\",\n      idToken: \"id-token\",\n      expiresInSecond: 3600,\n      scope: \"email\"\n    }\n}\n"
                AuthError:
                  summary: AuthError
                  value: "{\n  type: \"auth-result\",\n  error: {\n    name: \"error\",\n    message: \"message\",\n    stack: \"stack\"\n  }\n}\n"
          headers:
            Set-Cookie:
              description: Refresh cookie
              schema:
                $ref: '#/components/schemas/Refresh-Cookie'
      operationId: getFrameHandler
      x-operation-id-source: derived
  /refresh:
    get:
      tags:
      - Provider
      summary: Handles refreshing of tokens due to reload or expiry
      description: If supported by the provider, the `/refresh` endpoint is responsible for refreshing the tokens using a refresh-token stored in a cookie
      parameters:
      - name: scope
        in: query
        description: Scope requested for the auth session
        required: true
        schema:
          type: string
          example: email
      - name: optional
        in: query
        description: Prevent the popup from being displayed
        schema:
          type: string
      - name: x-requested-with
        in: header
        description: X-Requested-With header preventing CSRF
        required: true
        schema:
          type: string
          example: 'x-requested-with: XMLHttpRequest'
      - name: provider-refresh-token
        in: cookie
        description: Refresh token used to refresh the current session
        required: true
        schema:
          type: string
      responses:
        200:
          description: Successfully refreshed the session
        401:
          description: Validation error
      operationId: getRefresh
      x-operation-id-source: derived
  /logout:
    post:
      tags:
      - Provider
      summary: Logs user out of the current provider
      description: When logging out the current session is removed and if present the cookie containing the refresh token is also removed
      parameters:
      - name: x-requested-with
        in: header
        description: X-Requested-With header preventing CSRF
        required: true
        schema:
          type: string
          example: 'x-requested-with: XMLHttpRequest'
      responses:
        200:
          description: Successfully logged out
          headers:
            Set-Cookie:
              description: Refresh cookie
              schema:
                $ref: '#/components/schemas/Refresh-Cookie'
        401:
          description: Validation error
      operationId: postLogout
      x-operation-id-source: derived
components:
  schemas:
    AuthError:
      type: object
      properties:
        type:
          type: string
        error:
          type: object
          properties:
            name:
              type: string
            message:
              type: string
            stack:
              type: string
    AuthResponse:
      type: object
      properties:
        type:
          type: string
        payload:
          type: object
          properties:
            accessToken:
              type: string
            idToken:
              type: string
            expiresInSeconds:
              type: number
            scope:
              type: string
    Nonce-Cookie:
      type: object
      properties:
        provider-nonce:
          type: string
        maxAge:
          type: integer
        secure:
          type: boolean
        sameSite:
          type: string
        domain:
          type: string
        path:
          type: string
        httpOnly:
          type: boolean
    Refresh-Cookie:
      type: object
      properties:
        provider-refresh-token:
          type: string
        maxAge:
          type: integer
        secure:
          type: boolean
        sameSite:
          type: string
        domain:
          type: string
        path:
          type: string
        httpOnly:
          type: boolean
externalDocs:
  description: Backstage official documentation
  url: https://backstage.io/docs