Portal Auth
Manage the Ares-backed authentication configuration for a portal.
Portal Auth object
Attributes
object
Stringid
StringThe Ares app identifier for this portal.
slug
StringNullableThe Ares app slug.
email_whitelist
Array of Stringscreated_at
Dateupdated_at
Date{"object": "portal.auth.app","id": "example_id","slug": "example_slug","email_whitelist": ["example_item"],"created_at": "2026-05-22T18:43:37.154Z","updated_at": "2026-05-22T18:43:37.154Z"}
Get portal auth app
Returns the Ares app configuration for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/app" \-H "Authorization: Bearer metorial_sk_..."
Update portal auth app
Updates the portal auth app configuration stored on the portal surface.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
email_whitelist
Array of StringsOptionalcurl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/app" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"email_whitelist": ["example_item"]}'
List portal auth SSO tenants
Returns the SSO tenants configured for a portal Ares app.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants" \-H "Authorization: Bearer metorial_sk_..."
Create portal auth SSO tenant
Creates an SSO tenant for the portal Ares app.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
name
Stringcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name"}'
Create portal auth SSO tenant setup
Creates an Ares setup URL for finishing portal SSO tenant configuration.
URL Parameters
portal_id
StringThe unique identifier for the portal
sso_tenant_id
StringThe unique identifier for the sso_tenant
curl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants/sso_Rm4Mnheq2bfEPhBhP7SY/setup" \-H "Authorization: Bearer metorial_sk_..."
List portal auth SSO tenant connections
Returns SSO connections that belong to a portal SSO tenant.
URL Parameters
portal_id
StringThe unique identifier for the portal
sso_tenant_id
StringThe unique identifier for the sso_tenant
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants/sso_Rm4Mnheq2bfEPhBhP7SY/connections" \-H "Authorization: Bearer metorial_sk_..."