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 theAuthorization header. See Authentication for details.
The preference object
Endpoints
Get preferences
Example request
Example response
Update preferences
Request body
Trusted folder rules
- Each entry must be an absolute path (starts with
/on macOS/Linux orX:\on Windows). - Empty entries are ignored.
- Duplicate entries are deduplicated.