Consumer Providers
Browse and configure portal providers from the consumer side.
Consumer Providers object
Attributes
object
Stringid
Stringname
Stringdescription
StringNullableindex
Numbercreated_at
Dateupdated_at
Date{"object": "consumer.surface.provider_group"}
List consumer provider groups
Returns the ordered provider groups for the current consumer surface.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/consumer/providers/groups" \-H "Authorization: Bearer metorial_sk_..."
Get portal OAuth client
Returns one portal OAuth client visible to the current portal consumer.
URL Parameters
portal_auth_client_id
StringThe unique identifier for the portal_auth_client
curl -X GET "https://api.metorial.com/consumer/portal-oauth-clients/por_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
List consumer providers
Returns the unified portal catalog with consumer availability.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalprovider_group_id
StringOptionalcurl -X GET "https://api.metorial.com/consumer/providers" \-H "Authorization: Bearer metorial_sk_..."
Get consumer provider
Returns one portal catalog item with any available setup capability data.
URL Parameters
catalog_item_id
StringThe unique identifier for the catalog_item
curl -X GET "https://api.metorial.com/consumer/providers/cat_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Request consumer provider access
Creates an access request for a portal catalog item.
URL Parameters
catalog_item_id
StringThe unique identifier for the catalog_item
Request Body
message
StringOptionalmetadata
ObjectOptionalA key-value map
curl -X POST "https://api.metorial.com/consumer/providers/cat_Rm4Mnheq2bfEPhBhP7SY/request-access" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"message": "example_message","metadata": {}}'
Start consumer provider setup
Starts an OAuth setup flow for a portal provider template.
URL Parameters
catalog_item_id
StringThe unique identifier for the catalog_item
Request Body
provider_auth_method_id
StringOptionalcurl -X POST "https://api.metorial.com/consumer/providers/cat_Rm4Mnheq2bfEPhBhP7SY/setup" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"provider_auth_method_id": "example_provider_auth_method_id"}'
Get consumer provider setup
Reads the status of an OAuth setup flow for a portal provider template.
URL Parameters
catalog_item_id
StringThe unique identifier for the catalog_item
provider_setup_session_id
StringThe unique identifier for the provider_setup_session
curl -X GET "https://api.metorial.com/consumer/providers/cat_Rm4Mnheq2bfEPhBhP7SY/setup/pro_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Deploy consumer provider
Creates an owned Magic MCP server from a portal provider template.
URL Parameters
catalog_item_id
StringThe unique identifier for the catalog_item
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
config
ObjectOptionalA key-value map
auth
ObjectOptionalcurl -X POST "https://api.metorial.com/consumer/providers/cat_Rm4Mnheq2bfEPhBhP7SY/deploy" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"config": {},"auth": {"type": "example_type","provider_setup_session_id": "example_provider_setup_session_id"}}'