Solved

User profile api is returning "Invalid Api-Key"


Badge

I am calling https://profile-api.amplitude.com/v1/userprofile endpoint using Insomnia/Postman with the header “Authorization: Api-Key <My-Api-Key>” but the response is always “Invalid Api-Key”.
I’ve only one project and only one Api-Key, so does anyone know why I'm getting this response?

Thanks in advance!

icon

Best answer by psoares 16 May 2022, 15:17

View original

4 replies

Userlevel 3
Badge +1

Hey there, thanks for writing in! 

Sorry to hear that you are getting this error all the time! 

Do you mind sharing your API call (payload) so we could look into it? 

 

Thanks! 

Badge

Hey there, thanks for writing in! 

Sorry to hear that you are getting this error all the time! 

Do you mind sharing your API call (payload) so we could look into it? 

 

Thanks! 

Hello Zhenia! 

First, thanks for the answer.
I’m not using an API, I’m testing that endpoint through Insomnia and Postman rest.
Maybe that's the problem?

note: this user_id and api key from the ss above are fake.

Userlevel 3
Badge +1

It should not be the problem! Could you please send over your Org ID and Project ID to which you are initiating this request? that would help a lot :) 

Badge

It should not be the problem! Could you please send over your Org ID and Project ID to which you are initiating this request? that would help a lot :) 

Sure!

I've just sent it to you by private message.

Reply