---
title: "Prepare cloud app source install (fork or track)"
method: POST
path: "/v1/cloud/apps/install"
tags: ["v1", "Cloud Infrastructure"]
---

# Prepare cloud app source install (fork or track)

`POST /v1/cloud/apps/install`

## Request

- Base URL: `https://memory.papr.ai`
- URL: `https://memory.papr.ai/v1/cloud/apps/install`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Request body

- AppInstallRequest
  - `external_user_id` string, nullable: Parse _User.objectId of the acting user (desktop OAuth). Used for ownership-scoped cloud operations instead of the API key user.
  - `namespaceId` string, required
  - `slug` string, required
  - `mode` 'fork' | 'track'
  - `shareToken` string, nullable

## Response `200`

Successful Response

- AppInstallResponse
  - `mode` 'fork' | 'track', required
  - `source` AppInstallSource, required
    - `orgId` string, required
    - `namespaceId` string, required
    - `userId` string, required
    - `appId` string, required
    - `slug` string, required
  - `repoPath` string, required: Path within owner repo, e.g. apps/{appId}
  - `cloneUrl` string, required
  - `token` string, required
  - `expiresAt` string, date-time, required
  - `lineageId` string, required
  - `publishedRevision` PublishedRevision: What the last finished publish landed in the cloud.
    - `commit` string, required
    - `dbSchema` object
    - `completedAt` string, nullable
  - `publishPending` boolean
  - `accessMode` string, nullable: Caller's access to the source app: owner, team, public_read, link_read, link_read_write. Only owner/team may attach the publisher's shared database on collaborate installs.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/cloud/apps/install/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) - [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) - [OpenAPI document](https://skmtc.dev/papr-ai/apis/papr-memory-api/revisions/6fc381dc78b3?raw)
