Portal Listings

Read the shared listings available on a portal surface.

Portal Listings object

Attributes

object

String

id

String

name

String

description

StringNullable

readme

StringNullable

access

Object

groups

Object

created_at

Date

updated_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

String

The unique identifier for the portal

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

search

StringOptional

consumer_surface_provider_group_id

UnionOptional

provider_template_id

UnionOptional

magic_mcp_server_id

UnionOptional

skill_id

UnionOptional

skill_template_id

UnionOptional

skill_group_id

UnionOptional

skill_marketplace_id

UnionOptional

type

UnionOptional
GEThttp://api.metorial.com/portals/:portal_id/listings
curl -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

String

The unique identifier for the portal

listing_id

String

The unique identifier for the listing

GEThttp://api.metorial.com/portals/:portal_id/listings/:listing_id
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

String

The unique identifier for the portal

Request Body

name

StringOptional

description

StringOptionalNullable

readme

StringOptionalNullable

access

Object
POSThttp://api.metorial.com/portals/:portal_id/listings
curl -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

String

The unique identifier for the portal

listing_id

String

The unique identifier for the listing

Request Body

name

StringOptional

description

StringOptionalNullable

readme

StringOptionalNullable
PATCHhttp://api.metorial.com/portals/:portal_id/listings/:listing_id
curl -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

String

The unique identifier for the portal

listing_id

String

The unique identifier for the listing

DELETEhttp://api.metorial.com/portals/:portal_id/listings/:listing_id
curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/listings/lis_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."