# Where can I find the "token\_auth" for the Tracking HTTP APIs?

**URL:** https://community.piwik.pro/t/where-can-i-find-the-token-auth-for-the-tracking-http-apis/480
**Category:** Data collection and tags
**Created:** [February 18, 2022, 6:30pm UTC](https://community.piwik.pro/t/where-can-i-find-the-token-auth-for-the-tracking-http-apis/480 "2022-02-18T18:30:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bago](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bago](https://community.piwik.pro/u/bago)
#### Post date: [February 18, 2022, 6:30pm UTC](https://community.piwik.pro/t/where-can-i-find-the-token-auth-for-the-tracking-http-apis/480/1 "2022-02-18T18:30:50Z")

</div>

The documentation say that in order to override the IP (cip parameter) I have to pass the auth\_code:

> **[Tracking HTTP API](https://developers.piwik.pro/en/latest/data_collection/api/http_api.html)**
>
> Tracking HTTP API collects events such as page views, custom events and content impressions. The data sent to this API will be processed and eventually appear in Analytics reports.

I can’t find this auth\_code in the admin interface and I can’t find anything in the documentation, about this auth\_code beside that specifica http\_api documentation.

Sounds like in past all of the API used the auth\_code mechanism and then 1 year ago it was deprecated and most APIs moved to a new authentication mechanism, but the HTTP API still use it.

( I’m trying to use the API via the piwikpro-php-client found here: [GitHub - PiwikPRO/piwikpro-php-client](https://github.com/PiwikPRO/piwikpro-php-client) , but it simply matches the HTTP\_API documentation and expects a token\_auth when I want to override the IP, but doesn’t tell anything about generating/finding this token\_auth ).

---

<div class="post-metadata">

### Author: ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)
#### Post date: [February 20, 2022, 12:30pm UTC](https://community.piwik.pro/t/where-can-i-find-the-token-auth-for-the-tracking-http-apis/480/2 "2022-02-20T12:30:37Z")

</div>

Have you tried without the token or with a random value?
