---
title: "Get Login Provider"
method: POST
path: "/public/login-provider"
tags: ["public", "auth"]
---

# Get Login Provider

`POST /public/login-provider`

Public endpoint — resolves which login flow serves an email address, by
the login_provider_type of the company owning the email's domain, for the
email-first /auth page.

Keyed on domain, not the user (two emails at the same domain return the
same answer), so it discloses a domain's login provider like any
email-first SSO flow, and never whether a particular user exists.

## Request body

- LoginProviderRequest
  - `email` string, required

## Response `200`

Successful Response

- LoginProviderResponse
  - `provider` 'google' | 'microsoft' | 'saml' | 'supertokens_saml', required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/fastapi.md) · [All operations](https://skmtc.dev/kobaltlabs/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kobaltlabs/fastapi/revisions/425d5b8a3c17/schema)
