openapi: 3.0.0 info: title: Border0 Audit Actions Login API description: Border0 is an identity-aware Zero Trust network access platform for securing access to servers, databases, Kubernetes clusters, and internal web services. This REST API manages sockets (protected services), policies, connectors, organizations, identity providers, service accounts, sessions, and audit logs. version: '1.0' contact: name: Border0 Support email: support@border0.com url: https://docs.border0.com servers: - url: https://api.border0.com/api/v1 tags: - name: Login paths: /login/refresh: post: security: - Border0_Token: [] summary: Refresh API token responses: '200': description: OK content: application/json: schema: type: object properties: token: type: string '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/v1.BaseErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/v1.BaseErrorResponse' operationId: post_login-refresh tags: - Login /login: post: summary: User login requestBody: content: application/json: schema: $ref: '#/components/schemas/v1.loginRequest' description: Login credentials required: true responses: '200': description: OK content: application/json: schema: type: object properties: require_mfa: type: boolean token: type: string '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/v1.BaseErrorResponse' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/v1.BaseErrorResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/v1.BaseErrorResponse' operationId: post_login tags: - Login components: schemas: v1.BaseErrorResponse: type: object properties: error_message: type: string status_code: type: integer v1.loginRequest: type: object required: - email - password properties: email: type: string maxLength: 200 minLength: 1 password: type: string maxLength: 200 minLength: 1 recaptcha_response: type: string securitySchemes: Border0_Token: type: apiKey name: Authorization in: header