Skip to content

Authentication

POST https://api.pricehubble.com/auth/login/credentials

Authenticate with your credentials to receive an access token.

Warning

Your access token is valid for 12 hours. Thereafter, it has to be acquired anew.
Please note that it is unnecessary to send an authentication request for every API call.
You risk triggering our protection system if it detects an unreasonable usage of the resources, which will inevitably result into a temporary ban.

Example Request#

curl -X POST \
  https://api.pricehubble.com/auth/login/credentials \
  -H 'content-type: application/json' \
  -d '{
    "username": "Maverick",
    "password": "TOPSECRET"
  }'

Note

Make sure to replace Maverick and TOPSECRET with your username and your password.

Example Response#

{
  "access_token": "74126eab0a9048d993bda4b1b55ae074",
  "expires_in": 43200
}

Reminder: Your access token expires every 12 hours. Thereafter, it has to be acquired anew.

Token Usage#

Your token must be sent in the HTTP Authorization request header when making subsequent requests:

Authorization: Bearer <token>

Note

Replace <token> with your access_token.