Portal Access
Manage which consumer groups can access portal provider templates and MCP servers.
Portal Access object
Attributes
object
Stringid
Stringname
Stringdescription
StringNullablereadme
StringNullableaccess
Objectconsumer_group
Objectcreated_at
Dateupdated_at
Date{"object": "consumer.access","access": {"type": "provider_template","provider_template": {"object": "provider.template#preview","status": "active","metadata": {}}},"consumer_group": {"object": "consumer.group","status": "active"}}
List portal access
Returns a paginated list of consumer access rules for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalconsumer_group_id
UnionOptionalprovider_template_id
UnionOptionalmagic_mcp_server_id
UnionOptionalskill_id
UnionOptionalskill_template_id
UnionOptionalskill_group_id
UnionOptionalskill_marketplace_id
UnionOptionalconsumer_access_listing_id
UnionOptionaltype
UnionOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access" \-H "Authorization: Bearer metorial_sk_..."
Get portal access
Retrieves a portal access rule by ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
access_id
StringThe unique identifier for the access
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access/acc_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create portal access
Creates a new consumer access rule for the portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
consumer_group_id
Stringname
StringOptionaldescription
StringOptionalNullablereadme
StringOptionalNullableaccess
Objectcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"consumer_group_id": "example_consumer_group_id","name": "example_name","description": "example_description","readme": "example_readme","access": {"type": "example_type","provider_template_id": "example_provider_template_id"}}'
Update portal access
Updates the shared listing fields for a portal access rule.
URL Parameters
portal_id
StringThe unique identifier for the portal
access_id
StringThe unique identifier for the access
Request Body
name
StringOptionaldescription
StringOptionalNullablereadme
StringOptionalNullablecurl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access/acc_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","readme": "example_readme"}'
Delete portal access
Deletes a consumer access rule from the portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
access_id
StringThe unique identifier for the access
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access/acc_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."