get_portal_url
Compute the subscriber portal URL for a project — {frontend_url}/{handle}. Always reflects the current handle.
Purpose
Compute the subscriber portal URL for a project — {frontend_url}/{handle}. Always reflects the current handle, so updating the handle invalidates old portal URLs automatically.
Required ability
distribution:read
Input schema
{
"type": "object",
"required": ["project_id"],
"properties": {
"project_id": {
"type": "string",
"description": "UUID of the project whose portal URL to return."
}
}
}Output shape
{
"data": {
"project_id": "prj_01HX...",
"handle": "research-premium",
"portal_url": "https://my.memberpass.net/research-premium"
}
}Example prompts
"What's the portal URL for project
prj_01HX...?"
"Give me the sharable link to my Research Premium project."
Failure modes
RESOURCE_NOT_FOUND—project_idis not a valid UUID, or the project belongs to a team outside the token's scope.TOKEN_MISSING_ABILITY— token lacksdistribution:read.
Related
How is this guide?