HTTP API Quickstart
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.
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
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?