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

# Get login method for a domain

> Returns the login configuration for a given email domain. Use this to determine which authentication method (password, SSO, etc.) a user should use before initiating the login flow.

This endpoint does not require authentication.



## OpenAPI

````yaml /developers/openapi/identity.openapi.json get /api/v1/domains/login-method
openapi: 3.1.0
info:
  title: Identity API
  version: '1.0'
  description: >-
    The **Identity API** handles user identity on the anny platform. It runs on
    a dedicated auth service (`auth.anny.co`) separate from the booking API.


    Use the Identity API to:


    - **Detect login method** for a domain — determine whether a user should log
    in with a password, SSO redirect, or another protocol before starting the
    auth flow

    - **Update user profiles** — change name, contact details, locale, and
    timezone for authenticated users

    - **Request account deletion** — initiate GDPR-compliant deletion for a user


    ---


    ## Authentication


    All protected endpoints require a Bearer token in the `Authorization`
    header:


    ```

    Authorization: Bearer {access_token}

    ```


    Tokens are issued via OAuth2 or as Personal Access Tokens (PATs) from the
    admin dashboard.


    ## Related Guide


    [Authentication](/developers/guides/authentication) — full guide to tokens,
    OAuth2 flows, and client registration.


    ---


    ## Base URLs


    | Environment | URL |

    |---|---|

    | Production | `https://auth.anny.co` |

    | Gov-Cloud | `https://auth.anny.eu` |

    | Staging | `https://auth.staging.anny.co` |
  contact:
    name: anny GmbH
    url: https://anny.co
    email: support@anny.co
servers:
  - url: https://auth.anny.co
    description: Production
  - url: https://auth.anny.eu
    description: Gov-Cloud
  - url: https://auth.staging.anny.co
    description: Staging
security: []
tags:
  - name: Auth
paths:
  /api/v1/domains/login-method:
    get:
      tags:
        - Auth
      summary: Get login method for a domain
      description: >-
        Returns the login configuration for a given email domain. Use this to
        determine which authentication method (password, SSO, etc.) a user
        should use before initiating the login flow.


        This endpoint does not require authentication.
      operationId: get-domains-login-method
      parameters:
        - schema:
            type: string
            example: example.com
          in: query
          name: domain
          required: true
          description: The email domain to look up (e.g. `example.com`)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                    description: Human-readable name of the login method
                  method:
                    type: string
                    description: Login method identifier (e.g. `password`, `saml`, `oidc`)
                  protocol:
                    type:
                      - string
                      - 'null'
                    description: Authentication protocol used
                  redirect_uri:
                    type:
                      - string
                      - 'null'
                    description: SSO redirect URI if applicable
                  idp_uuid:
                    type:
                      - string
                      - 'null'
                    description: Identity provider UUID if using SSO
              examples:
                password:
                  value:
                    name: Password
                    method: password
                    protocol: null
                    redirect_uri: null
                    idp_uuid: null
                sso:
                  value:
                    name: Corporate SSO
                    method: saml
                    protocol: saml
                    redirect_uri: https://auth.anny.co/sso/saml/example
                    idp_uuid: a1b2c3d4-0000-0000-0000-000000000001
        '422':
          description: Unprocessable Entity — domain parameter missing or invalid

````