# Beats sandbox

The public address is the sandbox. A call without a browser session acts as the shared demo listener, so reads and writes are both safe to try and never touch a person's own listener. Liking is a toggle: repeat the call to undo it. Playlists you create there can be deleted again, and the three demo playlists cannot be changed.

## Connect

- Base URL: `https://beats.ferrite.run`
- MCP server: `https://beats.ferrite.run/mcp`
- Requests and responses: [OpenAPI 3.1 document](/openapi.json)

## Credentials

No API key, account or sign-up is needed: the API is keyless, so the first request you send can be a real one.

## Try a read

Read the three panels of the listener's home screen. Use it first for an overview of the catalogue and to find track ids. Returns up to eight recently played tracks, eight most played ones, and eight to discover that the listener has not liked.

```sh
curl -s 'https://beats.ferrite.run/api/home'
```

## Try a write

Like a track, or remove the like when the listener already likes it. Use it when somebody says they enjoy a track; get_track shows the present state. Returns ok, or a 404 problem when no track has that id.

```sh
curl -s -X POST 'https://beats.ferrite.run/api/tracks/t1/favorite' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: toggle_favorite-1' \
  -d '{}'
```

The [developer guide](/developers) lists every operation, the error format and the rate limits.
