Use Basic Authorization

To get a bearer token, you’ll need to authenticate with your client_id and secret using Basic authorization.

Example

Authorization: Basic username:password (sent as a base64-encoded string)


-H 'Authorization: Basic ABCdEfG0ABCdMTU5OjFhM2M0ABC2NzgwZjU5ABChYjI4M2I2ABclYTkzM2Y3ZWQ0NTdmMjMwZTBl' \

To convert your client_id and secret to a base64-encoded string, refer to the following examples:

Shell


echo -n “client_id:secret” | base64 -w 0

PHP


echo base64_encode(‘client_id:secret’);

Node.js


console.log(Buffer.from(“client_id:secret”, “ascii”).toString(“base64”))

What's Next