Retain

Retain

Send product usage and identity events to Retain for churn prediction, customer health scoring, and at-risk account alerts.

Configuration

OptionDescription
Retain write key
Type: string
Required: True

Your Retain project write key (starts with "rk-"). Find it in your Retain dashboard under Settings → Project token.

Using our REST API you can create this destination like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "destination",
"name": "Retain",
"inputs": {
"writeKey": {
"value": ""
}
},
"enabled": true,
"template_id": "template-retain"
}'

Community questions