MetorialDocs

Portal

A portal is a branded catalog of integrations and skills for your consumers. Each portal has its own consumers, groups, and access rules.

The Portal object

portal.json
{
  "object": "portal",
  "id": "ptl_7hNkPqRsTuVwXyZa",
  "status": "active",
  "name": "example_name",
  "slug": "acme-portal",
  "description": "example_description",
  "allow_consumer_skill_authoring": false,
  "allow_consumer_skill_publishing": false,
  "skill_configuration": {
    "object": "portal.skill_configuration",
    "id": "example_id",
    "is_default": false,
    "allow_scripts": false,
    "allowed_file_extensions": [
      "example_allowed_file_extensions"
    ],
    "allow_non_standard_directories": false
  },
  "auth": {
    "object": "portal.auth",
    "session_expiry_time_in_seconds": 0,
    "allowed_redirect_url_filters": [
      {},
      {}
    ]
  },
  "urls": [
    {
      "type": "default"
    },
    {
      "type": "default"
    }
  ],
  "magic_mcp_url": "https://api.metorial.com/connect/portal/acme-portal",
  "created_at": "2026-11-28T12:54:04.133Z",
  "updated_at": "2026-11-28T12:54:04.133Z"
}
object"portal"required
idstringrequired
status"active" | "archived" | "deleted"required
namestringrequired
slugstringrequired
descriptionstringrequirednullable
allow_consumer_skill_authoringbooleanrequired
allow_consumer_skill_publishingbooleanrequired
magic_mcp_urlstringrequired
created_atdaterequired
updated_atdaterequired

Endpoints

List portals

GET/portals

Returns a paginated list of portals.

Query parameters

searchstringoptional

Search by name or description

Example request

curl -X GET "https://api.metorial.com/portals" \
  -H "Authorization: Bearer metorial_sk_io2h4..."
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.portals.list();

console.log(result.items);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.portals.list()
print(result.items)

Get portal

GET/portals/:portal_id

Retrieves a portal.

Path parameters

portal_idstringrequired

The unique identifier for the portal

Example request

curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY" \
  -H "Authorization: Bearer metorial_sk_io2h4..."
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.portals.get('por_Rm4Mnheq2bfEPhBhP7SY');

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.portals.get("por_Rm4Mnheq2bfEPhBhP7SY")
print(result)

Create portal

POST/portals

Creates a portal.

Request body

namestringrequired

Display name.

descriptionstringoptional

Free-text description.

session_expiry_time_in_secondsnumberoptional

How long consumer sessions stay valid, in seconds.

allow_consumer_skill_authoringbooleanoptional

Whether consumers can create skills on the portal.

allow_consumer_skill_publishingbooleanoptional

Whether consumers can publish skills on the portal.

Example request

curl -X POST "https://api.metorial.com/portals" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer metorial_sk_io2h4..." \
  -d '{
  "name": "example_name",
  "description": "example_description",
  "allowed_redirect_url_filters": [
    {},
    {}
  ],
  "session_expiry_time_in_seconds": 0,
  "allow_consumer_skill_authoring": false,
  "allow_consumer_skill_publishing": false
}'
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.portals.create({
  "name": "example_name",
  "description": "example_description",
  "allowedRedirectUrlFilters": [
    {},
    {}
  ],
  "sessionExpiryTimeInSeconds": 0,
  "allowConsumerSkillAuthoring": false,
  "allowConsumerSkillPublishing": false
});

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.portals.create(name="example_name", description="example_description", allowed_redirect_url_filters=[{}, {}], session_expiry_time_in_seconds=0, allow_consumer_skill_authoring=False, allow_consumer_skill_publishing=False)
print(result)

Update portal

PATCH/portals/:portal_id

Updates a portal. Omitted fields keep their current value.

Path parameters

portal_idstringrequired

The unique identifier for the portal

Request body

namestringoptional

Display name.

descriptionstringoptional

Free-text description.

session_expiry_time_in_secondsnumberoptional

How long consumer sessions stay valid, in seconds.

allow_consumer_skill_authoringbooleanoptional

Whether consumers can create skills on the portal.

allow_consumer_skill_publishingbooleanoptional

Whether consumers can publish skills on the portal.

Example request

curl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer metorial_sk_io2h4..." \
  -d '{
  "name": "example_name",
  "description": "example_description",
  "allowed_redirect_url_filters": [
    {},
    {}
  ],
  "session_expiry_time_in_seconds": 0,
  "allow_consumer_skill_authoring": false,
  "allow_consumer_skill_publishing": false,
  "skill_configuration": {
    "allow_scripts": false,
    "allowed_file_extensions": [
      "example_allowed_file_extensions"
    ],
    "allow_non_standard_directories": false
  }
}'
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.portals.update('por_Rm4Mnheq2bfEPhBhP7SY', {
  "name": "example_name",
  "description": "example_description",
  "allowedRedirectUrlFilters": [
    {},
    {}
  ],
  "sessionExpiryTimeInSeconds": 0,
  "allowConsumerSkillAuthoring": false,
  "allowConsumerSkillPublishing": false,
  "skillConfiguration": {
    "allowScripts": false,
    "allowedFileExtensions": [
      "example_allowed_file_extensions"
    ],
    "allowNonStandardDirectories": false
  }
});

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.portals.update("por_Rm4Mnheq2bfEPhBhP7SY", name="example_name", description="example_description", allowed_redirect_url_filters=[{}, {}], session_expiry_time_in_seconds=0, allow_consumer_skill_authoring=False, allow_consumer_skill_publishing=False, skill_configuration={
  "allow_scripts": False,
  "allowed_file_extensions": ["example_allowed_file_extensions"],
  "allow_non_standard_directories": False
})
print(result)

Archive portal

DELETE/portals/:portal_id

Archives a portal.

Path parameters

portal_idstringrequired

The unique identifier for the portal

Example request

curl -X DELETE "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY" \
  -H "Authorization: Bearer metorial_sk_io2h4..."
import Metorial from 'metorial';

let metorial = new Metorial({ apiKey: 'metorial_sk_io2h4...' });

let result = await metorial.portals.delete('por_Rm4Mnheq2bfEPhBhP7SY');

console.log(result);
from metorial import Metorial

metorial = Metorial(api_key='metorial_sk_io2h4...')

result = metorial.portals.delete("por_Rm4Mnheq2bfEPhBhP7SY")
print("Deleted")