API Reference
Workspace & Team Endpoints
API endpoints for managing workspaces, team members, and integrations.
Workspaces
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/workspaces | List all workspaces (admin: all, member: assigned only) |
| POST | /v1/workspaces | Create workspace (admin only) |
| GET | /v1/workspaces/:id | Get workspace by ID or slug |
| PUT | /v1/workspaces/:id | Update workspace (admin only) |
| DELETE | /v1/workspaces/:id | Delete workspace and all data (admin only) |
| POST | /v1/workspaces/token/:id | Generate/regenerate share token |
Public Portal
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/public/portal/:token | Public stats page (no auth required) |
Team Management (Admin Only)
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/admin/team | List all team members with workspace counts |
| POST | /v1/admin/team | Create a team member |
| PUT | /v1/admin/team/:id | Reset member password |
| DELETE | /v1/admin/team/:id | Remove team member |
Integrations
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/integrations/webhooks | List webhook subscriptions |
| POST | /v1/integrations/webhooks | Create webhook subscription |
| PUT | /v1/integrations/webhooks/:id | Update webhook |
| DELETE | /v1/integrations/webhooks/:id | Delete webhook |
| POST | /v1/integrations/webhooks/:id/test | Send test event |
| GET | /v1/integrations/crm | List CRM integrations |
| POST | /v1/integrations/crm | Connect CRM (API key method) |
| DELETE | /v1/integrations/crm/:id | Disconnect CRM |
| GET | /v1/integrations/slack | Check Slack connection |
| POST | /v1/integrations/slack | Connect Slack webhook |
| DELETE | /v1/integrations/slack | Disconnect Slack |
Newsletter
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/newsletter/forms | List forms |
| POST | /v1/newsletter/forms | Create form |
| PATCH | /v1/newsletter/forms/:id | Update form |
| DELETE | /v1/newsletter/forms/:id | Delete form |
| GET | /v1/newsletter/subscribers | List subscribers |
| POST | /v1/newsletter/upload-bonus | Upload lead magnet file |
System
| Method | Endpoint | Description |
|---|---|---|
| GET | /health | Basic health check (no auth) |
| GET | /v1/system/logs | Recent application logs |
| GET | /v1/system/update/check | Check for available updates |
| POST | /v1/system/update/trigger | Trigger self-update |
| GET | /v1/infrastructure/ips | List local IPs for rotation |
| GET | /v1/system/mailcow | Mailcow integration status |