Send event data to Amplitude
Configuration
Option | Description |
---|---|
API Key Type: string Required: True | Amplitude project API key. You can find this key in the "General" tab of your Amplitude project. |
Secret Key Type: string Required: True | Amplitude project secret key. You can find this key in the "General" tab of your Amplitude project. |
Endpoint Region Type: choice Required: False | The region to send your data. |
Debug Mode Type: boolean Required: False | Will log configuration and request details |
Using our REST API you can create this destination like so:
Terminal
# Create a new destinationcurl --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": "Amplitude","inputs": {"apiKey": {"value": ""},"secretKey": {"value": ""}},"enabled": true,"template_id": "segment-actions-amplitude"}'