Mixpanel has tricky set of credentials which consist of Token, API Key and API Secret. There are several places where you can see these credentials in Mixpanel UI. 

Please ensure you're using *API Key* and not *Token* instead.

API Key and API Secret can be found in Account menu on the right side of Mixpanel UI.

Did this answer your question?