Switchfly OAuth 2 - SSO Authorize API

Switchfly OAuth 2 SSO request to 3rd party

Operations 1

POST /token Endpoint for authentication #

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/switchfly-oauth-2-sso-authorize-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

switchfly-oauth-2-sso-authorize-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Switchfly Loyalty OAuth 2 - SSO Authorize API
  description: Switchfly uses **OAuth 2** for the SSO authentication required to communicate with any 3rd party API in order to perform loyalty account actions.
  version: v3.4
tags:
- name: OAuth 2 - SSO Authorize
  description: Switchfly OAuth 2 SSO request to 3rd party
paths:
  /token:
    post:
      tags:
      - OAuth 2 - SSO Authorize
      summary: Endpoint for authentication
      description: This is the token endpoint that will be used either to retrieve a token exchanging the authorization `code` when `grant_type=authorization_code` is used for the SSO.
      operationId: TokenRequest
      requestBody:
        description: Token request body
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              oneOf:
              - $ref: '#/components/schemas/AuthorizationCode'
              - $ref: '#/components/schemas/ClientCredentials'
              - $ref: '#/components/schemas/RefreshToken'
      responses:
        '200':
          description: Successful authentication
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/AuthorizationCodeTokenResponse'
                - $ref: '#/components/schemas/RefreshTokenTokenResponse'
                - $ref: '#/components/schemas/ClientCredentialsTokenResponse'
components:
  schemas:
    ClientCredentialsTokenResponse:
      type: object
      required:
      - access_token
      properties:
        access_token:
          type: string
          description: The access token issued by the authorization server.
        token_type:
          type: string
          description: Type of token issued.
        expires_in:
          type: integer
          description: The lifetime of the access token in seconds.
    AuthorizationCode:
      required:
      - grant_type
      - client_id
      - code
      - code_verifier
      - redirect_uri
      - scope
      type: object
      properties:
        grant_type:
          type: string
          enum:
          - authorization_code
          description: The type of grant being used in the request
        client_id:
          type: string
        code:
          type: string
        code_verifier:
          type: string
        scope:
          type: string
          enum:
          - profile redeem
        redirect_uri:
          type: string
          example: https://domain.switchfly.com/apps/api/sso/oauth2
    RefreshToken:
      required:
      - grant_type
      - refresh_token
      - redirect_uri
      type: object
      properties:
        grant_type:
          type: string
          enum:
          - refresh_token
        refresh_token:
          type: string
        redirect_uri:
          type: string
    RefreshTokenTokenResponse:
      type: object
      required:
      - access_token
      - refresh_token
      properties:
        access_token:
          type: string
          description: The access token issued by the authorization server.
        token_type:
          type: string
          description: Type of token issued.
        refresh_token:
          type: string
          description: The refresh token issued by the authorization server. (only when using  grant `authorization_code`)
        expires_in:
          type: integer
          description: The lifetime of the access token in seconds.
    AuthorizationCodeTokenResponse:
      type: object
      required:
      - access_token
      - refresh_token
      properties:
        access_token:
          type: string
          description: The access token issued by the authorization server.
        token_type:
          type: string
          description: Type of token issued.
        refresh_token:
          type: string
          description: The refresh token issued by the authorization server. (only when using  grant `authorization_code`)
        expires_in:
          type: integer
          description: The lifetime of the access token in seconds.
    ClientCredentials:
      required:
      - grant_type
      - client_id
      - client_secret
      - scope
      type: object
      properties:
        grant_type:
          type: string
          enum:
          - client_credentials
        client_id:
          type: string
        client_secret:
          type: string
        scope:
          type: string
          enum:
          - profile redeem
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Uses token retrieved from OAuth 2 SSO token requests
    adminBearerAuth:
      type: http
      scheme: bearer
      description: Uses token retrieved from Machine to Machine OAuth 2 client credentials token request.