Authentication

Snapsbrew API uses Bearer Token for authentication.

You can generate as many tokens as you want in your Account settings. The generated token should be sent to the API in an Authorization header.

This is how your header should look like:

Authorization: Bearer THIS_IS_A_VALID_API_TOKEN

Every call that is made to the API should include the Authorization header with a valid token. Otherwise, the request will be rejected.

This endpoint will allow you to make a GET request to validate that the token you are currently user is valid. No params are necessary. If your token is not valid you'll get a 401 response.

GET https://snapsbrew.com/api/v1/auth

Response

{
  "email": "[email protected]",
  "name": "Scott Summers"
}