Resolve a real episode
These are the prototype’s public read endpoints. The same commands can target any instance running the app. A documentation-only instance serves this reference and the Lexicons. The catalog and resolver are available on a full instance. Source repository
BASE='https://media.experiments.verylittlegravitas.com'
curl -f "$BASE/api/episodes/73-yards"
curl -f -G "$BASE/api/resolve" \
--data-urlencode 'url=https://www.imdb.com/title/tt28704625/'
curl -f "$BASE/api/catalog"
GET /api/episodes/{slug}- Returns
episode,series,season,mappings, and curated source-linkdiscussions. The episode has a stable web path; the record URI is present when a catalog DID is configured. GET /api/resolve?url={external-url}- Returns
{mapping, episode}on a trusted match,404when unresolved, or409when multiple episode results remain. Each client should surface ambiguity for human confirmation and retain the original link. GET /api/catalog- Returns
{records: [{collection, rkey, record}]}, the publication manifest.503means the publishing identity is unconfigured. Read the publisher’s PDS to verify which records are actually published.
Identify and publish media
- Publish a series, an optional season, and each episode as separate records. An episode’s
seriesUrireferences the series. SetseasonUriwhen there is a season. Treat episode and season numbers as metadata that may be corrected. - Use
at://<publisher-did>/com.danhon.atprotomedia.episode/<rkey>as the episode reference. Require a complete public record URI with a DID, the episode collection, and a stable record key. - Publish external matches as
mappingrecords. Normalize URLs to the source’s own identifier, such as BBC PIDm001zpzsor IMDb title IDtt28704625. The mapping author is the DID of the repository holding the claim. Choose which publishers to trust. Keep disagreeing claims visible to reviewers and leave an ambiguous link unresolved. - When the schemas are ready for network registration, the namespace owner publishes
com.atproto.lexicon.schemarecords keyed by their NSIDs and sets_lexicon.atprotomedia.danhon.comto a DNS TXT value ofdid=<publishing-did>. The publisher handle may change while the DID stays the same. AT Protocol Lexicon publishing guide
Connect discussions
For a native public reaction, write a com.danhon.atprotomedia.reply under the author’s DID, with episode set to the episode AT URI and text and createdAt populated. Use the author’s PDS and AT Protocol OAuth for end-user authorization. AT Protocol OAuth
For a Bluesky link, use a real external link facet or embed in an ordinary post. Resolve its destination URL. A link in the root post can identify the discussion; a reply link identifies that reply and its original thread context. Keep links to the source and apply its current audience restrictions before listing them. The prototype accepts explicit submissions into a moderation queue. Independent directories can use the same records with their own curation.
Keep gated material within its original audience. A public episode reference does not grant access to the associated discussion. Recheck availability and visibility on display, including signed-out preferences, and honor deletions. Put the spoiler policy on each discussion and keep share images and snippets spoiler-safe. Bluesky visibility preferences
Read and write a private watch record
Use the account’s com.danhon.atprotomedia.watchspace Personal Space with key self. Request the Space permission for that owner and its watch collection. Store episode and watchedAt in a watch record. The prototype uses the lowercase hexadecimal SHA-256 of the episode AT URI as its record key. Delete the record to clear watched state. Treat a PDS or permission failure as unavailable.
To verify portability, authorize a second client and read and update the same record there. Test a PDS migration independently of the client switch. Spaces data guide
Lexicons and versioning
JSON schema index · Agent discovery index · Agent implementation guide
The prototype uses Semantic Versioning and this instance serves 0.1.0-alpha.1. Pre-release builds may change HTTP behavior. Once a Lexicon is published, preserve its compatible meaning and give incompatible schemas new NSIDs. The Lexicon JSON field lexicon: 1 identifies the AT Protocol schema format.
Implementation resources
- Client design examples show episode links in a composer and a feed.
- Independent implementation guide · Download the conformance runner · Conformance coverage
- Agent implementation reference · Agent skill · OpenAPI tool definitions
- Draft SDK specification and roadmap
- AT Protocol prior-art research · Adversarial Lexicon review