Question

[Dashboard Rest API] My cURL for a custom event only returns error code 229

  • 4 August 2023
  • 0 replies
  • 154 views

Hi everyone!

 

I’m trying to use the Amplitude Dashboard REST API cURL detailed under “Get a custom event for period” here https://www.docs.developers.amplitude.com/analytics/apis/dashboard-rest-api/#advanced-event-segmentation-examples to get event segmentation for a custom event but I keep getting a 229 error code. Any idea what I’m doing wrong?

 

This curl:

curl --location -g --request GET 'https://amplitude.com/api/2/events/segmentation?e={"event_type":"ce:age_view}&start=20230701&end=20230802' \
-u 'KEY:SECRET'

Returns: “{"error": {"code": 229, "message": "Unable to create definition from arguments."}}”

 

But this curl works fine:
curl --location -g --request GET 'https://amplitude.com/api/2/events/segmentation?e={"event_type":"_active"}&start=20230701&end=20230802' \
-u 'KEY:SECRET'

 

I’ve tried with multiple custom events other than age_view but I always get the same error. I’d appreciate any help on this and thanks so much again! 


0 replies

Be the first to reply!

Reply