The Mako API is a RESTful API built with Hono. All endpoints are prefixed with /api.
| Method | Endpoint | Description |
|---|
POST | /api/auth/login | Login with email/password |
POST | /api/auth/register | Create a new account |
GET | /api/auth/me | Get current user session |
POST | /api/auth/logout | End session |
| Method | Endpoint | Description |
|---|
GET | /api/workspaces | List user workspaces |
POST | /api/workspaces | Create a workspace |
GET | /api/workspaces/:id | Get workspace details |
| Method | Endpoint | Description |
|---|
GET | /api/workspaces/:wid/connectors | List configured data sources |
POST | /api/workspaces/:wid/connectors | Add a new data source |
POST | /api/workspaces/:wid/sync-jobs | Trigger a sync job |
GET | /api/workspaces/:wid/sync-jobs/:jid | Get sync job status |
| Method | Endpoint | Description |
|---|
POST | /api/execute | Execute a SQL/NoSQL query |
POST | /api/agent | Ask the AI agent a question |
| Method | Endpoint | Description |
|---|
POST | /api/inngest | Inngest webhook handler |