Every AT Protocol record, embed, shared definition, and XRPC endpoint in the dev.antiphony.* namespace — generated directly from the JSON schemas in lexicons/dev/antiphony/ at build time.
An Antiphony audio post — the single canonical content record. Mirrors app.bsky.feed.post's field structure (so it's legible to atproto tooling), differing only in the NSID, the audio embed, and an optional title. A post with `reply` is a reply; without `reply` it is a prompt (root post). `title` is an optional prompt feature, NOT the discriminator.
A prompt (no `reply`) or a reply (has `reply`). The audio lives in `embed` as a dev.antiphony.embed.audio.
Record fields
text*stringmaxLength 3000 · maxGraphemes 300
USER-authored text (bsky-semantic). The prompt's typed question/description, or an optional reply caption. May be empty for pure-audio posts. NEVER the transcript — that lives in the audio embed.
titlestringmaxLength 3000 · maxGraphemes 300
Optional short headline. A prompt feature; replies omit it. Its presence is NOT the prompt/reply discriminator (that is `reply` presence).
Post attachment. Audio posts carry dev.antiphony.embed.audio. Never wrap your own audio/records as an external card (the one path to recursive rendering).
Present iff this post is a reply. Its presence discriminates reply-vs-prompt. Carries StrongRef root + parent for portable, content-addressed threading.
langsarray<string (language)>maxLength 3
BCP-47 language tags for the post text.
labelsunioncom.atproto.label.defs#selfLabels
Author-applied self-labels (content warnings). User input, so it stays on the record; service moderation is the labeler layer, not a field here.
StrongRef threading pointers. `root` = the prompt at the top of the thread; `parent` = the post being directly answered (the prompt, or another reply). Replaces the legacy flat promptId.
A machine-generated, timed transcript of a post's audio. PLATFORM enrichment (owned by Antiphony, like denoise/waveform), stored as its own record referencing the post by StrongRef — the like/label pattern. Lifted into dev.antiphony.embed.audio#view.transcript at read time; never stored on the post itself.
The transcript enrichment record for one post's audio.
Record fields
subject*refcom.atproto.repo.strongRef
The post whose audio this transcribes (uri + cid).
A timed transcript: an array of time-coded segments plus an optional concatenated text rollup for simple consumers (the audio analogue of WebVTT captions).
An audio attachment for a post. Antiphony's contribution to the AT Protocol embed family — atproto has images/video/external/record embeds but no audio. Modeled on app.bsky.embed.video (blob + alt + captions), but audio-shaped.
The stored embed. Holds the audio blob and its universal, render-time-independent metadata. Does NOT carry the transcript — that is platform enrichment (dev.antiphony.audio.transcript) lifted into the #view at read time.
audio*blobaccept: audio/* · max 100 MB
The audio bytes, content-addressed by CID. Up to 100 MB.
durationMsintegermin 0
Duration of the audio in milliseconds. Milliseconds (not seconds) is the platform-wide unit.
altstringmaxLength 10000 · maxGraphemes 1000
USER-authored short description of the audio (the audio analogue of image alt text). NOT the transcript.
The hydrated, per-read view of an audio embed. Carries a resolved playback URL (in this centralized deployment, a signed Storage URL — not the raw blob) and the transcript lifted from the platform-enrichment record.
url*string (uri)
Resolved, playable audio URL (signed Storage URL in the centralized deployment; a blob/CDN URL under federation). MUST use the `http` or `https` scheme. Lexicon `format: uri` does not constrain the scheme, and clients put this value in an audio element's `src` — so a `javascript:`/`data:`/`file:` URL here is an XSS vector, not merely an unplayable one. Plain `http` is admitted for self-hosted and local deployments.
durationMsintegermin 0
Duration in milliseconds (copied from the record embed).
altstring
User-authored short description (copied from the record embed).
Typed quality/relevance assessment, lifted from the dev.antiphony.audio.assessment enrichment record at read time when `processing.assess === 'ready'`.
Status of the processing stages the calling app asked for. Absent when none was requested. `url`, `durationMs` and `waveform` above are resolved against the processed variant once its stages complete.
Quote another record AND attach audio — the audio analogue of app.bsky.embed.recordWithMedia. Lets a post both reference another record and carry its own dev.antiphony.embed.audio.
An Antiphony actor profile. One record per actor at the well-known `self` rkey, mirroring app.bsky.actor.profile. Port of com.voxpop.actor.profile under the Antiphony namespace.
Record fields
handlestringminLength 3 · maxLength 20
Public handle (e.g. `brad`). Distinct from the AT Protocol handle, which lives on the actor's identity.
usageIntentstringmaxLength 100
Stated intent of the actor (e.g. `Podcaster`, `Listener`).
rssFeedstring (uri)
External podcast feed URL associated with this actor. MUST use the `http` or `https` scheme — a feed is a fetchable web document, and apps render this value as a link, where an unconstrained `format: uri` would admit `javascript:`.
Typed probability judgements about a post's audio (speech presence, intelligibility, relevance to its prompt). PLATFORM enrichment owned by Antiphony, stored as its own record referencing the post by StrongRef — the same pattern as dev.antiphony.audio.transcript. Lifted into dev.antiphony.embed.audio#view.assessment at read time; never stored on the post itself.
Fetch a single hydrated audio post. Tenancy-scoped: the calling application's service credential establishes which tenant is read, and a post belonging to another tenant is indistinguishable from one that does not exist.
Returns the hydrated view of one post. The acting actor, if the caller asserts one, determines the `viewer` state; a viewer-less read returns the public projection.
Query parameters
id*string
The post's record key (rkey) — the last segment of its at:// URI.
Fetch a post together with its direct replies. One level deep, not a recursive tree: Antiphony's thread model is a prompt and the replies answering it, so a nested view would describe a structure the data does not have.
Returns the parent post and a cursor-paginated page of its direct replies, oldest first. A missing parent is an error rather than an empty page, so a caller can tell 'no replies yet' from 'no such post'.
Query parameters
id*string
Record key of the parent post.
limitinteger1..100 · default: 50
Maximum replies to return.
cursorstring
Pagination cursor — the `cursor` from the previous page.
List hosted audio posts for the acting actor, or replies addressed to a given thread-root author. Tenancy-scoped and cursor-paginated.
Returns a cursor-paginated page of hosted posts in the caller's tenancy. By default lists the acting actor's own posts, optionally filtered by `kind`. When `rootAuthor` is set, lists replies addressed to that thread-root author instead (ignoring `kind`).
Query parameters
limitinteger1..100 · default: 20
Maximum posts to return.
cursorstring
Pagination cursor: the `cursor` from the previous page (the last post id).
kindstringvalues: prompt | reply
Restrict to prompts or replies (ignored when `rootAuthor` is set).
rootAuthorstring
Return replies addressed to this thread-root author instead of the acting actor's own posts.
Resolve a stored audio blob CID to a playable URL. Exists because a blob CID is a content address, not a location: a client holding an embed's `audio.ref` needs somewhere to point an audio element.
Returns the playback URL for one blob within the caller's tenancy. The URL addresses this service's audio proxy and is NOT a direct storage URL. For public audio it is stable and carries no credential, so a response referencing it stays cacheable. For audio stored in a space it is signed (`exp` + `sig` query parameters) and expires after an hour: ask again rather than storing it.
Query parameters
cid*string (cid)
Content address of the audio blob, as carried on dev.antiphony.embed.audio#audio.
Output
application/json
url*string (uri)
Playable audio URL, scoped to the caller's tenancy. MUST use the `http` or `https` scheme, for the same reason as `dev.antiphony.embed.audio#view.url`: `format: uri` does not constrain the scheme, and this value is dereferenced by clients.
Named errors
RecordNotFoundThe CID does not form an addressable object for this tenancy, or the audio is private and this deployment cannot sign playback URLs.
Upload raw audio bytes content-addressed by CID, returning an AT Protocol blob ref to embed on a post.
Accepts raw audio bytes in the request body (max 25 MB; `Content-Type`: m4a, mp4, mpeg, webm, ogg, wav), matching `com.atproto.repo.uploadBlob`. Optional query parameters `spaceType` + `skey` (and `spaceAuthority`), or `remoteSpace` (`at:space/{authority}/{type}/{skey}`), store the blob privately in that space. Supports `Idempotency-Key`.
Input
audio/*
Output
application/json
blob*blobaccept: audio/* · max 25 MB
Canonical AT Protocol blob ref for the stored audio — pass verbatim as the post embed's `audio`.
Create an audio post. The audio is uploaded first through the blob-upload flow and referenced here as an embed; this procedure writes the record, not the bytes.
Writes a dev.antiphony.audio.post authored by the acting actor. Tenancy and authorship are stamped server-side from the credential and the asserted actor — supplying them in the body has no effect. `reply` presence makes the post a reply; its absence makes it a prompt.
Place the post in one of the tenant's spaces; the returned `uri` is then a space URI, whose author segment is set by `spaceAuthor`, and its audio plays only through signed URLs. The audio must have been uploaded into the same space. A reply to a post in a space inherits that space and must not name another; a reply to a flat post may name one.
spaceAuthorstringvalues: authority | actor · default: "authority"
Whose DID is the author segment of a post in a space. `authority`: the tenant's DID, for what the authority keeps. `actor`: the acting actor's own DID, for a member's own record; the acting actor DID must be asserted. `actor` on a post that lands flat is refused.
authoritystring (did)
The post's at:// authority when it isn't the app's own DID: a DID the app registered (PUT /api/v1/dids/{did}), such as a group's. A named space must exist under the same authority. A reply always has its parent's authority: omit it or name the same one.
Output
application/json
uri*string (at-uri)
at:// URI of the created post.
cid*string (cid)
Content CID of the created record. Together with `uri` this is a StrongRef, directly usable as the `reply` target of a subsequent post.
Named errors
InvalidRequestThe payload failed validation — an empty post, a reply carrying a title, a reply naming a space other than its parent's, a `reply.root` that is not the thread's root, audio stored somewhere other than the post's space, `spaceAuthor: actor` on a flat post or without a valid acting actor DID, an authority the app hasn't registered, or a reply naming an authority other than its parent's.
ForbiddenThe acting actor is not a participant in the branch it is replying to: only the prompt's author and the responder who opened the branch may continue it.
RecordNotFoundThe named space does not exist for this tenant, or a reply's parent was not found.
ReplyCidMismatchA reply's `reply.parent.cid` or `reply.root.cid` is not the CID of the stored record it names.
ConflictAn earlier request with the same idempotency key is still in flight. Retry after it settles.
(Re)run asynchronous audio processing on an existing post. Processing state is storage-layer and outside the record CID, so this changes no content address — which is why re-running enrichment is a procedure of its own rather than an edit.
Requests processing stages for a post's audio and returns the re-hydrated view. Author-only. No lexicon field is editable here: those feed the record CID, so changing one would mint a different record rather than update this one.
Hard-delete a hosted audio post and its unreferenced audio blobs, recording a content-free ledger row.
Deletes a hosted post in the caller's tenancy. `replies` controls what happens to replies beneath it (`delete`, `keep`, or `keep-with-did`). Large subtrees are deleted over multiple calls deepest-first; repeat until `complete` is true. Idempotent and tenant-level (no acting actor required).
Account erasure: delete every hosted audio post carrying the given opaque `authorId` in the caller's tenancy.
Deletes up to `limit` hosted posts authored by `authorId`, applying `replies` to other people's replies below them. The author's own posts are always deleted. Repeat until `complete` is true; calling again after completion is a safe no-op. Tenant-level (no acting actor required).
Register a dev.antiphony.audio.post record held in a repo Antiphony doesn't host (a person's PDS, a group's repo on its group host), so its audio is processed and played here. Antiphony never writes into that repo.
Registers a remote post by URI and CID and returns its view. A repo record is read from the repo its URI names, never from the request: its CID is recomputed and must equal `cid`, and its blob is copied after its bytes are checked against the blob ref. A space record is registered on a member's delegation (`delegationToken`), which Antiphony spends to read it from the writer's PDS, or pushed by the tenant (`record`, with its audio uploaded first for that space). Repeating a registration is a no-op, and a new `cid` for the same URI takes the edit; both answer like a first registration. Tenant-level: a service token is enough, no acting actor.
Input
application/json
uri*string (at-uri)
The record's URI: at://{did}/dev.antiphony.audio.post/{rkey}, or for a space record at:space/{authority}/{type}/{skey}/{authorDid}/dev.antiphony.audio.post/{rkey}.
cid*string (cid)maxLength 128
The record CID the tenant expects. Antiphony recomputes the CID of the record it read (or, when pushed, of `record`) and refuses a mismatch.
Opt into processing stages, as on createPost. Stage results arrive by webhook (`stage.settled`, with `uri`).
bytesFromstringvalues: fetch | upload
Where the audio bytes come from. `fetch`: the repo the URI names; the default for a repo record and for a space record with a `delegationToken`. `upload`: an earlier upload by this tenant, so nothing is downloaded; the default for a pushed space record. Any other value is refused.
recordunknown
For a space record the tenant pushes: the record as the tenant read it, in atproto's JSON form (`$link` for the blob ref). A JSON object, and it must hash to `cid`. Refused for a repo record, and beside a `delegationToken`.
For a space record: a delegation token (a compact JWS) from a member's PDS, minted with com.atproto.space.getDelegationToken just before the call. Single use and short-lived. Antiphony exchanges it at the space's authority and reads the record and its blob itself.
RemoteUriUnsupportedThe URI is not an audio post record Antiphony can register, or it names a space record to fetch (`bytesFrom: "fetch"`) without a delegation.
RemoteRequestInvalidThe fields don't fit the URI: `record` or `delegationToken` for a repo record, neither or both for a space record, or `clientAttestation` without a delegation.
RemoteDelegationRefusedThe space's authority refused the delegation: the member may not read the space, or the token was spent or expired.
RemoteRecordNotFoundThe repo says the record does not exist, or the space was deleted.
RemoteRepoUnreachableThe record's repo, or the space's authority, could not be read right now. Retry later.
RemoteCidMismatchThe record's current CID is not `cid`: it changed since the tenant read it.
RemoteRecordInvalidNot an audio post, a pushed record that does not hash to `cid`, or a blob that does not check out or was not uploaded.
RemoteBlobSpaceMismatchA pushed space record's audio is not stored private for its space.
Fetch one remote post the calling tenant registered, by its record URI.
Returns one of the calling tenant's registered remote posts. Another tenant's registration reads as not found. A post whose repo has been unreachable for 30 days has `available: false` and no `embed`.
Fetch several registered remote posts by URI in one call. The app.bsky.feed.getPosts analogue.
Returns the calling tenant's registered remote posts for the URIs given, in the order given. A URI the tenant has not registered, or whose registration was removed, is left out rather than failing the call.
Query parameters
uris*array<string (at-uri)>maxLength 25
The record URIs. At most 25; repeat the parameter for each.
The registered remote posts that reply under a root, oldest first. Only what was registered: Antiphony does not crawl for replies.
Returns a cursor-paginated page of the calling tenant's registered remote posts whose `reply.root` is `root`, oldest first, with the root itself on the first page when it is a registered remote post. A root with no registered replies answers an empty list, not an error.
Query parameters
root*string (at-uri)
The thread root's URI.
limitinteger1..100 · default: 50
Maximum replies to return.
cursorstring
Pagination cursor: the `cursor` from the previous page. Opaque.
List the remote posts the calling tenant has registered: audio posts whose records live in repos Antiphony doesn't host. Only what was registered is listed; Antiphony does not crawl.
Returns a cursor-paginated page of the calling tenant's registered remote posts, newest first by the record's `createdAt`. Every filter is optional and they combine. Shaped after com.atproto.repo.listRecords: `limit` and `cursor` in, a named array and `cursor` out.
Query parameters
repostring (did)
Only records held in this DID's repo: the URI's authority for a repo record, the author segment for a space record.
spacestring
Only records in this space, as a space URI: at:space/{authority}/{type}/{skey}.
kindstringvalues: prompt | reply
Only prompts, or only replies. Any other value is refused.
limitinteger1..100 · default: 50
Maximum posts to return.
cursorstring
Pagination cursor: the `cursor` from the previous page. Opaque.
(Re)run asynchronous audio processing on a registered remote post, as reprocessPost does for a hosted one. Processing state is Antiphony's own and outside the record, which stays in its repo unchanged.
Requests processing stages for a registered remote post's audio and returns the view. Stage results arrive by webhook (`stage.settled`, with `uri`). Tenant-level: a service token is enough, no acting actor.
Remove a remote post's registration and Antiphony's copy of its audio. The record in its own repo is untouched.
Removes the calling tenant's registration and Antiphony's copy: the index entry, the transcript, and the audio and its variants unless another post still uses them. A content-free ledger entry is kept, so a later getRemotePost is RemotePostDeleted. Idempotent: `deleted` is false when there was no registration. For a pushed space record no recheck has read, this is the only way Antiphony learns the record is gone, so send it when the member deletes the record. Tenant-level: a service token is enough, no acting actor.
Input
application/json
uri*string (at-uri)
The registered record's URI.
Output
application/json
uri*string (at-uri)
The URI asked about.
deleted*boolean
Whether a registration was removed. False when there was none to remove.
Recheck the calling tenant's registered records in one space against their writers' PDSes, on a fresh delegation. The tenant's answer to a `remote.recheck_requested` webhook.
A space credential lasts ten minutes, so Antiphony's hourly sweep never holds one: it asks the tenant, and the tenant answers here with a fresh delegation token from any member session that can read the space. Antiphony spends it at once and reads each due row: an unchanged one is noted (and a pushed one becomes `verified: "fetched"`), an edited one is taken and reprocessed (`remote.changed`), and a gone one is removed once a second read an hour later agrees (`remote.gone`). A deleted space reads as gone for every row. One call reads a bounded number of rows; `remaining` says to call again with another delegation. Tenant-level: a service token is enough, no acting actor.
Input
application/json
space*stringmaxLength 512
The space, as a space URI: at:space/{authority}/{type}/{skey}.
Public service identity and contract metadata for this Antiphony deployment.
Returns the service name, current API contract version, status, and (when configured) the service's own AT Protocol DID. Public — requires no authentication.
Output
application/json
service*string
Service identifier (e.g. `antiphony-core-api`).
version*string
Current API contract version.
status*stringvalues: ok
Liveness status.
didstring (did)
This deployment's service DID (e.g. `did:web:api.antiphony.dev`), present when its DID document is published.
Count the calling tenant's own posts. Takes no parameters: the tenant is the one the service token names, and no other tenant's figures can be asked for.
Returns post counts for the calling tenant: all time, and over the last 24 hours and 7 days, for hosted posts and for registered remote posts. A tenant with no posts gets zeros, not an error. Needs the tenant's service token and no acting actor. Counts only: nothing here names an author or enumerates a post. Every figure was taken at the one read time `asOf`, so `prompts` plus `replies` equals `posts` in each, and a caller that keeps the answer can say how old it is.
Remote posts the tenant registered: records held in other repos. Counted apart from `posts`, never in it. A remote post's window is its record's own `createdAt`, not when it was registered.
asOf*string (datetime)
The read time every count was taken at, and the end of both windows.
Shared view and request shapes for the dev.antiphony.audio.* methods. These are READ-TIME and REQUEST-TIME shapes, not records: nothing here is stored or enters a record CID. The stored contract is dev.antiphony.audio.post. Mirrors the Zod schemas in @antiphony/shared (types/audio.ts, types/processing.ts, api-codecs.ts), which the lexicon-parity oracle holds to these definitions.
The hydrated, client-facing shape of a post — the app.bsky.feed.defs#postView analogue. Record content plus opaque author references, a hydrated embed, and per-viewer state. Author identity is carried as REFERENCES, never a hydrated profile: Antiphony holds no user data, so the calling app joins on `authorId` to render a display identity.
uri*string (at-uri)
The post's at:// URI. Its authority is the tenant app's DID, not the end user's.
cid*string (cid)
Content CID of the canonical record, computed over the lexicon projection only (no storage or tenancy fields), so a StrongRef built from it is a verifiable content address.
kind*stringvalues: prompt | reply
Denormalized from `reply` presence on the record: `reply` set ⇒ `reply`, absent ⇒ `prompt`. A convenience for clients, not a second source of truth.
authorId*string
The authoring actor's app-scoped id — an opaque attribution reference, not a profile and not an AT Protocol identity.
authorDidstring (did)
The author's AT Protocol DID, present only when the calling app asserted one it had itself verified.
The public projection of a post record as it appears on a view: the lexicon fields only. The stored record additionally carries storage-layer facets (tenancy, author, processing state) that are deliberately absent here and from the record CID.
text*stringmaxLength 3000 · maxGraphemes 300
USER-authored text. May be empty for a pure-audio post. NEVER the transcript.
titlestringmaxLength 3000 · maxGraphemes 300
Optional headline. A prompt feature; replies carry none.
Present iff this post is a reply. Presence is the prompt/reply discriminator.
langsarray<string (language)>maxLength 3
BCP-47 language tags for the post text.
selfLabelsarray<string>
Author-applied self-label VALUES. A flattening of the record's com.atproto.label.defs#selfLabels: the view carries the bare strings, since a client rendering a content warning needs the value and nothing else.
The requesting viewer's relationship to a post — the app.bsky #viewerState pattern. Computed per read from the caller's asserted acting actor; lives on the view and never on the record. An anonymous (viewer-less) read gets `isAuthor: false, canReply: false`.
isAuthor*boolean
Whether the acting actor authored this post.
canReply*boolean
Whether the acting actor may reply. A prompt is repliable by any authenticated viewer; a reply only by its branch participants.
A space held outside Antiphony, such as a group's on its group host: the space `at:space/{authority}/{type}/{skey}`. The authority is never registered with Antiphony.
A remote post: a dev.antiphony.audio.post record held in a repo Antiphony doesn't host (a person's PDS, a group's repo on its group host), which a tenant registered so its audio is processed and played here. Unlike #postView it has no app-scoped author id and no viewer state: its author is the DID whose repo holds the record.
uri*string (at-uri)
The record's at:// URI, as its own repo names it. A repo record, or a space record with the space and author in its path.
cid*string (cid)
The record's CID, recomputed by Antiphony from the record it read or was sent.
kind*stringvalues: prompt | reply
Denormalized from `reply` presence on the record.
authorDid*string (did)maxLength 2048
The DID whose repo holds the record: the URI's authority, or a space record's author segment.
The space the record is in, when it is a space record. Its audio plays from signed, expiring URLs only.
verified*stringvalues: fetched | pushed
How Antiphony checked the record. `fetched`: it read the record and its blob from the source itself. `pushed`: the tenant sent them, which proves content but not that the tenant could read the space.
How a deletion of the source record reaches Antiphony. `sweep`: Antiphony rechecks the repo itself. `recheck`: Antiphony asks the tenant for a fresh delegation and rechecks on it. `tenant`: only the tenant's own delete call.
An opt-in request for asynchronous audio processing. Every stage is off by default; only `true` asks for work. A stage this deployment has no provider for settles as `skipped` on the view rather than failing the request.
denoiseboolean
Noise reduction. Byte-mutating.
trimboolean
Leading/trailing silence removal. Byte-mutating; runs after denoise.
transcribeboolean
Machine transcription. Derived — analysis over the final audio variant.
waveformboolean
Waveform peak extraction. Derived.
assessboolean
Typed quality/relevance assessment. Derived — runs after transcribe in Phase 1.
reprocessbooleandefault: true
Whether a completed byte-mutating stage invalidates and recomputes the derived artifacts describing the superseded audio. Defaults to true — a transcript of replaced audio is wrong, not merely stale. Names no stage, so a request carrying only this asks for no work.
Per-stage status of the asynchronous audio processing requested for a post. A property is present if and only if that stage was requested, so an absent stage means "not requested" and `pending` means "still working". A stage can return to `pending` after it was `ready`, when a completed byte-mutating stage invalidates the derived artifacts that describe the old audio; clients treat any `pending` stage as still working. Status only: the processed variant and its provenance are internal and never appear here.
Machine transcription. `pending` until requested work completes, `ready` when the transcript is available, `failed` when the attempt errored, `skipped` when this deployment has no provider for it.
Leading and trailing silence removal (byte-mutating; runs after denoise). Same values as `transcribe`; `ready` means playback resolves to the trimmed variant.
Shared shapes for the dev.antiphony.tenant.* methods: counts about the calling tenant's own posts. READ-TIME shapes, not records. Mirrors the Zod schemas in @antiphony/shared (types/stats.ts), which the lexicon-parity oracle holds to these definitions. Counts only: no per-author figure, no date-range parameter and no other tenant's number is part of this contract.
Counts of the rows created within two fixed windows ending at the answer's `asOf`. A row is in a window when its creation time is at or after `asOf` minus the window's length. The windows are fixed: there is no way to ask for another.