openapi: 3.0.3 info: title: Basiq Accounts Authentication API description: The Basiq API is an open banking and financial data platform providing unified access to Australian and New Zealand bank account data. It enables financial applications to retrieve account balances, transactions, income verification, and expense categorization via consumer-consented bank connections using CDR (Consumer Data Right) and third-party open banking standards. version: 3.0.0 contact: name: Basiq Support url: https://basiq.io/contact termsOfService: https://basiq.io/legal/terms-of-use/ servers: - url: https://au-api.basiq.io description: Basiq API (Australia) security: - BearerAuth: [] tags: - name: Authentication paths: /token: post: operationId: createToken summary: Create Token description: Exchange API key for a server token or user token for API access. tags: - Authentication security: [] requestBody: required: true content: application/x-www-form-urlencoded: schema: type: object properties: grant_type: type: string enum: - client_credentials scope: type: string description: SERVER_ACCESS or CLIENT_ACCESS required: - grant_type responses: '200': description: Access token content: application/json: schema: $ref: '#/components/schemas/TokenResponse' '400': $ref: '#/components/responses/BadRequest' components: responses: BadRequest: description: Invalid request parameters content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' schemas: TokenResponse: type: object properties: access_token: type: string description: JWT access token token_type: type: string description: Token type (Bearer) expires_in: type: integer description: Token expiry in seconds ErrorResponse: type: object properties: type: type: string title: type: string code: type: string detail: type: string source: type: object securitySchemes: BearerAuth: type: http scheme: bearer bearerFormat: JWT