HTTP API Quickstart
Use this guide to get started with the Amplitude HTTP V2 API. For a detailed look at additional considerations and error handling, refer to the complete HTTP V2 API Reference.
Send data
EU Residency
For EU data residency, configure the project inside Amplitude EU. In all examples, replace the standard endpoint https://api2.amplitude.com/2/httpapi with the EU residency endpoint https://api.eu.amplitude.com/2/httpapi.
Choose your target platform to send a POST request to https://api2.amplitude.com/2/httpapi (or https://api.eu.amplitude.com/2/httpapi for EU residency). Replace YOUR_API_KEY with the API KEY for your Amplitude project.
curl -X POST https://api2.amplitude.com/2/httpapi \
-H "Content-Type: application/json" \
-H "Accept: */*" \
-d "{
'api_key': 'YOUR_API_KEY',
'events': [{
'user_id': '203201202',
'device_id': 'C8F9E604-F01A-4BD9-95C6-8E5357DF265D',
'event_type': 'watch_tutorial'
}]
}"
Check for success
After you send data to Amplitude, use one of the debugging tools to check your instrumentation and validate events.
Was this helpful?