Portal Listings
Read the shared listings available on a portal surface.
Portal Listings object
Attributes
object
Stringid
Stringname
Stringdescription
StringNullablereadme
StringNullableaccess
Objectgroups
Objectcreated_at
Dateupdated_at
Date{"object": "consumer.access_listing","access": {"type": "provider_template","provider_template": {"object": "provider.template#preview","status": "active","metadata": {}}},"groups": [{},{}]}
List portal listings
Returns a paginated list of shared listings for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalconsumer_surface_provider_group_id
UnionOptionalprovider_template_id
UnionOptionalmagic_mcp_server_id
UnionOptionalskill_id
UnionOptionalskill_template_id
UnionOptionalskill_group_id
UnionOptionalskill_marketplace_id
UnionOptionaltype
UnionOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings" \-H "Authorization: Bearer metorial_sk_..."
Get portal listing
Retrieves one shared listing for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
listing_id
StringThe unique identifier for the listing
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings/lis_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create portal listing
Creates a shared listing for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
name
StringOptionaldescription
StringOptionalNullablereadme
StringOptionalNullableaccess
Objectcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","readme": "example_readme","access": {"type": "example_type","provider_template_id": "example_provider_template_id"}}'
Update portal listing
Updates listing metadata for a portal listing.
URL Parameters
portal_id
StringThe unique identifier for the portal
listing_id
StringThe unique identifier for the listing
Request Body
name
StringOptionaldescription
StringOptionalNullablereadme
StringOptionalNullablecurl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings/lis_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","readme": "example_readme"}'
Delete portal listing
Deletes a portal listing and all consumer access attached to it.
URL Parameters
portal_id
StringThe unique identifier for the portal
listing_id
StringThe unique identifier for the listing
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings/lis_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."