v1
Cloud Infrastructure

Turso token for app owner (Cloud App Host only)

Changed on
post/v1/cloud/apps/runtime/db-token

Request

  • Base URL
    https://memory.papr.ai
  • URL
    https://memory.papr.ai/v1/cloud/apps/runtime/db-token
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Request body

external_user_idstring nullable

Parse _User.objectId of the acting user (desktop OAuth). Used for ownership-scoped cloud operations instead of the API key user.

namespaceIdstring required
slugstring required
paprApiKeystring nullable
shareTokenstring nullable
databasestring required

Turso database short name: j-{jobId8} (job-owned), d-{dbId8} (standalone), or {base}-u-{userId8} (per-user)

clientTablesstring[] nullable

Browser-SQL token: only these tables are reachable (Turso-enforced). Omit for the full owner token used by the host's own bookkeeping.

clientModestring

With clientTables: read (read-only), write (CRUD if caller can write), ddl (write + CREATE TABLE).

Response

Successful Response

tursoUrlstring required
authTokenstring required
expiresAtstring date-time required

Changes