Scopes and token types
Project Feed has workspace API keys owned by a workspace and personal API tokens owned by a user. The credential type decides who it acts as and which workspaces it can reach.
Workspace API keys
Create one in Workspace settings, under Developers, Service accounts. The key belongs to one workspace, and every request with it acts in that workspace. Membership and IP allowlist policies are checked on every request.
Use a workspace API key for automation in one workspace. It acts with the creator's current membership and stops working if that person leaves or their account is disabled. Admins can manage the key, but rotation keeps the same creator. Create a replacement under an active member before removing the original creator.
Free workspaces can only request projects:read, posts:read, comments:read, reactions:read, and tasks:read. Every other scope, including every write scope, needs a paid plan.
Personal API tokens
Create one under Account, Tools & tokens. The token acts as you, independent of any workspace. By default it can only call the identity routes under /api/v1/me. To reach workspace resources, choose selected workspaces or allow all current and future memberships. Every request still checks your membership and the workspace policy.
Use a personal API token for command-line tools, scripts, and integrations that follow you across workspaces. Tokens expire after 90 days by default and cannot be set past 365 days. A token for all workspaces must expire. A token for selected workspaces can skip expiry only when every selected workspace allows it.
Name the workspace on every workspace request with the X-Project-Feed-Workspace header. See the workspace header. The API does not infer the workspace from a resource ID.
How scopes work
A scope has the form resource:action. A :write scope also grants :read for the same resource. A scope lets a credential call an endpoint. Your role and your access to the record are still checked on every request.
The scopes a request can use are the overlap of:
- the scopes on the credential
- for a personal API token, the scopes the workspace allows
- your role, because viewers can mostly only read
- what the workspace plan includes
A personal API token can request any scope. Its workspace requests use only the scopes that workspace allows. Check the result with the authentication check.
Scope reference
Each resource has a :read scope. Resources marked read only have no :write scope.
tagsread, writeRead and manage the tag catalog without project-update access. Project tags require a project Admin or workspace Admin; workspace tags and promotion require a workspace Admin.
projectsread, writeProjects, their settings and archive state, and tool artifact lookups. Project header and icon uploads need projects:write.
postsread, writePosts and drafts: create, edit, publish, and delete. Saving a tool artifact needs posts:write and media:write.
commentsread, writePost comments and replies. Task comments use tasks and doc comments use docs.
reactionsread, writePost reactions and custom reaction uploads. Doc comment reactions need docs:read as well.
tasksread, writeTasks, task comments, checklists, subtasks, tags, post links, and personal tool handoffs.
chatread, writeChat rooms, discussions, and messages, and file uploads to chat messages. Chat must be turned on for the workspace.
notificationsread, writeNotifications, unread counts, read state, and notification preferences.
membersread, writeWorkspace and project member lists. members:write changes project members, workspace roles, and invitations. Workspace roles and invitations need an owner or admin.
audit-logsread onlyAudit log export. Needs an Enterprise plan and a workspace owner or admin.
mediaread, writeFile uploads, attachment lists, and attachment deletes. Uploads into docs, chat, or canvases also need that resource's write scope.
webhooksread, writeOutbound webhooks, test deliveries, delivery history, retries, and signing secrets.
profileread, writeYour profile, your workspace memberships, and your push subscriptions.
api-keysread onlyLists your own personal API tokens. Personal tokens only.
docsread, writeDocs pages, spaces, versions, and doc comments.
canvasread, writeCanvases and the items on them. Canvases must be turned on for the workspace.
domainsread, writedomains:read runs DNS checks. domains:write verifies a stored domain, which needs an Enterprise plan and a workspace owner or admin.
timeread, writeTime entries and timers. Time tracking must be turned on for the workspace.
portalsread, writeClient portals, their guests, shared updates and docs, client feedback, and portal reports. Portals must be turned on for the workspace, and each route follows the same owner, admin, or member rules as the app.
workspaceread, writeWorkspace settings, plan and usage, admin controls, security settings, and the API key list. Writes need an owner or admin. Credential policies stay in the app.
integrationsread, writeConnected integrations, channel and repository mappings, event logs, and imports. Connecting a provider that needs its own consent screen stays in the app.
activityread onlyThe workspace activity feed and your own activity. Items appear only for resources the credential can read.
reportsread onlyWorkspace overview, activity, storage, agent access, delivery, time, review, attention, and agent reports, project analytics, and your own stats.