Get app page

GET /v1/organisations/{organisation_id}/spaces/{space_id}/apps/{app_id}/page

The page of one of the space's page apps (frontend = "page"), from the version of the space that declares the app: an always-on space or one the space imports. With ui, the page of one of the app's [[ui]] resources (an MCP Apps view a tool result names), from the same version. The HTML comes as data, to hand to the sandboxed preview origin: it never runs on the app's origin.

Authentication

Send an API key, or an access token from your organisation’s identity provider, in the Authorization header. How API keys work

Scope the API key needs: files:read

Security schemes in the OpenAPI document: session_cookie (cookie __Host-ivy_session)bearer (bearer)api_key (bearer)

Parameters

  • organisation_id path string required
  • space_id path string required
  • app_id path string required
  • source_space_id query string

    SpaceApp.source_space_id, for an app whose id another of the space's apps has too. Without it, the first app of the id in listSpaceApps' order.

  • version_id query string

    WorkspaceApp.version_id: the page of that version only, else 404, so a page never runs with another version's file handlers. With source_workspace_id of a space Ivy ships, that version serves its page or ui page even once the space has a newer one.

  • ui query string

    A [[ui]] resource's name: its page (an MCP Apps view, ui://<app>/<name>) instead of the app's own, for any app Ivy ships, whatever its frontend.

  • If-None-Match header string | null
  • source_workspace_id query string

    Legacy name of source_space_id, sent and accepted until 2027-05-31.

Responses

  • 200 application/json AppPage

    The page, with ETag: "{version_id}"

  • 304 No content

    If-None-Match matches

  • 401 application/json ErrorBody

    unauthenticated

  • 403 application/json ErrorBody

    workspace_content_restricted, insufficient_scope

  • 404 application/json ErrorBody

    No such space (or the caller can't see it), or the space has no page app of this id, or its app declares no such ui resource

  • 429 application/json ErrorBody

    rate_limited: the API key's requests per minute are used up; retry after Retry-After seconds

  • 500 application/json ErrorBody

    internal

  • 503 application/json ErrorBody

    unavailable: the database is briefly unavailable; retry after Retry-After seconds

Error codes

Errors come back as an ErrorBody whose code is one of these.

  • 401 unauthenticated
  • 403 workspace_content_restrictedinsufficient_scope
  • 404 not_found generic code for this status
  • 429 rate_limited
  • 500 internal
  • 503 unavailable

Examples

curl
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/spaces/$SPACE_ID/apps/$APP_ID/page" \
  -H "Authorization: Bearer $IVY_API_KEY"
JavaScript SDK
import { client, getAppPage } from "@spacivapp/ivy-sdk";

client.setConfig({
  baseUrl: process.env.IVY_API_URL,
  headers: { Authorization: `Bearer ${process.env.IVY_API_KEY}` },
});

const { data, error, response } = await getAppPage({
  path: { organisation_id: organisationId, space_id: spaceId, app_id: appId },
});
Example response (200)
{
  "html": "string",
  "source_space_id": "source_space_123",
  "source_workspace_id": "source_workspace_123",
  "version_id": "version_123"
}