Portal Consumer Profiles
Manage the consumers and effective group assignments for a portal.
Portal Consumer Profiles object
Attributes
object
Enumconsumer.profileid
Stringname
Stringimage_url
Stringconsumer_id
Stringstatus
Enumcreated_at
Dateupdated_at
Dategroups
Array of ObjectsNullable{"object": "consumer.profile","id": "example_id","name": "example_name","email": "example_email","image_url": "example_image_url","consumer_id": "example_consumer_id","status": "active","created_at": "2026-07-21T07:34:10.615Z","updated_at": "2026-07-21T07:34:10.615Z","groups": [{"object": "consumer.profile.group_assignment","group": {"object": "consumer.group","id": "example_id","status": "active","name": "example_name","description": "example_description","is_default": false,"sso_group_ids": ["example_sso_group_ids"],"created_at": "2026-07-21T07:34:10.615Z","updated_at": "2026-07-21T07:34:10.615Z"},"assigned_via": "default"}]}
List portal consumer profiles
Returns a paginated list of consumer profiles for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalconsumer_group_id
StringOptionalstatus
UnionOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile" \-H "Authorization: Bearer metorial_sk_..."
Get portal consumer profile
Retrieves a portal consumer profile by ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_profile_id
StringThe unique identifier for the consumer_profile
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create portal consumer profile
Creates a new portal consumer profile.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
name
Stringcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"email": "example_email","name": "example_name"}'
Delete portal consumer profile
Soft-deletes a portal consumer profile.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_profile_id
StringThe unique identifier for the consumer_profile
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Assign portal consumer profile groups
Assigns one or more groups to a portal consumer profile.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_profile_id
StringThe unique identifier for the consumer_profile
Request Body
group_ids
Array of Stringscurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile/con_Rm4Mnheq2bfEPhBhP7SY/assign-groups" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"group_ids": ["example_group_ids"]}'
Unassign portal consumer profile groups
Removes one or more groups from a portal consumer profile.
URL Parameters
portal_id
StringThe unique identifier for the portal
consumer_profile_id
StringThe unique identifier for the consumer_profile
Request Body
group_ids
Array of Stringscurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/consumer-profile/con_Rm4Mnheq2bfEPhBhP7SY/unassign-groups" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"group_ids": ["example_group_ids"]}'