---
title: "Discover the OpenID Connect provider for an email address"
method: GET
path: "/api/discover/{email}"
tags: ["Authentication"]
---

# Discover the OpenID Connect provider for an email address

`GET /api/discover/{email}`

Returns the OpenID Connect discovery document for the directory that
owns the domain part of `email`. If the domain is not bound to an
external OIDC directory, the server's own OIDC discovery document
(equivalent to `/.well-known/openid-configuration`) is returned.
Anonymous endpoint, rate-limited.

## Path parameters

- `email` string, email, required

## Response `200`

OpenID Connect discovery document

- object — OIDC discovery metadata (RFC 8414)

## Other responses

- `404` — Resource not found
- `429` — Anonymous-request rate limit exceeded

---

[API](https://skmtc.net/stalwartlabs/apis/stalwart-management-api.md) · [All operations](https://skmtc.net/stalwartlabs/apis/stalwart-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stalwartlabs/stalwart-management-api/versions/a38a1bbfe8b2/schema)
