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_idpathstringrequired -
space_idpathstringrequired -
app_idpathstringrequired -
source_space_idquerystringSpaceApp.source_space_id, for an app whose id another of the space's apps has too. Without it, the first app of the id inlistSpaceApps' order. -
version_idquerystringWorkspaceApp.version_id: the page of that version only, else404, so a page never runs with another version's file handlers. Withsource_workspace_idof a space Ivy ships, that version serves its page oruipage even once the space has a newer one. -
uiquerystringA
[[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-Matchheaderstring|null -
source_workspace_idquerystringLegacy name of
source_space_id, sent and accepted until 2027-05-31.
Responses
-
The page, with
ETag: "{version_id}" - 304 No content
If-None-Matchmatches -
unauthenticated -
workspace_content_restricted,insufficient_scope -
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
uiresource -
rate_limited: the API key's requests per minute are used up; retry afterRetry-Afterseconds -
internal -
unavailable: the database is briefly unavailable; retry afterRetry-Afterseconds
Error codes
Errors come back as an ErrorBody whose code is one of these.
- 401
unauthenticated - 403
workspace_content_restrictedinsufficient_scope - 404
not_foundgeneric code for this status - 429
rate_limited - 500
internal - 503
unavailable
Examples
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/spaces/$SPACE_ID/apps/$APP_ID/page" \
-H "Authorization: Bearer $IVY_API_KEY" 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 },
}); {
"html": "string",
"source_space_id": "source_space_123",
"source_workspace_id": "source_workspace_123",
"version_id": "version_123"
}