Authentication
POST
https://api.pricehubble.com/auth/login/credentials
Authenticate with your credentials to receive an access token.
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
}
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
.