---
title: "Bump workspace sync-index after a cloud Turso write. Desktop polls sync-index on heartbeat (CDC remains source of truth)."
method: POST
path: "/v1/cloud/runtime/turso-db-changed"
tags: ["v1", "Cloud Runtime"]
---

# Bump workspace sync-index after a cloud Turso write. Desktop polls sync-index on heartbeat (CDC remains source of truth).

`POST /v1/cloud/runtime/turso-db-changed`

## Request

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

## Request body

- TursoDbChangedRecordRequest: Report Turso row changes — memory server bumps workspace sync-index (hint only).
  - `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, nullable
  - `slug` string, nullable
  - `shareToken` string, nullable
  - `jobId` string, nullable
  - `dbId` string, nullable
  - `tursoShortName` string, nullable: Explicit Turso short name (e.g. j-abc12345, d-deadbeef-u-user1234)
  - `tables` string[], nullable: Optional table names for diagnostics logging (reconcile uses CDC, not this list)
  - `source` string, nullable: Writer id, e.g. cloud_job_runner | cloud_app_host | desktop_push

## Response `200`

Successful Response

- object: Generic JSON response object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-29** `6fc381dc78b3`: 3 info
  - added the new optional request property `namespaceId`
  - added the new optional request property `shareToken`
  - added the new optional request property `slug`
- **2026-10-16** `0e7a5c0d125d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/cloud/runtime/turso-db-changed/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)
