You'll need to authenticate your requests to access any of the endpoints in the BlogHunch API. In this guide, we'll look at how authentication works.

Opaque with bearer token

The recommended way to authenticate with the BlogHunch API is by using Opaque. When establishing a connection using Opaque, you will need your access token — you will find it in the BlogHunch dashboard under API settings. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised.

Using an SDK

If you use one of our official SDKs, you won't have to worry about any of the above — fetch your access token from the BlogHunch dashboard under API settings, and the client library will take care of the rest.