API ReferenceDiscovery
Discover By Email
Resolve an email address to its organization's auth configuration.
Endpoint
GET /v1/discovery:byEmailBase URL: https://<Domain id="api"/>
Authentication: None.
Matches the email's domain against registered organization domains. If multiple orgs match (common for consumer gmail addresses), returns the generic response indicating the caller should fall back to personal-account flows.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Full email address |
Example
const res = await fetch(
"https://api-id.avnology.net/v1/discovery:byEmail?" +
new URLSearchParams({ email: "[email protected]" })
);
const hrd = await res.json();
if (hrd.auth_options?.sso_required) {
resp, _ := http.Get(
"https://api-id.avnology.net/v1/discovery:byEmail?email=" + url.QueryEscape("[email protected]"),
)
defer resp.Body.Close()import httpx
hrd = httpx.get(
"https://api-id.avnology.net/v1/discovery:byEmail",
params={"email": "[email protected]"},
).json()const res = await fetch(
"https://api-id.avnology.net/v1/discovery:byEmail?" +
new URLSearchParams({ email: "[email protected]" })
);
const hrd = await res.json();
if (hrd.auth_options?.sso_required) {
resp, _ := http.Get(
"https://api-id.avnology.net/v1/discovery:byEmail?email=" + url.QueryEscape("[email protected]"),
)
defer resp.Body.Close()import httpx
hrd = httpx.get(
"https://api-id.avnology.net/v1/discovery:byEmail",
params={"email": "[email protected]"},
).json()const res = await fetch(
"https://api-id.avnology.net/v1/discovery:byEmail?" +
new URLSearchParams({ email: "[email protected]" })
);
const hrd = await res.json();
if (hrd.auth_options?.sso_required) {
resp, _ := http.Get(
"https://api-id.avnology.net/v1/discovery:byEmail?email=" + url.QueryEscape("[email protected]"),
)
defer resp.Body.Close()import httpx
hrd = httpx.get(
"https://api-id.avnology.net/v1/discovery:byEmail",
params={"email": "[email protected]"},
).json()const res = await fetch(
"https://api-id.avnology.net/v1/discovery:byEmail?" +
new URLSearchParams({ email: "[email protected]" })
);
const hrd = await res.json();
if (hrd.auth_options?.sso_required) {
resp, _ := http.Get(
"https://api-id.avnology.net/v1/discovery:byEmail?email=" + url.QueryEscape("[email protected]"),
)
defer resp.Body.Close()import httpx
hrd = httpx.get(
"https://api-id.avnology.net/v1/discovery:byEmail",
params={"email": "[email protected]"},
).json()