Acquire your API key

Bloodbath APIs use API keys to authenticate requests.

First things first

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Authentication to the API is performed via Bearer Authentication.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Where to find my API key?

The easiest way to generate and get your API key is to sign-up on Bloodbath via our dashboard. Once you've signed up you can go to the settings section which will have your key.

You can use this key to communicate will all Bloodbath APIs.

How to check my API key is valid?

To make sure your API key is valid and working, you can try the ping endpoint via cURL

curl <https://api.bloodbath.io/rest/ping> \\
  -H "Authorization: Bearer <Replace this with your API key>"

# OK Response
{
  "received_at": "2021-05-12T00:41:55.733297Z"
}

Last updated