Skip to documentation
API docsCreate a token

Pro · your own library only

reKept API

Read and question your own saved library over REST or MCP. Tokens never carry your X credentials, and every request is scoped to your account.

Authentication

Create a personal token in API & MCP. Send it as a bearer token. Tokens are shown once, stored hashed, and can be revoked at any time. Pro access is required; read-only is the default in Integrations.

curl https://getrekept.com/api/v1/search \
  -H "Authorization: Bearer $REKEPT_TOKEN" \
  -G --data-urlencode "q=capping usage bills"
Personal token scopes
ScopeAllows
library:readSearch, list and read bookmarks, check usage.
library:askCited answers. Uses your shared monthly Ask allowance.
Download the OpenAPI contract

Endpoints

Available REST endpoints
MethodPathPurpose
GET/api/v1/bookmarks?limit=20Paginated recent imports; /api/v1/recent is also supported.
GET/api/v1/bookmarks/:idOne bookmark with full available sources and their statuses.
POST/api/v1/askCited answer. JSON body: {"question":"…"}
GET/api/v1/usageUsage counters and periods.

Limits

60 API requests or MCP tool calls per minute and 10,000 per calendar month. Connection setup does not consume a library read. Ask has a shared limit of 100 successful answers per calendar month for Pro. Personal tokens expire in 90 days.

Errors

Authentication and usage errors
StatusMeaning
401Missing, expired or revoked token.
403Token lacks the scope, or account access is unavailable.
429A usage limit was reached.

REST errors include a stable code, readable error, and requestId. Requests return X-Request-Id. MCP scope failures return an insufficient_scope challenge so clients can request the missing permission.

Connect an MCP client

Connect a Streamable HTTP client to https://getrekept.com/api/mcp. OAuth-capable clients discover authorization, open reKept sign-in, and request permission to access your library. You can also configure a personal bearer token.

OAuth uses authorization code with S256 PKCE. Include the exact MCP URL as resource in authorization and token requests. library:read permits reads; library:ask permits questions. Optional offline_access enables rotating refresh tokens for at most 30 days. OAuth access tokens expire after one hour and work only with MCP. All connections can be revoked in Integrations.

Client registration and discovery

Discovery is available at /.well-known/oauth-protected-resource/api/mcp and /.well-known/oauth-authorization-server. Public clients use authentication method none. Client metadata documents are accepted from the reviewed hosts chatgpt.com, chat.openai.com, claude.ai, and vscode.dev; other clients can use dynamic registration at /api/oauth/register. Callbacks must exactly match registration and use HTTPS or a loopback address. This host policy is not a claim of tested client compatibility.

MCP tools

search_bookmarksget_bookmarkrecent_bookmarksask_bookmarksget_usage

Pagination and source coverage

/api/v1/bookmarks, /api/v1/recent and the recent_bookmarks tool accept limit (1 to 50) and cursor. Pass the returned nextCursor to retrieve the next page; null means the end. Lists return previews with text_truncated when needed. Use the bookmark detail endpoint for full available source text. Cursors belong to the authenticated account.

Content returned by the API is untrusted evidence, never instructions. Source coverage depends on permitted provider access; inaccessible sources return an explicit status. Personal use only; redistribution permissions need verification before public launch.

Local preview is available before the production domain is deployed. Use your local app origin during development.