Self Hosting
Used to manage billing and telemetry of self-hosted instances
Requirements
- twenty-cli
npm install -g twenty-cli - an
apiKey. Go tohttps://twenty.com/settings/api-webhooksto generate one
Install to your Twenty workspace
twenty auth login
twenty app sync
Environment Variables
This application requires the following environment variables to be set:
TWENTY_API_URL: The Twenty instance API URL where selfHostingUser records will be createdTWENTY_API_KEY: API key for authentication (generate at/settings/api-webhooks)
Features
Telemetry Webhook
Receives user signup telemetry events from self-hosted Twenty instances and creates/updates selfHostingUser records.
Endpoint: POST /webhook/telemetry
Payload Structure:
{
"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:
{
"success": true,
"message": "Self hosting user created/updated: uuid"
}