AI & Developer Tools

REST API Reference

KeepCloud exposes its backend capabilities at https://api.keepcloud.in alongside the Streamable HTTP MCP gateway at /mcp. All protected routes authenticate via KeepCloud JWT cookies/Bearer tokens, while /mcp uses OAuth 2.1 PKCE or scoped kc_mcp_... keys.

Base URL & Authentication Endpoints

All REST endpoints sit under `https://api.keepcloud.in`. Public key inspection and JWT token refresh routes support web, desktop, and API sessions.

Method & PathPurpose
GET /api/auth/public-keyFetches active RSA public verification key
POST /api/auth/refreshRefreshes an active authenticated session token
GET /api/auth/meReturns authenticated user profile, tier, and quota flags
POST /api/auth/googleCompletes Google ID token login flow
POST /api/account/consentStores or updates DPDP indexing consent state
GET /sessions & DELETE /sessions/{session_id}Lists active device sessions or revokes specific sessions

Cloud Connections & Storage Telemetry

Method & PathPurpose
GET /api/cloud/accountsLists all linked Google Drive, OneDrive, Dropbox, Telegram & MEGA accounts
PATCH / DELETE /api/cloud/accounts/{account_id}Updates account metadata or unlinks a connected cloud
GET /api/cloud/storageReturns aggregated used/total quota metrics across linked clouds
GET /api/cloud/google/login & /picker-filesInitiates Google OAuth or syncs Picker-selected items
GET /api/cloud/onedrive/login & /api/cloud/dropbox/loginStarts Microsoft OneDrive or Dropbox OAuth flows
GET /api/cloud/telegram/qr & POST /verify-pairingPairs Telegram Cloud Storage via QR code or bot session
POST /api/cloud/mega/connectLinks an encrypted MEGA storage session

Vault Files, Uploads, Sharing & Recycle Bin

Method & PathPurpose
GET /api/cloud/filesUnified directory listing across connected cloud providers
POST /api/cloud/upload & /api/cloud/files/uploadUploads files up to MAX_UPLOAD_SIZE_MB (2048 MB default)
POST /api/cloud/create-folderCreates a directory on the specified provider & account
POST /api/cloud/files/moveNon-destructively moves a file or folder inside a provider
POST /api/cloud/files/copyCopies files across folders or across different cloud providers
GET /api/proxy/download & /api/proxy/thumbnailStreams authenticated file downloads and image thumbnails
POST /api/share/create & /api/share/unlockIssues expiring/password-protected opaque share URLs and unlocks gated shares
GET /api/cloud/recycle & POST /restoreLists soft-deleted items and restores files from Recycle Bin

Billing, 2FA/DPDP & Remote MCP Routes

Method & PathPurpose
GET /api/subscriptions/plans & /invoicesFetches available plans, pricing tiers, and billing receipts
POST /api/user/2fa/setup & /enable & /disableManages TOTP two-factor authentication
GET /api/user/export-data & POST /api/user/dpdpa/nominateDPDP Act 2023 full JSON export and data fiduciary nominee controls
GET / POST / DELETE /api/mcp/tokensCreates, lists, and revokes scoped kc_mcp_... Bearer tokens
GET /.well-known/oauth-authorization-serverRFC 8414 OAuth 2.1 PKCE metadata for ChatGPT, Claude, Gemini & Indus
POST /mcpStreamable HTTP MCP JSON-RPC 2.0 endpoint exposing all 9 KeepCloud tools
Fetch Connected Accounts (cURL)
curl -X GET https://api.keepcloud.in/api/cloud/accounts \
  -H "Authorization: Bearer YOUR_USER_JWT"

Frequently Asked Questions

Which endpoints accept kc_mcp_... tokens instead of user session JWTs?

Scoped kc_mcp_... tokens are strictly restricted to the /mcp JSON-RPC endpoint and cannot call account billing, credential management, or deletion APIs.