List connection uri domains (deprecated)
This API is deprecated. Please use the v2 version of this API. In the v2 version of the API, the login methods are no longer enabled using the emailPasswordEnabled, thirdPartyEnabled and passwordlessEnabled inputs. Instead, they are enabled using factorIds (such as emailpassword, otp-email, etc) specified in the firstFactors and requiredSecondaryFactors inputs. Please refer Multitenancy Docs to know the list of factorIds available.
Note: This deprecated API still returns emailPasswordEnabled, thirdPartyEnabled and passwordlessEnabled values for backward compatibility, and it’s values are derived from the firstFactors and requiredSecondaryFactors configured for the tenant. The detailed computation of the values as per CDI version is described here: https://github.com/supertokens/supertokens-core/issues/979#issuecomment-2099971371
Get a list of all connection uri domains.
Request must originate from base connection uri domain and public app and tenant.
/recipe/multitenancy/connectionuridomain/listdeprecatedapi-keyAPI key · headerrequiredridstringcdi-versionstringstatusstatusOKrequiredOKconnectionUriDomainsobject[]requiredShow propertiesHide properties
objectconnectionUriDomainstringappsobject[]Show propertiesHide properties
objectappIdstringtenantstenantConfig[]Show propertiesHide properties
tenantConfigtenantIdtenantIdrequiredemailPasswordobjectrequiredShow propertiesHide properties
enabledbooleanrequiredthirdPartyobjectrequiredShow propertiesHide properties
enabledbooleanrequiredprovidersthirdPartyProviderConfig[]Show propertiesHide properties
thirdPartyProviderConfigthirdPartyIdstringrequirednamestringclientsobject[]Show propertiesHide properties
objectclientTypestringclientIdstringclientSecretstringscopestring[]forcePKCEbooleanadditionalConfigobjectauthorizationEndpointstringauthorizationEndpointQueryParamsobjecttokenEndpointstringtokenEndpointBodyParamsobjectuserInfoEndpointstringuserInfoEndpointQueryParamsobjectuserInfoEndpointHeadersobjectjwksURIstringoidcDiscoveryEndpointstringrequireEmailbooleanuserInfoMapobjectShow propertiesHide properties
fromIdTokenPayloadobjectShow propertiesHide properties
userIdstringemailstringemailVerifiedstringfromUserInfoAPIobjectShow propertiesHide properties
userIdstringemailstringemailVerifiedstringpasswordlessobjectrequiredShow propertiesHide properties
enabledbooleanrequiredfirstFactorsfirstFactorsrequiredSecondaryFactorsrequiredSecondaryFactorscoreConfigobjectrequiredstringstringstringstringTry it
curl -X GET "/recipe/multitenancy/connectionuridomain/list" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/recipe/multitenancy/connectionuridomain/list", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/recipe/multitenancy/connectionuridomain/list",
headers={
"api-key": "YOUR_API_KEY"
},
){
"status": "OK",
"connectionUriDomains": [
{
"connectionUriDomain": "core-1234.supertokens.io:3567",
"apps": [
{
"appId": "app1",
"tenants": [
{
"tenantId": "customer1",
"emailPassword": {
"enabled": true
},
"thirdParty": {
"enabled": true,
"providers": [
{
"thirdPartyId": "string",
"name": "string",
"clients": [
{
"clientType": "string",
"clientId": "string",
"clientSecret": "string",
"scope": [
"string"
],
"forcePKCE": true,
"additionalConfig": {}
}
],
"authorizationEndpoint": "string",
"authorizationEndpointQueryParams": {},
"tokenEndpoint": "string",
"tokenEndpointBodyParams": {},
"userInfoEndpoint": "string",
"userInfoEndpointQueryParams": {},
"userInfoEndpointHeaders": {},
"jwksURI": "string",
"oidcDiscoveryEndpoint": "string",
"requireEmail": true,
"userInfoMap": {
"fromIdTokenPayload": {
"userId": "string",
"email": "string",
"emailVerified": "string"
},
"fromUserInfoAPI": {
"userId": "string",
"email": "string",
"emailVerified": "string"
}
}
}
]
},
"passwordless": {
"enabled": true
},
"firstFactors": [
"emailpassword"
],
"requiredSecondaryFactors": [
"otp-phone"
],
"coreConfig": {}
}
]
}
]
}
]
}"string""Invalid API key""Not Found""Internal Error"