🤝 Authenticate
🔐 Basic Authentication
The API uses Basic authentication, all your requests must have the Authorization
header set to Basic <credentials>
where credentials
is the Base64 encoding of your API key and API secret joined by a single colon :
.
Example
For instance, if your API key is
hello
and your API secretworld
, then you must compute the Base64 encoding forhello:world
which isaGVsbG86d29ybGQ=
.Thus, all your requests must include the following header:
Authorization: Basic aGVsbG86d29ybGQ=
⚙️ Snippets to hash your key
Buffer.from('<API_KEY>:<SECRET>').toString('base64');
import base64
base64.b64encode('<API_KEY>:<SECRET>'.encode('ascii')).decode('ascii')
echo -n '<API_KEY>:<SECRET>' | base64 -w 0
Integrated examples available here:
🔐
Authenticate
Open Recipe
Updated 10 months ago