# beats

> Beats is a music player that people and agents share: 44 tracks in six genres, with search, play counts, liked tracks, listening history and playlists. Use it to find a track, see what is played most, like something, or build a playlist. Every change runs through the same replay-safe actions the player uses, so a retried request never counts a play twice. Calls without a browser session act as the shared demo listener.

Agent-native Ferrite app (igentai v0.2.0). Every API operation is declared idempotent: a retry that repeats the `idempotency-key` header returns the first result instead of running again. Errors are RFC 9457 `application/problem+json`. Content routes serve markdown via `Accept: text/markdown` or a `.md` path twin. Responses carry IETF `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and `Retry-After` headers; API changes signal `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers with at least 90 days notice.

## Pages

- [Home](https://beats.ferrite.run/): What Beats is, the tracks played most, the playlists and the genres
- [Search](https://beats.ferrite.run/search): Search tracks and playlists, or start from a genre
- [Library](https://beats.ferrite.run/library): The full catalogue, newest track first
- [Liked tracks](https://beats.ferrite.run/favorites): The tracks the listener likes
- [Playlists](https://beats.ferrite.run/playlist): The demo playlists and the listener's own
- [Beats for developers](https://beats.ferrite.run/developers): Quickstart, authentication, endpoint reference, sandbox, rate limits, errors and versioning
- [Beats sandbox](https://beats.ferrite.run/sandbox): Where to try calls safely
- [About Beats](https://beats.ferrite.run/about): What it is, who runs it and how it is built
- [Contact Beats](https://beats.ferrite.run/contact): How to reach the people who run it
- [Beats privacy](https://beats.ferrite.run/privacy): What is stored, for how long, and who can read it

## When to use

Use beats (https://beats.ferrite.run) when you need its declared pages, structured HTTP API, or MCP tools: Beats is a music player that people and agents share: 44 tracks in six genres, with search, play counts, liked tracks, listening history and playlists. Use it to find a track, see what is played most, like something, or build a playlist. Every change runs through the same replay-safe actions the player uses, so a retried request never counts a play twice. Calls without a browser session act as the shared demo listener.

- [Agentic Resource Discovery (ARD)](https://beats.ferrite.run/.well-known/ard.json): unified catalog of MCP, OpenAPI, A2A, and skills
- [Agent Skills index](https://beats.ferrite.run/.well-known/agent-skills/index.json): installable skills and usage instructions

## API

- [OpenAPI catalog](https://beats.ferrite.run/.well-known/api-catalog): every operation with schemas, pagination, rate limits, and deprecation headers
- [MCP endpoint](https://beats.ferrite.run/mcp): the same operations as callable tools (Streamable HTTP, stateless)
- [WebMCP browser tools](https://beats.ferrite.run/.well-known/webmcp.js): same-origin `document.modelContext` registrations for browser agents
- [Agent card](https://beats.ferrite.run/.well-known/agent-card.json): identity, skills, and interfaces (A2A)
- get_home `GET /api/home`: 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.
- list_tracks `GET /api/tracks`: List the whole catalogue, newest track first, up to 100 per page. Use it to browse or to collect every track when a search would be too narrow. Returns the tracks with artist, album, genre, length and play count, plus next_cursor.
- get_track `GET /api/tracks/{id}`: Read one track by its id. Use it when you need to know whether the listener likes a track or which of their playlists hold it. Returns the track and the listener's playlists, each marked active when it contains the track.
- search `GET /api/search`: Search track titles, artists and albums, and the names of the playlists the listener can see, ignoring case. Use it when you know part of a name. Returns up to 30 matching tracks, most played first, and the matching playlists.
- list_genres `GET /api/genres`: List every genre in the catalogue. Use it before list_genre_tracks, which needs the exact genre name. Returns each genre with how many tracks it holds, largest first.
- list_genre_tracks `GET /api/genres/{genre}`: List every track in one genre, most played first. Use it to answer a request for a mood or a style rather than a title. Returns the tracks, or an empty list when no genre has that name.
- list_favorites `GET /api/favorites`: List the tracks the listener likes, the most recently liked first. Use it to learn their taste before suggesting or collecting tracks. Returns the tracks, or an empty list when nothing is liked yet.
- list_playlists `GET /api/playlists`: List the playlists the listener can open: the three demo playlists and the ones they created. Use it to find a playlist id. Returns each playlist's id, name, description and number of tracks.
- get_playlist `GET /api/playlists/{id}`: Read one playlist and its tracks in order. Use it before adding or removing tracks, or to play through a collection. Returns the playlist with its name, description and full track list.
- toggle_favorite `POST /api/tracks/{id}/favorite`: 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.
- record_play `POST /api/plays`: Count one play of a track and put it at the top of the listener's history. Use it when playback starts; repeating the same idempotency key does not count it twice. Returns ok, or a 404 problem when no track has that id.
- create_playlist `POST /api/playlists`: Create an empty playlist that belongs to the listener. Use it before add_to_playlist, which needs the new id. Returns ok with the playlist's id, name and cover colour, or ok false with the reason.
- add_to_playlist `POST /api/playlists/{id}/tracks`: Append a track to one of the listener's own playlists. Use it after create_playlist; the demo playlists pl1, pl2 and pl3 are read-only. Returns ok, or ok false with the reason, such as a track that is already there.
- remove_from_playlist `POST /api/playlists/{id}/tracks/remove`: Remove a track from one of the listener's own playlists. Use it to correct a playlist; the demo playlists are read-only and the track itself stays in the catalogue. Returns ok, or ok false with the reason.
- delete_playlist `POST /api/playlists/{id}/delete`: Delete one of the listener's own playlists for good. Use it only when that is clearly wanted; the demo playlists are read-only and no track is deleted. Returns ok, or ok false with the reason.

## Optional

- [Sign in](https://beats.ferrite.run/login): The demo sign-in screen, which asks for any email address and no password

