Authentication

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

Bearer token

Authentication with the Cake Slice API is done via bearer tokens. When establishing a connection, you will need your API token — you will find it in the Settings » API Tokens in your account. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://api.cakeslice.com/v1/libraries \
  -H "Authorization: Bearer {token}"