Bookmark API
Pokke exposes a small authenticated API for bookmark operations.
Base URL
Section titled “Base URL”https://api.pokke.femto-cloud.comAuthentication
Section titled “Authentication”All /api/v1/* endpoints require an API key in the Authorization header.
Authorization: Bearer <YOUR_API_KEY>If the header is missing or invalid, the API returns 401.
OpenAPI and Swagger UI
Section titled “OpenAPI and Swagger UI”Create a Bookmark
Section titled “Create a Bookmark”POST /api/v1/bookmarks.create
Request body:
{ "workspaceId": "00000000-0000-0000-0000-000000000000", "url": "https://example.com"}You can also provide manual metadata:
{ "workspaceId": "00000000-0000-0000-0000-000000000000", "url": "https://example.com", "metadata": { "source": "manual_input", "title": "Example", "description": "Saved from a custom client" }}Notes:
workspaceIdmust be a valid UUID.urlmust be a valid URL.metadata.sourcemust bemanual_inputwhen metadata is provided.
List Bookmarks
Section titled “List Bookmarks”GET /api/v1/bookmarks.list
Query parameters:
workspaceIdrequiredlimitoptional,1-100, default20offsetoptional, default0
Example:
GET /api/v1/bookmarks.list?workspaceId=<WORKSPACE_ID>&limit=20&offset=0The response includes:
- bookmark IDs
- original and normalized URLs
- bookmark metadata when available
- optional AI summary fields
totalCount
Search Bookmarks
Section titled “Search Bookmarks”GET /api/v1/bookmarks.search
Query parameters:
workspaceIdrequiredqueryrequiredlimitoptional,1-100, default20offsetoptional, default0
Example:
GET /api/v1/bookmarks.search?workspaceId=<WORKSPACE_ID>&query=typescript&limit=20&offset=0Search returns the same bookmark shape as the list endpoint.
Example cURL
Section titled “Example cURL”curl -X POST "https://api.pokke.femto-cloud.com/api/v1/bookmarks.create" \ -H "Authorization: Bearer <YOUR_API_KEY>" \ -H "Content-Type: application/json" \ -d '{ "workspaceId": "<WORKSPACE_ID>", "url": "https://example.com" }'