Skip to main content

Hi,

I’m trying to call event segmentation API and the sample curl request is as shown below. i’m getting 400 response. could you please help me identify the issue here?

curl --location -g --request GET 'https://amplitude.com/api/2/events/segmentation?start=20220704&end=20220707&s=p{"prop": "gp:customer_type","op": "is","values": s"New"]}]&e={"event_type": "OnPricingPage", "filters": s{"subprop_type": "event","subprop_key": "signed_in","subprop_op": "is","subprop_value": e"True"]}}' 

 

Hey there,

please refer to this post: 

 customer type and signed in both appear to be custom properties and when we use a custom user property to filter on, we have to use gp: before it. 


Hey @harry-harish 

Adding to Zhenia’s suggestion of using gp: for custom user properties, you could also try using backslash syntax to escape characters if the issue persists since you are using curl.


Reply