Overview

The Cowork Preferences API stores per-user settings that govern what Cowork agents can access on the local filesystem. Each user can define a list of trusted folders and global instructions that are applied to every Cowork session. These preferences are stored in SQLite and mirror the storage pattern used by the Agent Preferences API.
This namespace is served by the Allternit API data-plane node (http://127.0.0.1:8013 on the same machine, or your paired or provisioned node). The hosted Cloud API at https://api.allternit.com does not route it; it relays only agent sessions, canvases, office and beta research/sessions. See Cloud API.

Base URL

Authentication

All requests must include a valid bearer token in the Authorization header. See Authentication for details.

The preference object

Endpoints

Get preferences

If no preferences have been saved, the endpoint returns empty defaults.

Example request

Example response

Update preferences

Updates the caller’s preferences. Omitted fields keep their current values. The request is merged with the existing row.

Request body

Trusted folder rules

  • Each entry must be an absolute path (starts with / on macOS/Linux or X:\ on Windows).
  • Empty entries are ignored.
  • Duplicate entries are deduplicated.

Example request

Example response

Error codes