Portal Page Discovery API
The page-list API describes portal routes and their tag labels. It does not render a page, prove an attendee can open it or establish that a listed installation/version is ready. Configure the portal and audience using Portals Domains and Authentication first.
Context and current route limitation
GET /api/v1/projects/{teamSlug}/{projectSlug}/portals/{projectPortal}/pages uses team/project slugs and the portal's numeric ID. It inherits the API authentication/context stack and intends to authorize view on a portal belonging to the resolved project. Use supported API authentication and the appropriate portal/page context, keeping management secrets server-side.
Known source limitation: the handler signature declares Request then integer portal ID, omitting the leading team/project slug arguments in the route. The reviewed Laravel controller dispatcher passes values positionally, so a slug can occupy the integer argument and prevent the intended lookup. Require an implementation correction and real project-prefixed HTTP test before relying on this route. Directly calling the handler with an integer is not route acceptance.
Intended filters and output
| Query | Behavior |
|---|---|
tags=track-a,track-b | Trim the filter input and select pages matching any supplied project-tag slug; not an all-tags requirement. Unknown project slugs return 422. |
search=welcome | Case-insensitive title substring using the reviewed database query. |
per_page=25 | Default 25, clamped to 1–100. |
page=2 | Standard pagination; generated links retain query parameters. |
Tag validation uses the full project vocabulary, unlike the portal-visible-only helper used by some other API filters. The resource separately drops hidden tag labels for non-project-key callers. Do not assume this filter makes hidden labels indistinguishable from unknown slugs; verify the intended disclosure behavior before untrusted use.
The paginated result has data, links and meta. Each page row includes id, title, url_slug, sort_order, requires_authentication, access_code_enabled, project_tags, created_at and updated_at. Project-key principals can receive hidden tag labels; other callers receive portal-visible labels through the shared serializer. Tags contain ID/name/slug/color/visibility, not permission-rule evaluation results.
The handler adds no explicit active, audience/group, page-policy or published-version filter beyond its parent-portal policy and inherited context. Flags and sort_order are metadata: this method has no explicit ordering clause, and a row's presence does not establish access, final menu ordering or rendered page health. Use actual page navigation and server-enforced denial checks separately.
Verify and troubleshoot
After the handler fix, use an approved test project to verify numeric portal versus slug inputs, parent ownership/policy, tag OR matching, unknown/hidden labels, title search, pagination and actual serialized fields. Test allowed and denied page audiences through their real page URLs, independently of list membership. Keep private page metadata and credentials out of public reports.
| Symptom | Check |
|---|---|
| Request fails before lookup | Known leading-argument mismatch; verify a fixed deployed handler with the actual prefixed route. |
| 401/403 | Supported caller/context and portal view authority. |
| 404 | Project/portal ownership and correct numeric portal ID. |
| 422 tags | Exact slugs in the project's vocabulary; filter behavior differs from label disclosure. |
| List looks unsorted or page denies access | Explicit app sorting and separate page/audience/version checks. |
The REST reference records the intended contract with the source limitation. Review at platform 90f805aab4cc0ff6a915068e88e1c495f53d04cc does not fix or execute the endpoint; route, policy, privacy, ordering and page-runtime acceptance remain separate.