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.

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