Welcome to Timbrix API
The Timbrix API is a REST API built with NestJS using Feature-Based Clean Architecture and CQRS pattern. It provides endpoints for managing organizations, members, webhooks, OAuth applications, and API keys.OpenAPI Specification
View the complete OpenAPI 3.0 specification
Base URL
All API endpoints are served from:Authentication
The API supports two authentication methods:1. Bearer Token (Supabase Auth)
Used for management endpoints. Include the Supabase access token in the Authorization header:2. API Key
Used for programmatic access. Include your API key in the X-API-Key header:Architecture
The API follows:- Feature-Based Clean Architecture: Organized by features (organizations, oauth, webhooks, users)
- CQRS Pattern: Separates read (queries) and write (commands) operations
- Domain Events: Decoupled side effects using event handlers
- Row-Level Security: Organization-based multitenancy with PostgreSQL RLS
Rate Limiting
API requests are rate-limited to prevent abuse. Contact support if you need higher limits.Error Responses
The API returns standard HTTP status codes:| Status | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid input |
| 401 | Unauthorized - Missing or invalid auth |
| 403 | Forbidden - No permission |
| 404 | Not Found |
| 409 | Conflict - Resource already exists |
| 500 | Internal Server Error |
Next Steps
Organizations
Manage organizations and their settings
Members
Invite and manage organization members
Webhooks
Configure webhooks for event notifications
OAuth
Generate OAuth tokens for API access