Gamma API
AuthenticationSign-in configuration

Find an address's home region

POST
/api/auth-config/home-region

The region whose issuer the address signs in at: this one when the address has an account here, the guest's home region when it is a guest here; otherwise the one region where its domain is an organization's verified SSO domain or where it has an account, else this one. Null for a single region, and when more than one region claims the address: the person chooses. At most 10 a minute per client, then 429. Needs no session.

Who may call it: Anyone; no session needed.

Request Body

application/json
  1. body
email*string

The address someone signs in with.

Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
Lengthlength <= 254

Response Body

OK.

application/json
  1. response
region*|

The region the address signs in at: this one when no region knows it; null for a single region, and when more than one region claims the address, for the person to choose.

Example Request
curl -X POST 'http://localhost:3000/api/auth-config/home-region' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
Example Response
{  "region": "string"}