> ## Documentation Index
> Fetch the complete documentation index at: https://prismeai-docs-next.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get v2login

> Starts generic authentication. Provide either a provider slug or a domain to auto-discover the SSO provider.



## OpenAPI

````yaml /api-reference/swagger.yml get /v2/login
openapi: 3.0.0
info:
  version: 1.0.0
  title: Prisme.ai APIs
  description: Prisme.ai APIs specifications
  termsOfService: https://www.prisme.ai/mentions-legales
  contact:
    name: Prisme.ai Support Team
    email: support@prisme.ai
    url: https://www.prisme.ai
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.eda.prisme.ai
  - url: http://localhost:3001
security:
  - BearerAuth: []
  - WorkspaceApiKeyAuth: []
  - BearerAuth: []
    WorkspaceApiKeyAuth: []
paths:
  /v2/login:
    get:
      tags:
        - API Gateway
        - AuthProviders
      description: >-
        Starts generic authentication. Provide either a provider slug or a
        domain to auto-discover the SSO provider.
      operationId: genericAuthInit
      parameters:
        - name: provider
          in: query
          description: Auth provider slug. Required if domain is not provided.
          required: false
          schema:
            type: string
        - name: domain
          in: query
          description: >-
            Email domain (e.g. "acme.com"). When provided, auto-discovers the
            SSO provider matching this domain. If no SSO provider matches,
            returns a 200 JSON response with provider "local".
          required: false
          schema:
            type: string
      responses:
        '200':
          description: SSO or local authentication identifier
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider:
                    type: string
                    example: local
                required:
                  - provider
        '302':
          description: Redirection to the SSO provider
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key

````