Portal Auth
Connect various authentication factors to your portal instance.
Portal Auth object
Attributes
object
StringType of the object, fixed as consumer auth factor
id
StringThe unique identifier for the consumer auth factor
type
EnumThe type of consumer auth factor
status
EnumThe status of the consumer auth factor
name
StringThe internal name of the consumer auth factor
publicName
StringThe public name of the consumer auth factor
created_at
DateThe ISO 8601 timestamp when the consumer auth factor was created
updated_at
DateThe ISO 8601 timestamp when the consumer auth factor was last updated
{"object": "consumer.auth_factor","type": "email_code","status": "active"}
List Portal
Returns a paginated list of portals.
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-factors" \-H "Authorization: Bearer metorial_sk_..."
Get Auth by ID
Retrieves details for a specific portal by its ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_auth_factor_id
StringThe unique identifier for the consumer_auth_factor
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth-factors/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create Auth
Creates a new sso tenant for the instance.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
type
Stringtype
Stringsso_tenant_id
Stringcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth-factors" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"type": "example_type","sso_tenant_id": "example_sso_tenant_id"}'
Delete Portal
Deletes a portal from the instance.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_auth_factor_id
StringThe unique identifier for the consumer_auth_factor
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth-factors/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Update Portal
Updates a portal from the instance.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_auth_factor_id
StringThe unique identifier for the consumer_auth_factor
Request Body
name
StringOptionalpublic_name
StringOptionalcurl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth-factors/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","public_name": "example_public_name"}'