openapi: 3.0.1
info:
  title: Authorization
  description: Authorization API used for accessing resouces using ouath2 with client_credentials
  version: 1.0.0
servers:
- description: Main Server
  url: https://api.btx.fr.banqup.com/oauth2/client_credential
- description: Main Server
  url: https://api.btx.eu.banqup.com/oauth2/client_credential
tags:
- name: Authorization
  description: Apigee OAuth2
paths:
  /gettoken:
    post:
      tags:
      - OAuth2
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - grant_type
              - client_id
              - client_secret
              properties:
                grant_type:
                  type: string
                  enum:
                  - client_credentials
                  default: client_credentials
                client_id:
                  type: string
                  description: The client's public identifier.
                client_secret:
                  type: string
                  description: The client's private secret.
      responses:
        '200':
          description: Successful response
      summary: Get bearer token and details
      description: 'Click on this link for further details: [API authentication and
        authorization](../../../../docs/api-guides/developer-tools/api-authentication#api-authentication-and-authorization)
        <br/> Scope: []'
  /accesstoken:
    post:
      tags:
      - OAuth2
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - grant_type
              - client_id
              - client_secret
              properties:
                grant_type:
                  type: string
                  enum:
                  - client_credentials
                  default: client_credentials
                client_id:
                  type: string
                  description: The client's public identifier.
                client_secret:
                  type: string
                  description: The client's private secret.
      responses:
        '200':
          description: Successful response
      summary: Get bearer token
      description: 'Click on this link for further details: [API authentication and
        authorization](../../../../docs/api-guides/developer-tools/api-authentication#api-authentication-and-authorization)
        <br/> Scope: []'
  /validate:
    post:
      tags:
      - OAuth2
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - bearer
              properties:
                bearer:
                  type: string
                  description: The Bearer to be validated.
      responses:
        '200':
          description: Successful response
      summary: Validate bearer token
      description: 'Token validator <br/> Scope: []'
  /.well-known/openid-configuration:
    get:
      tags:
      - OAuth2
      responses:
        '200':
          description: Successful response
      summary: /.well-known
      description: '  <br/> Scope: []'
  /protocol/openid-connect/certs:
    get:
      tags:
      - OAuth2
      responses:
        '200':
          description: Successful response
      summary: /certs
      description: '  <br/> Scope: []'
