Skip to main content

API Reference

REST API and WebSocket protocol reference for EdgeBase. Most endpoints are available at your project's base URL, with WebSocket and admin-only helpers called out below.


Base URL

https://your-project.edgebase.fun/api/

API Groups

GroupBase PathDescription
Authentication/api/auth/*Sign up, sign in, OAuth, token refresh, password reset
Database/api/db/{namespace}/tables/{table}, /api/db/{namespace}/{instanceId}/tables/{table}CRUD, batch, queries, count
Storage/api/storage/{bucket}/*Upload, download, signed URLs, multipart
Database Subscriptions/api/db/subscribe, /api/db/connect-check, /api/db/broadcastWebSocket connection, preflight diagnostics, and server-side broadcasts
Room/api/room, /api/room/connect-check, /api/room/metadataRoom WebSocket connection plus room metadata and diagnostics
Push/api/push/*Device registration, topic management
Functions/api/functions/*HTTP-triggered App Functions
Analytics/api/analytics/*Request metrics and custom event tracking
Admin/api/auth/admin/*User management (requires Service Key)
Native Resources/api/kv/*, /api/d1/*, /api/vectorize/*Direct KV, D1, Vectorize access
Raw SQL/api/sqlService-key-backed SQL execution for configured database namespaces
System/api/health, /api/schema, /api/configHealth check, schema introspection, and public runtime config

Authentication

Most endpoints require a JWT access token:

Authorization: Bearer <access_token>

Admin endpoints additionally require a Service Key:

X-EdgeBase-Service-Key: <service_key>

Next Steps

PageDescription
Authentication APIAuth endpoints (signup, signin, OAuth, refresh)
Database APICRUD, batch, query, count endpoints
Storage APIFile upload, download, signed URL endpoints
Database Subscriptions APIWebSocket protocol for database subscriptions
Room APIWebSocket protocol plus room metadata and diagnostics
Push APIPush notification endpoints
Functions APIHTTP function endpoints
Analytics APIMetrics query and custom event endpoints
Admin APIAdmin user management endpoints
Native Resources APIKV, D1, Vectorize endpoints
Raw SQLService-key-backed SQL execution against configured namespaces
System APIHealth check, schema, and config endpoints