Familiar API v0

One model of a person, shared by every app they use. Your app signs someone in with Familiar, and from the first screen it knows what they like: ask for things picked for them, steer the picks in plain words, and send back what they did.

Internal preview. Base URL . The models behind it today: music ( tracks) and things . Nothing here is stable yet; this page is the source of truth and Theo is the reference client.

Overview

An app built on Familiar does four things:

  1. Signs the person in with a redirect, and gets back a token for that one person. If they are new, Familiar onboards them on the way through; if they already use another Familiar app, they arrive known.
  2. Asks for content picked for them. In v0 that is music, which Familiar holds itself, and recent articles, videos, newsletters and podcast episodes from the one catalogue it is fed (Braid's). (Bringing your own catalogue is not in v0.)
  3. Lets them steer: a typed request such as "just some jazz from the 1970s" becomes a structured steer you pass with the next request.
  4. Sends feedback: love, like, dislike, skip, play. All of it is logged against the person; the first three change what they get next, in your app and every other.

Concepts

TermWhat it is
DeveloperYou. An address we approved for the API, with an API key. A developer registers apps, as many as they need.
AppWhat you build. An app_id, an app_secret your server keeps, the redirect URLs you registered, and the people you registered for it: only they can sign in to it.
PersonA UUID. Familiar knows their email; your app gets it once at sign-in and otherwise works with the token.
FactOne thing and how the person feels about it: {domain, kind, text, valence}. domain is music or topic; kind is artist, track, genre or interest; a track's text is Title - Artist.
Valence−2 hates, −1 not for them, 0 follows without liking (news), 1 likes, 2 loves.
ConnectionWhere a batch of facts came from: something they typed, a screenshot, a Last.fm name, their Spotify, another Familiar app. Removing a connection removes its facts.
FeedbackWhat they did with something you showed them. Append-only, kept per person with your app_id on it.
SteerA small object that bends a recommendation request: a prompt, things to be like, years, popularity. Stateless: you hold it and send it each time.

Facts cross domains. Someone who has only told Familiar about sailing and Korean food still gets music: the things model knows what music people with those interests like, and each interest deals its own tracks. Every track comes back with a why that says which fact dealt it.

Quick start

# 1. Send the person to Familiar (a browser redirect)
/v1/auth/authorize?app_id=theo&redirect_uri=https://your.app/&state=xyz&onboarding=music

# 2. They come back to https://your.app/?code=fc_...&state=xyz. On your server:
curl -X POST /v1/auth/token -H 'Content-Type: application/json' \
  -d '{"app_id": "theo", "app_secret": "…", "code": "fc_…"}'
# -> {"access_token": "fa_…", "user": {"id": "0b6f…", "onboarded": true, …}}

# 3. Ten tracks for them
curl /v1/me/music/recommendations?n=10 -H 'Authorization: Bearer fa_…'

# 4. They loved one
curl -X POST /v1/me/feedback -H 'Authorization: Bearer fa_…' -H 'Content-Type: application/json' \
  -d '{"item": "spotify:track:4uLU6hMCjMI75M1A2tKUQC", "type": "love", "context": {"surface": "player"}}'

Every call after sign-in carries Authorization: Bearer <access_token>. Bodies and answers are JSON. Keep the token on your server: it reads and writes one person's profile.

Prompts as parameters

Where a developer would otherwise learn a dozen settings, Familiar takes a sentence. Three places today:

WhereYou writeYou get
prompt on a speed date"Choose songs from different genres that are popular"
"Choose cards that cover: space, cooking, the NBA"
That many things for a new person to react to. Nobody's taste is in it.
guidance on recommendations"Show them only news"
"Show them cards from diverse sources"
"Well-known songs from the 1990s, with lots of variety"
The person's own picks, held to what you said.
text on a person's steersWhat the person said, as they said it:
"Show me less Trump stuff right now"
"I'm in the Douro valley for two weeks"
Stored for that person with an end date, and applied to every list you ask for until then.

Your words are read by a model once, into the settings the domain already has, and kept: the same sentence costs nothing on every later request, so send it every time like any other parameter. The answer always says how it was read (read_as) and, in note, anything you asked for that no setting can do. A setting you pass yourself wins over the same one read from your words. The model can only choose among existing settings: it cannot make Familiar do something this page does not describe.

Developers and apps

The API is by request. Ask on the developer page with your email and what you are building; when we approve you we write, and you sign in on the same page with that address. The console there gives you an API key (fk_…, shown once; making a new one ends the old) and registers apps. Everything the console does is also a call with the key as the bearer.

POST/v1/dev/apps

Register an app. redirects are the addresses a sign-in may come back to (https, each with a path; http://localhost for development; up to 10), matched by their start. waitlist_url is optional: where Familiar's sign-in page sends someone you have not registered, with ?email= added. The answer's app_secret is shown this once. Send the same route with app_id to change an app of yours, and "rotate_secret": true for a new secret. Up to 20 apps a developer.

curl -X POST /v1/dev/apps -H 'Authorization: Bearer fk_…' -H 'Content-Type: application/json' \
  -d '{"name": "Dog Scarves", "redirects": ["https://dogscarves.example/auth/"], "waitlist_url": "https://dogscarves.example/join"}'
-> {"app_id": "dog-scarves", "app_secret": "fs_…", "app": {"id": "dog-scarves", "name": "Dog Scarves", "redirects": […], "users": 0, "by_email": false}}
GET/v1/dev/me

You and your apps, each with how many people it has registered.

Your users

Who may use your app is yours to decide: keep a waitlist, invite people, or let everyone in. Familiar has no queue of its own. What it needs is the list: only an address your app registered can sign in to it with Familiar, and only a registered person can be named in your other calls. Register someone at the moment you let them in, then show them the sign-in.

POST/v1/app/users

From your server, with the app's secret. people are registered (an address, or {email, name}); remove are taken out, and their tokens for your app end at once; "replace": true makes people the whole list, for an app that keeps its own and would rather send it whole than track changes (refused when it names nobody). "list": true adds everyone registered to the answer. Up to 5,000 addresses a request.

{"app_id": "dog-scarves", "app_secret": "fs_…", "people": [{"email": "a@b.com", "name": "A"}, "c@d.com"], "remove": ["gone@b.com"], "list": true}
-> {"ok": true, "added": 2, "removed": 1, "skipped": 0, "registered": 2,
    "users": [{"email": "a@b.com", "name": "A", "registered_at": 1796169600, "signed_in": false}, …]}

Someone not registered who tries to sign in is told your app has not let them in, with a link to your waitlist_url if you gave one. A person sees the apps that registered them on their own Familiar page (/you); your app is never told which other apps a person uses.

Naming people by email from your server, with no token of theirs (/v1/app/facts, /v1/app/feedback, /v1/app/profile and the other /v1/app/ routes that take an email) is off for a new app: it reads what other apps taught. Use the person's token from sign-in, or write to us to have it turned on.

Log in with Familiar

GET/v1/auth/authorize

Where you send the browser. Familiar shows its own sign-in (an emailed six-digit code), then redirects to your redirect_uri with code and your state.

Parameter
app_idYours.
redirect_uriMust start with a URL registered for the app.
stateReturned as is. Check it.
emailOptional. Fills in the address, when you already asked for it.
onboardingOptional. A domain list, today only music. If the person has never been onboarded, Familiar runs its hosted onboarding for those domains before redirecting. Leave it out to do onboarding yourself, or not at all.
POST/v1/auth/token

Server to server. Trades the code (single use, five minutes) for an access token.

{"app_id": "theo", "app_secret": "…", "code": "fc_…"}
-> {"access_token": "fa_…", "token_type": "bearer",
    "user": {"id": "0b6f…", "email": "…", "name": "…", "onboarded": true, "from_braid": true,
             "facts": {"music": 212, "topic": 131}, "feedback": 0}}

onboarded: false means nobody has finished onboarding this person; you decide whether to send them through it. A person who read Braid before Familiar existed arrives with from_braid: true and their Braid facts copied in, once.

Sign-in works for the addresses your app registered. Use it as your app's whole login, as Braid and Theo do, or keep your own login and use Familiar's only to reach the person's profile and onboarding.

Connect your Familiar

For an app that has its own login. A person signed in to your app presses "Connect your Familiar", proves an address at Familiar, and you get a token for them: their facts, the hosted onboarding, recommendations, everything a sign-in token reaches. Familiar is not your login, and the address they use there need not be the one you know them by. You do not register them first: the link is you vouching for whoever holds it.

POST/v1/app/connect

From your server, with the app's secret, when your signed-in user presses the button. user is your own id for them (any string, up to 200 characters). Send the browser to url; it is good for an hour and for one connection. Optional: state, email (fills in the address), onboarding and deck, as on /v1/auth/authorize.

{"app_id": "dog-scarves", "app_secret": "fs_…", "user": "u_8841", "redirect_uri": "https://dogscarves.example/auth/familiar", "state": "…", "onboarding": "music"}
-> {"ok": true, "url": "https://api.yourfamiliar.ai/v1/auth/authorize?…&connect=fx_…", "expires_in": 3600, "connected": null}

Familiar then redirects to your redirect_uri with code and state, and POST /v1/auth/token trades the code exactly as a sign-in's: the answer also has "user_ref": "u_8841", your id back, so you know whose token it is. Keep the token with your user. connected says which address this user of yours is connected as already, if any; connecting again with another address moves them, and the old address's tokens for your app end.

{"app_id", "app_secret", "user", "disconnect": true} ends it: their tokens for your app stop working and your app no longer has them. What they told Familiar stays theirs. /v1/app/users with "list": true shows connected people with their user; a whole-list replace there leaves them alone.

Onboarding

Two ways, and they can be mixed. Both write the same facts.

Hosted

Pass onboarding=music to /v1/auth/authorize. A new person sees Familiar's own pages before they return to you: tell us in words, share a screenshot, connect Last.fm, then the music speed date (twenty 30-second clips; love, okay, not for me). You write no UI. The same pages in account mode let a person see and edit what Familiar holds:

POST/v1/me/ui_session
{"domains": "music"}  ->  {"url": "/account?s=fu_…", "expires_in": 14400}

Open the URL (relative to the API's host) in a new tab, a web view or an iframe. It needs no cookie, so it works embedded.

Your own

Call the doors yourself and draw whatever you like. Each is one request and answers with the facts it made and how the models read each (read_as).

POST/v1/me/connections
providerBodyWhat happens
texttextA model sorts their words into artists, tracks, genres and topics with a valence each. It never infers.
screenshotimage: a data:image/… URL, under 6 MBThe picture is read and discarded; the facts are kept.
lastfmhandleTheir top 60 artists and tracks of the past year. Connecting again replaces the last read.
spotifyaccess_token with scope user-top-readYour app holds the Spotify grant; Familiar reads top artists and tracks once and forgets the token.
-> {"connection": {"id": 7, "provider": "lastfm", "label": "@someone"},
    "facts": [{"id": 311, "domain": "music", "kind": "artist", "text": "Broadcast", "valence": 2,
               "read_as": {"as": "artist", "name": "Broadcast"}}, …]}
POST/v1/me/onboarded

Marks the person as onboarded, for every app. Call it when your own flow ends.

The person

GET/v1/me

The user object from sign-in, current.

GET/v1/me/profile

Everything Familiar holds: every fact with its source and read_as, every connection, and a short read of their music (hands: how many liked things the music model recognised; from_topics: the music their other interests point to).

DELETE/v1/me

Deletes the person: facts, connections, feedback, tokens. For every app.

Facts and connections

POST/v1/me/facts

Either {"text": "…"}, read by the model as the text door reads it but with no connection, or facts you already have as structure:

{"facts": [{"domain": "music", "kind": "artist", "text": "Alice Coltrane", "valence": 2},
           {"domain": "topic", "kind": "interest", "text": "true crime", "valence": -2}]}

A fact is unique per person by its text: sending it again updates the valence.

DELETE/v1/me/facts/{id}
DELETE/v1/me/connections/{id}

Removing a connection removes every fact it taught.

POST/v1/me/ask
POST/v1/app/ask

A question in words about what the person would like ({"question": "..."}; the second form is from your server, by email). A hosted model plans the answer and reads Familiar's models as tools. Returns text, picks (named things with a chance), tracks, cards, ms and cost_usd. One answer is several model calls: about 6 to 12 seconds and two to four cents.

POST/v1/app/read

Familiar's reader for your app's own door: text (what a person typed about themselves) or image (a screenshot as a data: URL) becomes facts, each with its type. Nothing is stored and no person is named; keep what you want and send it back as one of your connections with /v1/app/facts. With an image, "reading": true (and your category for it, if the person chose one) also returns reading: the app and screen named, a category, and every item on it with its kind and maker, for a door that shows the list back. With items (lines of a long list your app read from one of the person's accounts: follows, subscriptions, a shelf), what the list is and n, it returns at most n topics the list supports; previous (the topics it gave last time) keeps their wording on a re-read.

Three types of fact

Every fact has a type, set by Familiar when it arrives. 1: a subject the person wants to keep up with, liked or not (a publication, a politician, an industry's news). 2: something they enjoy or do not (a hobby, a genre, a cuisine, a band); all music is type 2. 3: a fact about the person (a job, where they live, an instruction about what they want shown). The recommenders read types 1 and 2 only. Type 3 is stored and returned for your app to filter and explain with. A topic sent at valence 0 is type 1 unless its words are type 3. null means a topic not typed yet (a few seconds); it is read as type 2 until then.

POST/v1/app/profile

From your server: everything Familiar holds about one of your people, by email with your app's secret. Each fact has domain, kind, text, valence, type and source.

POST/v1/app/facts

From your server, for an app that keeps its own record of what its people told it: the whole list for each person, as it stands now. Familiar replaces your app's connection for that person with it, so what you no longer send is gone and nothing drifts. Facts other connections taught, and the ones feedback made, are untouched. It carries your app_secret and names people by email, as /v1/app/feedback does; at most 50 people a request and 2,000 facts a person. An empty list removes your connection.

A person may be sent as connections in place of facts: [{"ref", "provider", "label", "facts"}], your app's own doors by name ("Braid · Bluesky", "@handle"), ref being your id for each. The person sees each on their account page and can remove it there. A ref you send again keeps its row; one you stop sending is removed. If a person removes a fact or a connection themselves, your stored copy no longer teaches it again, and /v1/app/people and /v1/app/profile tell you (removed).

{"app_id": "braid", "app_secret": "…",
 "people": [{"email": "a@b.com", "name": "A", "facts": [{"domain": "topic", "kind": "interest", "text": "modular synths", "valence": 2}, …]}]}
-> {"ok": true, "people": 1, "people_new": 0, "facts": 212, "skipped": 0}

What they said to show

Three things shape a list for a person, and they are kept apart. A fact is what they like or keep up with. guidance is your words about a list, sent with a request and stored nowhere. A standing steer is the person's words about what to show them: "show me less Trump stuff right now", "I'm traveling in the Douro valley for two weeks", "I never want to see a synthesizer article again". It is an instruction, often for a while, and never becomes a fact: hiding synthesizer articles does not unlearn that they love synthesizers, and their music is untouched.

POST/v1/app/steers

From your server, for one of your people by email, with app_id and app_secret. Send what they said as text, and about ({title, source, kind}) when they said it about something on screen. One model call reads it into one or more steers, which are stored. With a person's token the same is POST /v1/me/steers.

POST /v1/app/steers
{"app_id": "…", "app_secret": "…", "email": "a@b.com", "text": "less trump stuff right now"}

-> {"steers": [{"id": 12, "action": "less", "domain": "urls", "target": "Trump", "kind": "topic",
                "phrases": ["Trump", "Donald Trump", "Trump administration"], "keywords": ["trump", "maga"],
                "said": "less trump stuff right now", "until": 1796500000, "origin": "said"}],
    "reply": "Okay, less Trump for the next week.", "ask": "", "note": "",
    "live": [ every steer in force for this person ]}
Field
actionhide none of it; less fewer of it (still shown when it is the best thing there is); more more of it for now; place where they are for a while (returned to you; Familiar applies the more that comes with a trip).
domainurls, music or both.
kindWhat the target is: topic, source (a site or channel), artist, sound, format, place.
untilWhen it ends, read from their words: "right now" is a week, "today" a day, a trip its length, "never" no end (null). Show reply to the person so a wrong reading is easy to undo.
askA question to put to them when their words go against something they like ("Forget modular synths too?"). Answering it is your call; nothing was changed.

Send the same route with no text to list what is in force, and with "remove": id to take one back (DELETE /v1/me/steers/{id} with a token). Every cards and music request for the person then carries their steers, and the answer's steers says which were applied; pass "steers": false for a list without them. A steer holds for the app that sent it. One the person sets on Familiar's own page holds in every app. The person sees every app's steers on their own Familiar page (/you) and can remove any of them there, so read the list back now and then if you keep a copy.

Send "where": "urls" or "music" when you know what they were looking at as they said it. A subject that is also a kind of music ("no synth stuff anymore") then covers both cards and music unless their words were about listening.

How it is appliedCardsMusic
hideA card near any of the steer's phrases, or holding one of its keywords and loosely near, is left out. A source is matched by name or domain, a format by the card's kind.A hidden artist is never dealt. A hidden sound leaves out the nearest fiftieth of the catalogue.
lessThe same match, but the card is moved down, not out: it still shows when it is among the best there is.Scores lean away from the sound, as from a track they turned down.
moreOne more group deals in turn beside the person's own, and only cards that are about the subject, from 14 days. A narrow subject may deal one card or none.One more hand in the queue.
placeStored and returned to you. Familiar applies only the more that comes with a trip.
Not built yet: a standing steer of your own for all of your people (your catalogue's rules in words, a system prompt for your recommendations). Today that is guidance, sent with each request.

Recommendations

GET/v1/me/music/recommendations?n=10
POST/v1/me/music/recommendations

A queue of tracks for this person, made to be played in order like a radio. Use POST when you have a steer or tracks to keep out. guidance is your app's standing words for every queue ("well-known songs only", "lots of variety", "recent releases"), read once into a steer (prompts as parameters); a steer in the same request wins key by key. Use /v1/me/music/steer for what a listener types, guidance for what you as the developer want. What the person said to show is applied to every queue (the answer's steers lists them, and a track dealt by a "more" has why.kind steer); pass "steers": false for a queue without them.

{"n": 10,
 "steer": {"prompt": "instrumental jazz", "year_from": 1970, "year_to": 1979},
 "exclude": ["spotify:track:…"],        // what is already in your queue but not yet played
 "reason": "love"}                      // optional, yours: why you are asking, kept in the log with the request
-> {"tracks": [ track, … ], "steer": {…}, "notes": [], "model": {"music": "music_mu3", "things": "thingsx_t2so_0"}}

How a queue is made, so you can predict it:

Report what happens to each track with play and skip; that is what keeps repeats out.

POST/v1/urls/items
POST/v1/music/tracks
POST/v1/urls/query
POST/v1/urls/rooms

The catalogue's plain reads, from Familiar's own crawl, each with app_id and app_secret and nobody's taste in it. /v1/urls/items: cards by ids (title, source, picture, a video's length, a podcast's show and audio, whether it is a card to follow). /v1/music/tracks: tracks by ids or spotify_ids (cover, a line on the song and the artist, its sound in words, length, preview). /v1/urls/query: search by vector (your embedding of the question) and text, with n, kinds and days. /v1/urls/rooms: the trending snapshot, by room.

POST/v1/catalog/<name>

The catalogue's small reads, by name, with app_id, app_secret and the read's own arguments: about_sets (which sites and channels have a profile), creator_about (cid), site_about (domain), track_by_name (artist, title, album), near_pairs (item_ids, others, floor: which cards are the same piece). For music: artists_near, tagged_artists, artist_tags, artist_rows, genre_artists, artists_like, known_tracks, sound_tracks, week_tracks, tracks_by_spotify, tracks11, tracks_attach; for cards hits_by_id and item_page; and two that write, adopt_tracks and want_blurbs. Each answers {"result": ...}: rows are lists, a time is ISO text.

POST/v1/music/news

The week's music that is news, from Familiar's own crawl: every track an article named, a critic reviewed, a radio station is playing, a release calendar lists, or one of Spotify's editorial playlists carries, plus recent releases many playlists took up. app_id and app_secret. Each track has news (what named it: kind, site, a few words on what happened, how much it was shared) and adds. Nobody's taste is in it; add email and each track Familiar holds also carries score for that person, as /v1/app/music/score returns it.

POST/v1/app/music/score

From your server, for an app with a pool of tracks of its own: how near each is to one person. app_id, app_secret, email and tracks (up to 5,000 Spotify ids). Each track the catalogue holds comes back with fit (cosine to the nearest thing they like), pct (where that fit sits in the catalogue: 0.97 is nearer than 97% of it), via (what of theirs it is nearest), theirs, and off (an artist or track they turned down, and nothing merely near it). Nothing is logged.

POST/v1/app/music/recommendations

From your server, for an app allowed to name people by email: the queue of /v1/me/music/recommendations for one person, with app_id, app_secret and email in place of their token, and the same n, steer and exclude. The person must already exist. "log": false leaves no trace, for a look that should not use up tracks their own queue would play.

Steering

A steer narrows or bends the queue. With a steer, its prompt and like choose the nearest 1,500 tracks and the person's hands order those: "70s jazz" for two people is 70s jazz both times, and a different 70s jazz.

Field
promptWords for the music, as a playlist title would put it: shoegaze, late night driving, instrumental jazz.
likeTracks or artists to be near: Spotify ids or URIs, Title - Artist, or an artist's name.
year_from, year_toRelease year, inclusive. It is the album's year: a remaster can fall outside its song's decade.
popularity_min, popularity_maxSpotify's 0 to 100.
personon (default) orders by the person; off answers the steer alone; away picks known tracks far from everything they like.
widetrue draws hands evenly and reaches deeper into each: a surprise.
fromWhat of the person deals the queue. "music": only the music they named. "topics": only the music their other interests lead to, for someone who told you what they enjoy and nothing about music (each track's why names the interest). "both": a full share of each. Not given: their music with one hand of topics beside it, or topics alone when they have named no music.
newtrue keeps only tracks added to a playlist in the last seven days, as Braid's crawl counts them (refreshed hourly), and released within new_weeks (30); min_adds (0) asks for at least that many adds in the week, where 0 also takes a track that is only on an editorial list; adds_w (0) adds that much times log(1 + adds) to a track's fit, so what the week took up most comes first (0.1 is a good start); each track then carries adds_7d and release_date. A note says how many of the week's tracks the model holds.
styleA style the person chose ("djent", "shoegaze"): only tracks whose artist carries that Last.fm tag are dealt. With too few such tracks it is read as words and notes says so. why.text then reads "label station".
labelYours to show ("70s jazz, instrumental"). It is echoed into each track's why.text ("70s jazz, instrumental · near your Stereolab").
POST/v1/me/music/steer

Turns what the person typed into a steer, with a sentence to say back. One small model call (about a second). Pass the steer in force so "less vocals" adjusts it and "play some dub" replaces it.

{"text": "just some jazz from the 1970s", "now_playing": "spotify:track:…", "steer": null}
-> {"steer": {"prompt": "jazz", "year_from": 1970, "year_to": 1979, "label": "70s jazz"},
    "reply": "Coming up: jazz from the 1970s, picked for you.",
    "keep_playing": false,
    "options": [ … ]}

keep_playing is the same model's read of how the request sits with the track now playing. True when it approves and builds on it ("more like this", "more in this style"): leave the track playing and replace only what follows. False when it turns away or asks for something else ("less vocals", "something different", "play some dub"): end the track and start the new queue. The ready-made options below carry the same field.

GET/v1/music/steer/options?track={id}

Ready-made answers to "what else do you want to hear?" for the track now playing, each with the steer to send: more in this style, something less popular (or better known, if the track is obscure), more from its decade, surprise me, something totally different. Add &steer={json} and "Back to my station" (an empty steer) is included. No model call.

POST/v1/music/search

The steer fields at the top level, plus n. Tracks for the request alone, nobody's taste in it.

{"prompt": "krautrock", "popularity_max": 40, "n": 20}
POST/v1/me/music/match

How near your own lists of tracks are to this person's music, to put them in order. sets: up to 60 lists of track ids. Each gets a score: the share of its tracks among the nearest tenth of the catalogue to this person, so 0.1 is chance and 1 is a list that is all theirs. via is what of theirs those tracks are nearest. null for a set with no track the catalogue holds, and for everyone with no music yet. A token.

{"sets": [["3SLoSFMLOb9jcMsdgyQnOJ", "…"], ["…"]]}
→ {"scores": [0.62, 0.08], "via": ["Broadcast", "Your taste for jazz"], "known": 57}
POST/v1/music/lookup

The tracks the catalogue holds for names you read somewhere: names (up to 60), each a "title - artist" line (either way round) or an artist's name. An artist gives their per_artist (2) best-known tracks. A name that is not exactly an artist, or a track that artist does not have, comes back in lost. "youtube": true finds the videos now. An app's secret or a token.

{"names": ["Marquee Moon - Television", "Broadcast"], "per_artist": 2}
→ {"found": [{"name": "…", "kind": "track", "tracks": [ … ]}, …], "lost": []}
POST/v1/music/trending

The tracks most added to playlists this week, as Braid's crawl counts them, one an artist, with nobody's taste in it. Same keys as the other trending route. Body: n (up to 50), guidance or a steer for years and popularity, and "any_age": true to include old records a playlist picked up this week (by default only releases of the last 30 weeks). Each track has adds_7d and release_date. Cache for an hour.

The speed date

GET/v1/music/deck

About twenty well-known tracks chosen to be far apart from each other, each with a 30-second preview, for a first-run "swipe through these". Send each answer as feedback of type love, like or dislike with context.surface = "speed_date". The hosted onboarding does exactly this.

POST/v1/music/deck

The same, for a deck you describe. With a person's token, or from your server with app_id and app_secret.

{"prompt": "Choose songs from different genres that are popular", "n": 20}
-> {"tracks": [{…a track…, "slot": "heavy metal"}],
    "answers": ["love", "like", "dislike"],
    "prompt": "…", "read_as": {"slots": [{"query": "heavy metal"}, …], "popular": true},
    "notes": [], "cache_sec": 2592000}

The hosted onboarding deals your deck when you pass its prompt as deck on /v1/auth/authorize (and in the body of /v1/me/ui_session for the account page's "redo").

The prompt becomes n slots (up to 40), each a style, scene, era or mood, and each slot is filled by a track people know that has a preview, one an artist. slot is the style a track stands for: an answer says something about the style, not only the song. A slot with no such track is left out, so a deck can be shorter than n. The deck is nobody's and does not change: keep it for cache_sec and show every new person the same one. No prompt is the deck above.

The track object

{"id": "4uLU6hMCjMI75M1A2tKUQC",
 "uri": "spotify:track:4uLU6hMCjMI75M1A2tKUQC",
 "title": "…", "artists": ["…"], "year": 1994, "popularity": 61,
 "image": "https://i.scdn.co/image/…",          // cover, about 300 px; may be null
 "preview_url": "https://p.scdn.co/mp3-preview/…", // 30 s; may be null
 "youtube_id": "…",                              // the full track on YouTube; looked up when a queue is made, then kept
 "about": {"sound": "Atmospheric, dark post-punk",  // from the audio itself
           "line": "…", "blurb": "…"},            // written from the web, where Familiar has it
 "new_to_model": false,                          // true: no playlist the model trained on held it
 "why": {"text": "Because you like Broadcast", "kind": "music", "via": "Broadcast"}}

why.kind is music (something they named), genre, topic (a non-music interest), steer, away or popular. Familiar does not stream audio: play the youtube_id (a full track; Theo does this with YouTube's IFrame player), the preview_url, or the uri with the listener's own Spotify. Recommendations and search find a missing youtube_id as they answer, waiting up to six seconds for the batch (about one second once warm); pass "youtube": false (or ?youtube=0) to skip the lookup.

GET/v1/music/tracks/{id}

Recommendations

POST/v1/me/urls/recommendations
POST/v1/app/urls/recommendations

Recent articles, newsletter posts, videos and podcast episodes for a person, best first. The second form is from your server, by email with your app's secret. The catalogue today is Braid's cards: the last 72 hours refreshed every 15 minutes, and back to 14 days every six hours.

Body
nHow many, up to 300.
hoursThe window, 24 by default.
typesAny of article, newsletter, video, podcast.
topicOnly cards about it.
byenjoy or follow: order by one score.
excludeURLs to leave out.
steersfalse for a list without what the person said to show. By default their steers are applied, and the answer's steers lists the ones that were (id, action, target, until, said).
per_sourceThe most cards from one site or channel in the answer.
trend_wHow much a card's share score counts beside its fit to the person: 0 (the default) is fit alone, 0.5 keeps about half the fit-only list and drops nearly every card nobody shared, 1 is mostly what was shared. Each card carries trend.
guidanceAny of the above in words (prompts as parameters): "Show them only news" deals only from what the person keeps up with; "from diverse sources" is per_source 1; "only videos", "from today", "about cooking". The answer's guidance says how it was read.

The person is read from their topic facts of types 1 and 2, and not as one average of them: topics that go together are a group, each group ranks the window as a person of its own, and the groups take turns. Enjoyed topics are asked of one model and followed topics of the other. The answer's hands is how many groups (8, or 0 for one person of everything), and notes says anything worth knowing, such as a catalogue still being read.

Familiar applies none of an app's rules. Braid takes 300 and keeps about half after its own (already sent, muted, a music channel, more than two from one site). Treat the answer as a pool.
POST/v1/urls/search

Cards about something, with nobody's taste in it: your app's secret and no person. query is matched by meaning and keywords by their words (any of them, in the title, the summary or the tags); the two rankings are added. hours (72; the catalogue holds 14 days), types, n (up to 300). Each card says how it was found: sim and words matched. For an app's own search box or its own Ask.

POST/v1/urls/trending

What is being shared most right now, with nobody's taste in it: the same answer for everyone, so cache it (cache_sec, 15 minutes). With a person's token, or from your server with app_id and app_secret. Body: n (up to 100), hours (the window, 24), types, topic, avoid (subjects no card may be about), per_source (2), or any of those in words as guidance ("only tech and science, articles, nothing about politics"). Each card has trend, how much Braid's crawl saw it shared (higher is more: 3 is shared, 30 is everywhere that day). It counts shares, not quality: an advertisement that was passed around ranks too, and subjects. Headlines that shout (hashtags, emoji, capitals) are left out unless "plain": false.

The speed date

POST/v1/urls/deck

Cards for a new person to react to, chosen by a prompt. With a person's token, or from your server with app_id and app_secret.

{"prompt": "Choose cards that cover the following topics: space, cooking, the NBA", "n": 12}
-> {"cards": [{…a card…, "slot": "the NBA", "type": 2}],
    "answers": ["love", "like", "dislike"],
    "prompt": "…", "read_as": {"slots": [{"query": "the NBA", "keywords": ["nba"]}, …]},
    "notes": [], "cache_sec": 21600}

The prompt becomes n slots (up to 40), each a subject; each is filled by the nearest recent card with a picture, one a source. Record an answer against slot, the subject, not the headline: a card stops being news in a day and "the NBA" does not. type says whether the subject is something a person enjoys (2) or news they keep up with (1). A slot is filled only by a card with a plain headline that people shared and that is near the subject; one with no such card is left out, so a deck can be shorter than n. Say "prefer articles to videos" and the like in the prompt. Send it as a fact (/v1/me/facts, or your connection's list). Cards age, so a deck is made again after cache_sec (six hours). No prompt is a deck across a dozen general subjects. Familiar applies none of an app's rules here either.

The card object

Field
idThe catalogue's id for the card (Braid's item id).
url, title, dek, imageWhat a card shows.
kind, source, age_hArticle, newsletter, video or podcast; the site or channel; hours since first seen.
scoreenjoy (would they like it) and follow (would they keep up with it), each an affinity where 1.0 is an average person. Good for an order; as a number it is within a factor of two, and not on one scale from one group to the next.
type1 when a group of followed topics dealt it, 2 for enjoyed ones.
viaThe group of the person's topics that dealt it.
becauseThe one topic of that group the card's words are nearest, for a reason line.
steerOnly on a card dealt because the person asked for more of something: the id of that steer. Its via and because are the steer's subject.
rank, ofThe card's place in its own group's list.
pctWhere it stands among every card of the window for that group; 0.999 is the top tenth of a percent. These three mean the same from one group, person or model to the next.
sim, wordsFrom search only: how near in meaning, and which keywords matched.

Feedback

POST/v1/me/feedback
{"item": "spotify:track:…", "type": "love", "context": {"surface": "player", "ms_played": 41000, "steer": {…}}}
-> {"ok": true, "profile_changed": true}
typeLoggedChanges the person
loveyesA track fact at +2. Becomes a hand at once.
likeyesA track fact at +1 ("it's okay"): a hand, drawn less often.
dislikeyesA track fact at −2. Never played again; the queue leans away from its sound.
unloveyesRemoves the track's fact.
playyesNo. Keeps the track and its artist out of coming queues. Send it when a track ends or has played long enough to count.
skipyesNo (v0 does not read a skip as dislike). Also keeps it from repeating.
shown, open, share, saveyesNo. For an app of things to read or watch: what was put in front of the person, and what they did with it.

item is a Spotify id or URI for a track. Anything else is kept as you send it, up to 600 characters, and only logged: url:https://… for a page, or a key of your own. There is no model of those items in v0, so a love on a URL changes nobody yet; it is in the log for the model that will.

context is yours: any JSON object up to 2 KB. Say where it happened and what was on screen; it is what a later model will learn from. When profile_changed is true, drop the unplayed part of your queue and ask for a new one.

POST/v1/app/feedback

The same, from your server, for many people in one request: for an app that acts while the person is away (a daily email, a feed built by a worker). It carries your app_secret and no person's token, and names each person by the email your app verified. Only an app registered to report for people may call it. A person Familiar has not seen is created, as sign-in would create them.

{"app_id": "braid", "app_secret": "…",
 "events": [{"email": "a@b.com", "item": "url:https://example.com/a-story", "type": "shown", "ts": 1795600000,
             "ref": "88213",                    // your own id for the event: sent twice, logged once
             "context": {"surface": "email", "slate": "daily-2026-11-25", "position": 3}}, …]}   // at most 500
-> {"ok": true, "logged": 498, "seen_before": 0, "people_new": 2, "profiles_changed": 1, "skipped": {"type": 2}}

Report shown for everything you put in front of someone, with the slate and the position in context, and then what they did. Shown and not chosen is the only "no" most people ever give.

GET/v1/me/music/loved?n=100

The tracks the person loves now, newest first, as track objects with three more fields: loved_at, the app_id that sent the love, and the context it sent. A love that was taken back is not listed. If you put the steer in force into context when you send a love, as Theo does, you can replay a loved track under the guidance that found it.

The log

GET/v1/me/events?limit=50

The person's feedback from every app, newest first: {id, app_id, type, item, context, ts}. Steers are logged too, with the words typed. Add &all=1 to include every recommendations request, with its steer, the reason you sent and the tracks returned: the way to answer "why did my queue change".

The hosted account page tells a page that frames it what happened inside, by postMessage with {familiar: …}: changed (a fact or connection was added or removed, or a speed-date card answered: ask for fresh recommendations), audio and quiet (the speed date's clips started and stopped: pause your own sound), deleted (the person deleted their profile).

How it runs

Two servers behind this one address, both always on since 2026-11-27.

After a deploy or a restart the models take about two minutes to load. Until then the first group answers as ever and the second waits for them, up to ten minutes, then answers 503 "Familiar is still waking". Card routes can answer an empty list with a note for a minute more while new cards are read: treat no cards as "ask again", never as the person's answer.

GET/v1/status

No key. Whether the models are up, for a caller that would rather not wait on them.

-> {"ok": true, "models_awake": true, "models_seen_sec": 4}

Errors

A non-2xx answer is {"error": "a sentence"}. 400 a bad request, 401 a missing or expired token, 403 not invited, 404 no such thing, 422 a door that learned nothing, 502 and 503 a provider (mail, Last.fm, Spotify, the model) that failed or is not set up.

What v0 is not

Theo, the example app

Theo is a radio built only on this page: a small server that holds the app secret and each listener's token, and a single page. Its source (theo/ in the Braid repository) is the worked example for every call above: the redirect and token exchange, hosted onboarding for a new person, a rolling queue, hearts and skips as feedback, the steer window, and the account page in a tab.