d021f7e369
- Fixes self host application - add new telemetry information - add serverId to identify a server instance - remove .twenty from git tracking - tree-shake "twenty-sdk" usage in built logic functions and front components - fix "twenty-sdk" version usage - fix twenty-zapier cli --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
45 lines
855 B
Markdown
45 lines
855 B
Markdown
# Self Hosting
|
|
|
|
Used to manage billing and telemetry of self-hosted instances
|
|
|
|
## Features
|
|
|
|
### Telemetry Webhook
|
|
|
|
Receives user signup telemetry events from self-hosted Twenty instances and creates/updates selfHostingUser records.
|
|
|
|
**Endpoint:** `POST /webhook/telemetry`
|
|
|
|
**Payload Structure:**
|
|
```json
|
|
{
|
|
"action": "user_signup",
|
|
"timestamp": "2025-11-21T...",
|
|
"version": "1",
|
|
"payload": {
|
|
"userId": "uuid",
|
|
"workspaceId": "uuid",
|
|
"payload": {
|
|
"events": [
|
|
{
|
|
"userEmail": "user@example.com",
|
|
"userId": "uuid",
|
|
"userFirstName": "John",
|
|
"userLastName": "Doe",
|
|
"locale": "en",
|
|
"serverUrl": "https://self-hosted.example.com"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
**Response:**
|
|
```json
|
|
{
|
|
"success": true,
|
|
"message": "Self hosting user created/updated: uuid"
|
|
}
|
|
```
|