Resolve a tenant discovery input.
POST
/api/auth/discovery
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/auth/discovery \ --header 'Content-Type: application/json' \Resolves an email domain, tenant code, tenant slug, invitation token, WAYF choice, or app hint into one or more tenant login candidates.
Request Body required
Section titled “Request Body required ” Media type application/json
object
mode
required
string
value
required
string
Example
{ "mode": "email",}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
One of:
object
result
required
string
candidate
required
object
tenant_id
required
string
tenant_code
required
string
display_name
required
string
logo_url
string | null format: uri
login_url
required
string format: uri
source
required
string
invited_email
string | null
object
result
required
string
candidates
required
Array<object>
object
tenant_id
required
string
tenant_code
required
string
display_name
required
string
logo_url
string | null format: uri
login_url
required
string format: uri
source
required
string
object
result
required
string
methods
required
Array<string>
allow_manual_tenant_entry
required
boolean
object
result
required
string
code
required
string
Example
{ "result": "resolved", "candidate": { "tenant_id": "tenant_123", "tenant_code": "acme", "display_name": "Acme", "logo_url": null, "login_url": "https://acme.auth.example.com/login", "source": "email_domain" }}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}