Current documentation. Version and compatibility notes.

Public Pages reference

Read published application pages through the existing anonymous browser routes.

Workflow guide · Download OpenAPI JSON

API origin
https://pages.appportal.io
API version
unversioned
Reference source
8bda8e8302d4ea5bd005ef1132f7267e82e6337c
Download SHA-256
1d768eca49fcbfc5fc6f6a984b8f99e23aec88b354107d0ecf1ffbd24476e43d

Authentication

These public reads do not require an authentication credential. Only published content is returned.

Credentials stay with their intended audience. A browser session, SDK key, upload key and Automation credential grant different access.

Operations

GET/api/pages/public/{appSlug}

List the published page kinds for an app slug

Browser ingress removes /api/pages before forwarding to the owning native /public route. Returns distinct Published-state kinds ordered by their PageKind value. The catalog does not require publishedAt, while the page read does. An unknown app slug or an app with no published kinds returns 200 and an empty array. This public read neither lists drafts nor grants authoring access. No account cookie, SDK credential or CSRF token is required.

Access: No authentication credential.

Parameters

appSlug (path, required)
The public application slug, lowercased invariantly by the owning store before lookup. It selects published content, not account or management authority.
{
  "type": "string"
}

Responses

200
Published kind names using the actual PageKind JSON converter; the array can be empty.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/PublishedPageKinds"
    }
  }
}

Link to this operation

GET/api/pages/public/{appSlug}/{kind}

Read one published app page

Reads a published page. Missing apps, unknown kinds and unpublished pages return the same 404. The response is empty unless the client explicitly requests problem JSON.

Access: No authentication credential.

Parameters

appSlug (path, required)
The public application slug, lowercased invariantly by the owning store before lookup. It selects published content, not account or management authority.
{
  "type": "string"
}
kind (path, required)
PageKind parsed case-insensitively by Enum.TryParse and checked with Enum.IsDefined. Named values and defined numeric forms are accepted; unsupported names/numbers return 404. Response JSON always uses the enum's named string form.
{
  "type": "string"
}

Responses

200
The existing PublicPage DTO, with its native field names, enum spelling and explicit nullable metadata.
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/PublicPage"
    }
  }
}
404
No matching published page. Request application/problem+json for an error code and support reference.

Response headers

{
  "X-AppPortal-TraceId": {
    "description": "Opaque error correlation; matches the shared problem body's traceId.",
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.:-]+$"
    }
  },
  "Cache-Control": {
    "description": "Includes no-store for shared management problems; additional directives may be present. Browser JSON and bodyless failures retain their native behavior.",
    "schema": {
      "type": "string"
    }
  }
}
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/PublicPageProblem"
    }
  }
}

Link to this operation

Declared schemas

Schema references in the operations resolve to these definitions from the same OpenAPI document.

PublicPage
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "appSlug": {
      "type": "string"
    },
    "kind": {
      "enum": [
        "Landing",
        "Privacy",
        "Terms",
        "Support",
        "Beta"
      ]
    },
    "title": {
      "type": "string"
    },
    "heroTagline": {
      "type": [
        "string",
        "null"
      ]
    },
    "bodyMarkdown": {
      "type": "string"
    },
    "contactEmail": {
      "type": [
        "string",
        "null"
      ]
    },
    "storeBadges": {
      "type": "boolean"
    },
    "publishedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "appSlug",
    "kind",
    "title",
    "heroTagline",
    "bodyMarkdown",
    "contactEmail",
    "storeBadges",
    "publishedAt"
  ],
  "description": "The exact published public projection. Nullable heroTagline and contactEmail remain explicit JSON null when absent. Internal account/app IDs, author, review state and draft timestamps are not exposed. bodyMarkdown is content, not trusted HTML; render it with the consumer's normal safe Markdown policy."
}
PageKind
{
  "enum": [
    "Landing",
    "Privacy",
    "Terms",
    "Support",
    "Beta"
  ]
}
PublishedPageKinds
{
  "type": [
    "array",
    "null"
  ],
  "items": {
    "enum": [
      "Landing",
      "Privacy",
      "Terms",
      "Support",
      "Beta"
    ]
  }
}
PublicPageProblem
{
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "instance": {
      "type": [
        "string",
        "null"
      ]
    },
    "message": {
      "type": "string"
    },
    "error": {
      "type": "string"
    },
    "traceId": {
      "type": "string"
    },
    "code": {
      "const": "public_page_unavailable"
    }
  },
  "required": [
    "type",
    "title",
    "status",
    "detail",
    "instance",
    "code",
    "message",
    "error",
    "traceId"
  ]
}