WDocs
WDocs
Open AppSign inGet Started

Getting Started

IntroductionPersonal SetupUse with LLM

Authentication

Personal API Tokens (wn_)MCP OAuth 2.1

Public REST API

Model Context Protocol (MCP)

Integrations

W© 2026 Weave
PrivacyTermsDataSupportllms.txtOpen App
Authentication

Personal API Tokens (wn_)

Create, scope, and revoke personal access tokens for the Public REST API and MCP Bearer auth.

Personal API Tokens (wn_)

Personal tokens authenticate scripts, CI, MCP clients (Bearer), and the Public REST API. Tokens are prefixed wn_ and stored as hashes server-side.

Endpoints

Base: https://<APP_HOST>/api/v1/api-tokens

MethodPathScopeDescription
GET/scopesapi_tokens:readList available scope keys
GET/get-tokensapi_tokens:readList your tokens (no plaintext)
POST/create-tokenapi_tokens:writeCreate a token (returns plaintext once)
POST/:id/revokeapi_tokens:deleteRevoke a token

Create token

curl -X POST "https://<APP_HOST>/api/v1/api-tokens/create-token" \
  -H "Authorization: Bearer wn_live_..." \
  -H "Content-Type: application/json" \
  -H "X-Workspace-Id: <WORKSPACE_ID>" \
  -d '{
    "name": "CI deployer",
    "scopes": ["notes:read", "notes:write", "projects:read"],
    "expiresAt": "2027-01-01T00:00:00.000Z",
    "workspaceId": "<WORKSPACE_UUID>"
  }'
FieldTypeRequiredNotes
namestringyesDisplay label
scopesstring[]noSubset of catalog; omit only if your client defaults scopes
expiresAtISO datetimenoOptional expiry
workspaceIduuidnoOptional workspace binding

Using a token

Authorization: Bearer wn_live_YOUR_TOKEN
X-Workspace-Id: <WORKSPACE_ID>
  • Public REST: https://<APP_HOST>/api/public/v1/...
  • MCP Bearer: Authorization: Bearer wn_… against https://<MCP_HOST>/v1/mcp

Scope catalog

Scopes mirror workspace RBAC. Common groups:

Notes & projects

ScopeAccess
notes:read / notes:write / notes:deleteNotes and content
projects:read / projects:write / projects:deleteProjects, stages, tasks
projects:adminProject administration
tags:read / tags:write / tags:deleteTags
priorities:read / priorities:write / priorities:deleteTask priorities

AI & agents

ScopeAccess
ai_chat:read / ai_chat:write / ai_chat:deleteChat sessions
ai_agents:read / ai_agents:write / ai_agents:delete / ai_agents:executeAgents
ai_artifacts:read / ai_artifacts:write / ai_artifacts:deleteArtifacts
sandbox:executeAgent sandbox

Integrations & MCP

ScopeAccess
integrations:read / integrations:write / integrations:deleteNative integrations
mcp_connectors:read / mcp_connectors:write / mcp_connectors:deleteExternal MCP connectors
webhooks:read / webhooks:write / webhooks:deleteWebhooks

Profile & workspace

ScopeAccess
users:readUser search
profile:read / profile:write / profile:deleteProfile
workspaces:read / workspaces:write / workspaces:deleteWorkspaces
workspace_members:read / workspace_members:write / workspace_members:deleteMembers
api_tokens:read / api_tokens:write / api_tokens:deleteManage tokens

Fetch the live list:

curl "https://<APP_HOST>/api/v1/api-tokens/scopes" \
  -H "Authorization: Bearer wn_live_..." \
  -H "X-Workspace-Id: <WORKSPACE_ID>"

Revoke

curl -X POST "https://<APP_HOST>/api/v1/api-tokens/<TOKEN_ID>/revoke" \
  -H "Authorization: Bearer wn_live_..." \
  -H "X-Workspace-Id: <WORKSPACE_ID>"

Errors

StatusMeaning
401Missing or invalid token
403Token lacks required scope
422Invalid body (e.g. unknown scope string)

For browser OAuth into MCP clients (Claude.ai, ChatGPT), see MCP OAuth.

Use with LLM

Open Weave docs in Cursor, VS Code, Claude, ChatGPT, and other assistants from the toolbar.

MCP OAuth 2.1

OAuth 2.1 with Dynamic Client Registration and PKCE S256 for Weave MCP clients.

W© 2026 Weave. All rights reserved.
PrivacyTermsDataSupportllms.txtOpen App

On this page

Personal API Tokens (wn_)EndpointsCreate tokenUsing a tokenScope catalogNotes & projectsAI & agentsIntegrations & MCPProfile & workspaceRevokeErrors