Skip to content

Verification and ownership

Wilkin Santana edited this page Nov 29, 2026 · 1 revision

This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.

Verification is the rule that decides whether a Radio 2.0 manifest really belongs to the station it describes. The test is simple: the station's own homepage origin must serve or link the manifest. Moves and claims, handled by directories, build on that rule, and the optional locked flag adds extra protection.

Defined in Specification 4.2 to 4.4
Members manifestUrl, homepage, guid, locked
Unit of trust The origin of the homepage
Error code guid_taken (for APIs that take submissions)
Status Draft

manifestUrl

A publisher may serve the same manifest at several addresses, but manifestUrl names one. A consumer that fetched the manifest from another address must fetch manifestUrl and use that copy. If the two differ in guid, it must discard both. The address compared is the final one after redirects.

Wherever two URLs are compared, they are equal when the scheme and host match without regard to case, ports match (a missing port equals the default), paths and queries match exactly (an empty path equals /), and fragments are ignored.

When a manifest is verified

Both conditions must hold:

  1. Its manifestUrl is /.well-known/radio-manifest.json on the origin of its homepage, or the homepage document's HTML link names exactly its manifestUrl.
  2. In production, homepage and manifestUrl use https.

Whoever controls the homepage origin controls the station's manifest. A development-tier manifest is never verified, although a consumer may still apply the first condition and report it passed so publishers can test. Directories should show unverified manifests as unverified, or not list them. A publisher hosting many stations on one origin must not serve the well-known address for more than one of them.

Moves and claims

A directory remembers, per guid, the verified manifestUrl and homepage origin it last accepted. When it meets a verified manifest with a known guid at a different manifestUrl:

  • Same homepage origin: it must accept the new address.
  • New homepage origin: accepted when the old manifestUrl answers 301 or 308 to the new one, or when the manifest still served at the old address names the new one as its manifestUrl.
  • Otherwise: if locked is false, a directory may accept the new address after the old one has answered 404 or 410 for at least 30 days. If locked is true, it must not accept without review by a person.
  • Unverified manifests must never change a stored record.

The locked flag

locked is optional and defaults to false. Set to true, it asks directories never to move the station to a new owner automatically. It only affects the last case above.

Taken guids

When a directory refuses a verified manifest because its guid already belongs to another station, it should say plainly that the guid is taken and that each station must create its own. An API taking submissions should answer with the error code guid_taken. It must not reveal anything about the other station beyond what that station's own manifest publishes.

Availability

A temporarily unavailable manifest should be answered with 503 and Retry-After. Consumers must not treat 503 or a network failure as removal. 404 and 410 mean the station no longer publishes at that address.

Example

{
  "guid": "3f0c9a52-7e1b-5d24-8c6a-0b9e4f2d7a13",
  "manifestUrl": "https://dune.example.com/.well-known/radio-manifest.json",
  "locked": true,
  "homepage": "https://dune.example.com/"
}

Here the manifest sits at the well-known address on the homepage origin, so it passes the first condition.

See also

References

Clone this wiki locally