User session hash vs admin panel hash vs API key

Question

User session hash vs admin panel hash vs API key. Which one should I use?

Answer

To use the Navixy API, you authenticate using either a session key (hash) or an API key.

Example (user API call authenticated by a user session hash):

https://api.domain.com/v2/retranslator/list?hash=a6aa75587e5c59c32d347da438505fc3

You could also use an API key in place of the user session hash. They look the same and are interchangeable for the User API.

There are three common auth tokens:

  1. User session hash

    • obtained via user/auth

    • expires

    • used for User API

  2. API key

    • created in UI or via API

    • does not expire

    • used for User API

    • recommended for integrations

  3. Admin panel hash (session key)

    • obtained via panel/account/auth

    • expires

    • used only for Admin Panel API

The easiest way to choose the right token is to look at the URL path:

User API URL examples

Admin Panel API URL examples

All Admin Panel resources start with .../panel/....

circle-exclamation

When building integrations, prefer API keys for the User API whenever possible.

In summary:

  • For the User API, prefer API keys.

  • For the Admin Panel API, use admin panel session keys, but handle them with caution.

Last updated

Was this helpful?