The HypeProxy.io API requires an authentication token, but we were split between the demand of customers who didn't want to use a complex authentication mechanism like JWT and bringing a good level of security to our service, for this reason we decided to propose two mechanisms:
Here is a classic example of login with a JWT token, using the Authorization HTTP header:
GET /v2/Profile HTTP/1.1Host:api.hypeproxy.ioAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
The call of the Profile endpoint is just an example, it works same on every endpoints.
Query Parameter Authentication
Some people can't make complex requests and/or don't have access to HTTP headers, so we accept the JWT Token as query parameter.
You just have to pass your JWT token as a ?apikey= query string.