openapi: 3.0.3 info: title: bexio Accounting Files API description: REST API for bexio, the Swiss cloud business-management platform (accounting, invoicing, contacts, projects, payroll). All endpoints are served over HTTPS under https://api.bexio.com/2.0. JSON is the data-interchange format. Authentication is OAuth 2.0 Authorization Code (OpenID Connect) or a Personal Access Token (PAT); both are presented as a Bearer token. This document is modeled from the public documentation, not a first-party spec. termsOfService: https://www.bexio.com/en-CH/gtc contact: name: bexio Developer Support url: https://developer.bexio.com/ version: '2.0' servers: - url: https://api.bexio.com/2.0 description: bexio API v2.0 (Switzerland) security: - bearerAuth: [] tags: - name: Files paths: /files: get: operationId: listFiles tags: - Files summary: List files responses: '200': description: A list of files. post: operationId: uploadFile tags: - Files summary: Upload a file requestBody: required: true content: multipart/form-data: schema: type: object properties: file: type: string format: binary responses: '201': description: The uploaded file metadata. components: securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT description: 'OAuth 2.0 Authorization Code (OpenID Connect, issuer https://auth.bexio.com/realms/bexio) access token, or a Personal Access Token (PAT), presented as an Authorization: Bearer header.'