Getting started
This guide walks you through your first requests to the V60 Brew Log API: you authenticate, record a cup together with its bean and recipe, and get a list of your cups.
Before you begin
- You need an HTTP client. The examples in this guide use curl. You can also use Postman or send requests from the API reference in your browser.
- Read the Overview to learn how beans, recipes, and cups relate to each other.
Base URL
Send all requests to the sandbox:
https://brewlog-api.bellsandthistl.es
About the sandbox
The sandbox returns example responses based on the API specification. Keep in mind the following:
- The sandbox doesn't store data. A record you create with
POSTisn't returned by later requests. - The sandbox returns the same example records for every request. The IDs in responses are example IDs.
- The sandbox validates query parameters, such as
limitandrating, but doesn't apply them. A list request always returns the full example list.
Authenticate
Pass your API key in the X-API-Key header of every request. The sandbox accepts any non-empty value as an API key. Use only Latin letters, digits, and hyphens:
-H "X-API-Key: my-test-key"
If the header is missing, the API returns 401 Unauthorized:
{
"error": "Header must contain API-Key"
}
Record your first cup
A cup references a bean and a recipe, so you create them first.
Step 1. Add a bean
Send a POST request to /beans with the following body fields:
| Field | Type | Required | Description |
|---|---|---|---|
origin | string | Yes | The origin country of the bean |
name | string | Yes | The bean name |
method | string | No | The processing method |
roaster | string | Yes | The roaster's name |
roastDate | string | No | The roasting date in the YYYY-MM-DD format |
Example request:
curl -X POST https://brewlog-api.bellsandthistl.es/beans \
-H "X-API-Key: my-test-key" \
-H "Content-Type: application/json" \
-d '{
"origin": "Colombia",
"name": "Las Perlitas Honey",
"method": "Honey",
"roaster": "Koppa Coffee",
"roastDate": "2026-08-24"
}'
The API returns 201 Created and the new bean. Save the beanId value for step 3:
{
"beanId": "1",
"origin": "Colombia",
"name": "Las Perlitas Honey",
"method": "Honey",
"roaster": "Koppa Coffee",
"roastDate": "2026-08-24"
}
Step 2. Add a recipe
Send a POST request to /recipes with the following body fields:
| Field | Type | Required | Description |
|---|---|---|---|
grindSize | string | Yes | The grind size used in the recipe |
ratio | string | Yes | The coffee-to-water ratio used in the recipe |
waterTemp | integer | Yes | The water temperature in °C, from 90 to 100 |
brewTime | integer | Yes | The brew time in seconds |
spin | boolean | No | Whether a spinning technique was used |
Example request:
curl -X POST https://brewlog-api.bellsandthistl.es/recipes \
-H "X-API-Key: my-test-key" \
-H "Content-Type: application/json" \
-d '{
"grindSize": "13",
"ratio": "1:16",
"waterTemp": 94,
"brewTime": 150,
"spin": true
}'
The API returns 201 Created and the new recipe. Save the recipeId value for step 3:
{
"recipeId": "1",
"grindSize": "13",
"ratio": "1:16",
"waterTemp": 94,
"brewTime": 150,
"spin": true
}
Step 3. Add a cup
Send a POST request to /cups with the following body fields:
| Field | Type | Required | Description |
|---|---|---|---|
date | string | Yes | The brew date in the YYYY-MM-DD format |
beanId | string | Yes | The ID of the bean from step 1 |
recipeId | string | Yes | The ID of the recipe from step 2 |
rating | integer | Yes | The cup rating, from 1 to 10 |
taste | object | No | The taste evaluation |
taste.body | integer | No | The body score, from 1 to 10 |
taste.sourness | integer | No | The sourness score, from 1 to 10 |
taste.bitterness | integer | No | The bitterness score, from 1 to 10 |
Example request:
curl -X POST https://brewlog-api.bellsandthistl.es/cups \
-H "X-API-Key: my-test-key" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-09-01",
"beanId": "1",
"recipeId": "1",
"rating": 8,
"taste": { "body": 6, "sourness": 4, "bitterness": 3 }
}'
The API returns 201 Created and the new cup:
{
"cupId": "1",
"date": "2026-09-01",
"beanId": "1",
"recipeId": "1",
"rating": 8,
"taste": { "body": 6, "sourness": 4, "bitterness": 3 }
}
List your cups
To get a list of your cups, send a GET request to /cups:
curl https://brewlog-api.bellsandthistl.es/cups \
-H "X-API-Key: my-test-key"
The API returns a JSON array of cups, including the cup you've just added:
[
{
"cupId": "1",
"date": "2026-09-01",
"beanId": "1",
"recipeId": "1",
"rating": 8,
"taste": { "body": 6, "sourness": 4, "bitterness": 3 }
}
]
Find your best cups
To get only highly rated cups, pass the minimum rating in the rating query parameter:
curl "https://brewlog-api.bellsandthistl.es/cups?rating=8" \
-H "X-API-Key: my-test-key"
You can also filter cups by origin, beanId, and recipeId. For all filters, see Get a list of cups.
Send requests from the browser
Every endpoint page in the API reference has a request panel. To send a request from the browser:
- Open an endpoint page, for example, Get a list of cups.
- In the authentication section of the request panel, enter any value as the API key. Use only Latin letters, digits, and hyphens. If the key contains other characters, the browser doesn't send the request and no response appears.
- Fill in the parameters or the request body.
- Click Send API Request. The response appears below the request panel.
Next steps
- Errors and restrictions: handle error responses.
- API reference: explore every endpoint and its parameters.