Portal Consumer Groups
Connect Magic MCP Groups to Portals to control access to your marketplaces.
Portal Consumer Groups object
Attributes
object
StringType of the object, fixed as consumer.profile
id
StringThe unique identifier of the consumer profile
name
StringThe name of the consumer profile
The email address of the consumer profile
image_url
StringThe URL of the profile image associated with this consumer profile
groups
ObjectNullableA list of groups that the consumer profile is associated with, along with assignment method
consumer_id
StringThe unique identifier of the consumer associated with this profile
created_at
DateThe ISO 8601 timestamp when the consumer profile was created
updated_at
DateThe ISO 8601 timestamp when the consumer profile was last updated
{"object": "consumer.profile","groups": [{"object": "consumer.profile.group_assignment","group": {"object": "consumer.group","status": "active"},"assigned_via": "default"},{"object": "consumer.profile.group_assignment","group": {"object": "consumer.group","status": "active"},"assigned_via": "default"}]}
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/consumer-profile" \-H "Authorization: Bearer metorial_sk_..."
Get Portal Consumer Group by ID
Retrieves details for a specific portal by its 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 Group
Creates a new sso tenant for the instance.
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_item"]}'
Remove Portal Consumer Profile from Group
Removes a consumer profile from a consumer group.
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_item"]}'