Get app approval legacy
GET /v1/organisations/{organisation_id}/workspaces/{workspace_id}/apps/{app_id}/approval Deprecated
What a person reviews before approving one of the space's own apps: its snapshot as the files make it now (problem says why there is none), the snapshot approved before, the files changed between them with diffs of the text ones, what makes it a space admin's to approve, and whether the caller may approve or revoke it.
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 -
workspace_idpathstringrequired -
app_idpathstringrequired
Responses
-
The app as its files are now, the approved snapshot and the changes between them
-
unauthenticated -
workspace_content_restricted,insufficient_scope -
No such space (or the caller can't see it), or the space's own files declare no app of this id and none is approved
-
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/workspaces/$WORKSPACE_ID/apps/$APP_ID/approval" \
-H "Authorization: Bearer $IVY_API_KEY" import { client, getAppApprovalLegacy } 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 getAppApprovalLegacy({
path: { organisation_id: organisationId, workspace_id: workspaceId, app_id: appId },
}); {
"app_id": "app_123",
"approved": {
"approved_at": "2026-01-15T09:30:00Z",
"approved_by": "string",
"from_message": false,
"last_editor": false,
"snapshot": {
"definition": {},
"files": [],
"hash": "string",
"input_schemas": {},
"source": {}
}
},
"can_approve": false,
"can_revoke": false,
"changes": [
{
"change": "added",
"diff": "string",
"path": "string",
"size_bytes": 1
}
],
"current": {
"definition": {
"access": {},
"assistant": {},
"collections": [],
"creates": [],
"description": {},
"egress": [],
"environment": "string",
"fallback": {},
"frontend": {},
"id": "id_123",
"manifest": "string",
"name": {},
"open": "string",
"opens": [],
"page": "string",
"processes": [],
"root": "string",
"runs": [],
"scratch": [],
"secrets": [],
"services": [],
"share_files": [],
"shareable": false,
"tools": [],
"ui": []
},
"files": [
{
"file_id": "file_123",
"file_version_id": "file_version_123",
"path": "string",
"sha256": "string",
"size_bytes": 1
}
],
"hash": "string",
"input_schemas": {},
"source": {
"kind": "version",
"space_id": "space_123",
"version_id": "version_123",
"workspace_id": "workspace_123"
}
},
"needs_admin": [
"frontend"
],
"org_admins_approve": false,
"problem": {
"code": "not_found",
"message": "A short explanation for people"
}
}