openapi: 3.0.1
info:
  title: Email Feedback Handler API Specification
  description: The Feedback Handler provides API endpoints to manage feedback from
    email notifications sent to recipient
  version: 1.0.143
servers:
- description: ''
  url: https://api.btx.fr.banqup.com/core/feedback
- description: ''
  url: https://api.btx.eu.banqup.com/core/feedback
paths: {}
components:
  schemas:
    EventData:
      required:
      - event
      - id
      type: object
      properties:
        event:
          type: string
        timestamp:
          type: string
        id:
          type: string
        envelope:
          type: object
        message:
          type: object
        recipient:
          type: string
        user-variables:
          $ref: '#/components/schemas/UserVariables'
    MailgunFeedbackRequest:
      type: object
      properties:
        signature:
          $ref: '#/components/schemas/Signature'
        event-data:
          $ref: '#/components/schemas/EventData'
    Signature:
      required:
      - signature
      - timestamp
      - token
      type: object
      properties:
        timestamp:
          type: string
        token:
          type: string
        signature:
          type: string
    UserVariables:
      required:
      - reference
      type: object
      properties:
        reference:
          maxLength: 2147483647
          minLength: 72
          type: string
    ApiErrorProblemDetail:
      required:
      - error
      - requestId
      - timestamp
      type: object
      properties:
        status:
          type: integer
          format: int32
        error:
          type: string
        requestId:
          type: string
        timestamp:
          type: string
          format: date-time
        type:
          type: string
          format: uri
        title:
          type: string
        detail:
          type: string
        instance:
          type: string
          format: uri
        problems:
          type: array
          items:
            $ref: '#/components/schemas/NestedProblem'
        properties:
          type: object
          additionalProperties:
            type: object
    NestedProblem:
      required:
      - detail
      - error
      - title
      type: object
      properties:
        error:
          type: string
        title:
          type: string
        detail:
          type: string
        type:
          type: string
          format: uri
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.btx.fr.banqup.com/oauth2/client_credential/gettoken
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
        authorizationCode:
          authorizationUrl: https://api.btx.fr.banqup.com/oauth2/auth
          tokenUrl: https://api.btx.fr.banqup.com/oauth2/token
          scopes:
            info: Scopes are endpoint-specific, see each endpoint for required scope.
