Public REST API
Me & Users
Verify token identity with GET /me and search workspace users.
Me & Users
GET /api/public/v1/me
Validates the Bearer token and returns the authenticated user. No X-Workspace-Id required.
| Scope | Valid wn_ token |
| Workspace header | Not required |
curl "https://<APP_HOST>/api/public/v1/me" \
-H "Authorization: Bearer wn_live_..."Success (200):
{
"status": "OK",
"message": "Successfully accessed Weave Notes Public API.",
"user": {
"id": "usr_...",
"email": "you@example.com",
"name": "Ada Lovelace"
},
"apiToken": {
"id": "tok_...",
"name": "Local scripts"
}
}Unauthorized (401):
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing token"
}
}GET /api/public/v1/users/search
Search users available to the workspace (mentions, collaborators).
| Scope | users:read |
| Workspace header | Required |
curl "https://<APP_HOST>/api/public/v1/users/search?q=ada&limit=10" \
-H "Authorization: Bearer wn_live_..." \
-H "X-Workspace-Id: <WORKSPACE_ID>"Success (shape):
{
"success": true,
"data": [
{
"id": "usr_...",
"name": "Ada Lovelace",
"email": "ada@example.com",
"avatarUrl": null
}
]
}