openapi: 3.2.0 info: title: Monite Access tokens API contact: name: Monite team url: https://monite.com/about/ email: developers@monite.com termsOfService: https://monite.com/terms version: '1.0' description: 'Operations tagged Access tokens across 3 of this provider''s published API definitions: monite-openapi-2023-09-01.json, monite-openapi-2024-05-25.json, monite-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment tags: - name: Access Tokens paths: /auth/revoke: post: tags: - Access Tokens summary: Revoke a token description: Revoke an existing token immediately. operationId: post_auth_revoke parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RevokeTokenPayload' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/MessageResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment /auth/token: post: tags: - Access Tokens summary: Create a token description: Create a new access token based on client ID and client secret. operationId: post_auth_token parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ObtainTokenPayload' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/AccessTokenResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment components: schemas: RevokeTokenPayload: properties: client_id: type: string format: uuid client_secret: type: string token: type: string additionalProperties: false type: object required: - client_id - client_secret - token MessageResponse: properties: message: type: string type: object required: - message ObtainTokenPayload: properties: client_id: type: string format: uuid client_secret: type: string entity_user_id: anyOf: - type: string format: uuid - type: 'null' grant_type: $ref: '#/components/schemas/GrantType' additionalProperties: false type: object required: - client_id - client_secret - grant_type HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array type: object ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array msg: type: string type: type: string type: object required: - loc - msg - type GrantType: type: string enum: - client_credentials - entity_user ErrorSchemaResponse: properties: error: $ref: '#/components/schemas/ErrorSchema' type: object required: - error AccessTokenResponse: properties: access_token: type: string examples: - L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg expires_in: type: integer examples: - 86400 token_type: type: string examples: - Bearer type: object required: - access_token - expires_in - token_type ErrorSchema: properties: message: type: string type: object required: - message securitySchemes: HTTPBearer: type: http scheme: bearer x-refined-from: - monite-openapi-2023-09-01.json - monite-openapi-2024-05-25.json - monite-openapi.yml