HTTP API $identify
POST https://api2.amplitude.com/2/httpapi
Use event_type = $identify
to send user properties as an event. $identify
is a function within the HTTP that essentially functions like the Identify API. Using $identify
saves you requests, because you don't have to make separate requests to the Identify API to update user properties before sending event data.
Request Body
{"api_key"=>"{{api_key}}", "events"=>[{"user_id"=>"casey@amplitude.com", "event_type"=>"$identify", "user_properties"=>{"$add"=>{"friendCount"=>1}}}]}
RESPONSES
status: OK
{"code":200,"server_upload_time":1645224104080,"payload_size_bytes":309,"events_ingested":1}