Skip to main content
Solved

"missing_event" error on request to identify API


Forum|alt.badge.img

Hey!

Iโ€™m attempting to submit a post request via python to the Identify API, but I keep getting back a 400 โ€œmissing_eventโ€ error.

 

My request looks like:

 

        IDENTIFY_ENDPOINT = 'https://api2.amplitude.com/identify'
        data = {
            'api_key': API_KEY,
            'identification': [{
                'user_id': 'user_id',
                'user_properties': { 'exp_group': 'control' }
            }]
        }
        res = post(IDENTIFY_ENDPOINT, headers={}, json=data)

 

Iโ€™ve seen other threads about a similar topic on this forum, but no helpful solutions from them.

 

Thanks in advance!

Best answer by rishindoshi

Update: was able to fix by plugging data into json.dumps and setting the proper content-type headers.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • Answer
  • May 27, 2022

Update: was able to fix by plugging data into json.dumps and setting the proper content-type headers.


Jeremie Gluckman
Team Member
Forum|alt.badge.img+9

Thanks for the update @rishindoshi. So glad that you were able to find a solution here. ๐Ÿ˜ƒ


  • New Member
  • 2 replies
  • July 15, 2022

What were the proper headers?


Forum|alt.badge.img+1
  • Conversationalist
  • 5 replies
  • August 19, 2022

Hi @rishindoshi , could you please provide headers ?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings