Skip to content

Find how an e-mail address signs in

POST
/api/auth/discover
curl --request POST \
--url https://forge.example.com/api/auth/discover \
--header 'Content-Type: application/json' \
--data '{ "email": "example" }'

Answers whether the address signs in with a password or through its organization’s identity provider. An address nobody uses gets an answer of the same shape, so the answer tells nobody who is a customer.

Media typeapplication/json
object
email
required
string

Example generated

{
"email": "example"
}

OK

Media typeapplication/json
object
method
required
string
organization
required
null | string
start
required
null | string

Example generated

{
"method": "example",
"organization": "example",
"start": "example"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}