Skip to content
Protocol / dev.antiphony.*

Lexicon reference

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.

Source of truth: lexicons/dev/antiphony/. Looking for the guided tour? Start with The Antiphony lexicons. Required fields are marked with *.

Stored AT Protocol record schemas and audio embed attachments. These shapes enter content-addressed record CIDs.
key: tidJSON ↗

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).
embedunionembed.audio | embed.recordWithAudio | app.bsky.embed.record | app.bsky.embed.external
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).
replyref#replyRef
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.
createdAt*string (datetime)
When the post was created (ISO 8601).

#replyRef

object

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.

root*refcom.atproto.repo.strongRef
parent*refcom.atproto.repo.strongRef
key: tidJSON ↗

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).
transcript*ref#timedTranscript
The timed transcript payload.
langstring
BCP-47 language tag of the transcript (e.g. `en`).
modelstring
Identifier of the model/provider that produced this transcript (provenance).
createdAt*string (datetime)
When the transcript was generated (ISO 8601).

A timed transcript: an array of time-coded segments plus an optional concatenated text rollup for simple consumers (the audio analogue of WebVTT captions).

segments*array<ref>#segment
Time-ordered transcript segments.
textstring
Optional concatenated plaintext of all segments, for consumers that don't need timing.

#segment

object

One time-coded transcript segment.

startMs*integermin 0
Segment start offset, milliseconds.
endMs*integermin 0
Segment end offset, milliseconds.
text*string
Transcribed text for this segment.

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.

#main

object

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.
waveformarray<integer>item 0..100 · maxLength 1000
Pre-computed visual waveform peaks (normalized 0–100) for instant rendering.

#view

object

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).
waveformarray<integer>item 0..100
Waveform peaks (copied from the record embed).
Machine transcript, lifted from the dev.antiphony.audio.transcript enrichment record at read time. Absent until transcription completes.
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.

#main

object
record*refapp.bsky.embed.record
The quoted record (StrongRef).
audio*refembed.audio
The attached audio.

#view

object
record*refapp.bsky.embed.record#view
key: literal:selfJSON ↗

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:`.
key: tidJSON ↗

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.

The assessment enrichment record for one post.

Record fields

subject*refcom.atproto.repo.strongRef
The post this assessment evaluates (uri + cid).
sets*array<ref>#setRef
Named question sets and versions evaluated in this pass.
answers*array<ref>#answer
Typed probability distributions keyed by stable question id.
model*string
Identifier of the model/provider that produced this assessment (provenance).
createdAt*string (datetime)
When the assessment was generated (ISO 8601).

#view

object

The read-time view of an assessment lifted into dev.antiphony.embed.audio#view.assessment (omits `subject`, which is already the enclosing post).

sets*array<ref>#setRef
Named question sets and versions evaluated in this pass.
answers*array<ref>#answer
Typed probability distributions keyed by stable question id.
model*string
Identifier of the model/provider that produced this assessment (provenance).
createdAt*string (datetime)
When the assessment was generated (ISO 8601).

#setRef

object

Identifies a question set and its version so prompt edits stay distinguishable from model changes.

name*string
Stable question set name (e.g. `quality`, `relevance`).
version*integermin 1
Monotonic version of the question set prompts.

#answer

object

Probability distribution for a single assessment question.

id*string
Stable question identifier (e.g. `quality.speech`, `relevance.answers`).
top*string
The option with the highest probability (convenience, not a verdict).
distribution*array<ref>#option
Per-option probability mass in per-mille integers.

#option

object

One allowed answer option and its per-mille probability.

value*string
Option label (`true`/`false` for booleans, choice value, or score string).
probability*integer0..1000
Per-mille probability (0–1000). AT Protocol data has no floats.
Queries and procedures for audio posts hosted in a tenant repository on Antiphony.
/xrpc/dev.antiphony.audio.getPostJSON ↗

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.

Output

application/json→ audio.defs#postView

Named errors

RecordNotFoundNo post with this key in the caller's tenancy. Also the answer for a post that exists in another tenancy.
PostDeletedThis post was deleted in the caller's tenancy (HTTP 410).
/xrpc/dev.antiphony.audio.getThreadJSON ↗

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.

Output

application/json
The post the replies answer.
replies*array<ref>audio.defs#postView
Direct replies, in thread order (oldest first).
cursorstring
Cursor for the next page. Absent or null on the last page — set only when this page was full.

Named errors

RecordNotFoundNo parent post with this key in the caller's tenancy.
PostDeletedThe parent post was deleted in the caller's tenancy (HTTP 410).
/xrpc/dev.antiphony.audio.listPostsJSON ↗

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.

Output

application/json
posts*array<ref>audio.defs#postView
The page of hydrated posts.
cursorstring
Cursor for the next page. Absent on the last page.
/xrpc/dev.antiphony.audio.getPlaybackUrlJSON ↗

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.
/xrpc/dev.antiphony.audio.uploadAudioJSON ↗

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`.
The space the blob is stored in, when private. Absent means public. The first upload of identical bytes decides visibility.

Named errors

InvalidRequestEmpty body, unsupported audio Content-Type, invalid space parameters, or a `remoteSpace` hosted by this tenant.
RecordNotFoundThe named hosted space does not exist for this tenant.
PayloadTooLargeAudio payload exceeds the 25 MB limit.
ConflictAn earlier request with the same Idempotency-Key is still in flight.
/xrpc/dev.antiphony.audio.createPostJSON ↗

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.

Input

application/json
textstringmaxLength 3000 · maxGraphemes 300 · default: ""
USER-authored text. May be empty when an audio embed is present, but a post with neither text nor audio is rejected.
titlestringmaxLength 3000 · maxGraphemes 300
Optional headline. Prompts only — supplying one alongside `reply` is rejected.
embedunionembed.audio
The audio attachment, referencing an already-uploaded blob.
StrongRef root + parent. Present ⇒ this is a reply. Each `cid` must be the stored record's: `parent` the post answered, `root` its thread's prompt.
langsarray<string (language)>maxLength 3
BCP-47 language tags for the text.
selfLabelsarray<string>
Author-applied self-label values.
Opt-in audio processing for this post's audio. Runs asynchronously; the post is created either way.
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.
/xrpc/dev.antiphony.audio.reprocessPostJSON ↗

(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.

Input

application/json
id*string
Record key of the post to process.
The stages to run. A request enabling no stage is rejected rather than treated as a no-op.

Output

application/json→ audio.defs#postView

Named errors

InvalidRequestNo processing stage was enabled, or the post has no audio to process.
ForbiddenThe acting actor is not the post's author.
RecordNotFoundNo post with this key in the caller's tenancy.
/xrpc/dev.antiphony.audio.deletePostJSON ↗

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).

Input

application/json
id*string
The post's record key (rkey).
repliesstringvalues: delete | keep | keep-with-did · default: "delete"
What happens to replies beneath the deleted post.

Output

application/json
status*stringvalues: deleted | already-deleted | pending
Whether this call deleted the post, saw it was already deleted, or still has subtree work pending.
complete*boolean
True when nothing asked to be deleted remains.
deleted*array<ref>audio.defs#deletedPostRef
Posts removed by this call.
kept*array<ref>audio.defs#keptPostRef
Replies left in place under the deleted post.

Named errors

InvalidRequestThe input payload failed validation.
RecordNotFoundNo post with this key exists (and none was recorded as deleted) in the caller's tenancy.
/xrpc/dev.antiphony.audio.eraseAuthorJSON ↗

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).

Input

application/json
authorId*string
The calling app's opaque id for the author.
repliesstringvalues: delete | keep | keep-with-did · default: "delete"
What happens to other people's replies beneath the erased posts.
limitinteger1..200 · default: 100
Maximum posts to delete in this call.

Output

application/json
complete*boolean
True when no posts for this author remain.
deleted*array<ref>audio.defs#deletedPostRef
Posts removed by this call.
kept*array<ref>audio.defs#keptPostRef
Replies left in place under the erased posts.

Named errors

InvalidRequestThe input payload failed validation.
Queries and procedures for registering, reading, and managing audio posts held in external AT Protocol repositories.
/xrpc/dev.antiphony.audio.registerPostJSON ↗

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`.
delegationTokenstringminLength 16 · maxLength 8192
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.
clientAttestationstringminLength 16 · maxLength 8192
A client attestation (a compact JWS) from the tenant's OAuth client, for a space that only admits listed apps. Sent with `delegationToken`.

Output

application/json→ audio.defs#remotePostView

Named errors

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.
/xrpc/dev.antiphony.audio.getRemotePostJSON ↗

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`.

Query parameters

uri*string (at-uri)
The record URI, as registered.

Output

application/json→ audio.defs#remotePostView

Named errors

RemotePostNotFoundThe calling tenant has not registered this URI.
RemotePostDeletedThe registration was removed, by the tenant or because the record was deleted from its repo.
/xrpc/dev.antiphony.audio.getRemotePostsJSON ↗

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.

Output

application/json
The registered posts among the URIs asked for, in request order.
/xrpc/dev.antiphony.audio.getRemoteThreadJSON ↗

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.

Output

application/json
The root, when it is a registered remote post. On the first page only; absent otherwise.
replies*array<ref>audio.defs#remotePostView
The page, oldest first.
cursorstring
Cursor for the next page. Absent on the last page.
/xrpc/dev.antiphony.audio.listRemotePostsJSON ↗

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.

Output

application/json
The page, newest first.
cursorstring
Cursor for the next page. Absent on the last page.

Named errors

InvalidCursorThe cursor is not one this method issued.
/xrpc/dev.antiphony.audio.reprocessRemotePostJSON ↗

(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.

Input

application/json
uri*string (at-uri)
The registered record's URI.
The stages to run. A request enabling no stage is rejected (InvalidRequest) rather than treated as a no-op.

Output

application/json→ audio.defs#remotePostView

Named errors

RemotePostNotFoundThe calling tenant has not registered this URI.
RemotePostDeletedThe registration was removed.
/xrpc/dev.antiphony.audio.unregisterPostJSON ↗

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.
/xrpc/dev.antiphony.audio.recheckRemoteSpaceJSON ↗

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}.
delegationToken*stringminLength 16 · maxLength 8192
A fresh delegation token (a compact JWS) from a member who can read the space. Single use.
clientAttestationstringminLength 16 · maxLength 8192
A client attestation from the tenant's OAuth client, for a space that only admits listed apps.

Output

application/json
space*stringmaxLength 512
The space rechecked, as given.
checked*integermin 0
Rows read against their source.
removed*integermin 0
Rows removed because their record, or the whole space, is gone.
changed*integermin 0
Rows that took an edit.
remaining*boolean
Whether rows in this space are still due: call again with another delegation.

Named errors

RemoteUriUnsupported`space` is not a space URI Antiphony can read.
RemoteDelegationRefusedThe space's authority refused the delegation; nothing changed.
RemoteRepoUnreachableThe space's authority could not be reached; nothing changed. Retry with a fresh delegation.
RemoteRecordInvalidThe space's authority could not be read as a space host.
Service discovery and tenant-scoped operational statistics.
/xrpc/dev.antiphony.server.describeServerJSON ↗

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.
/xrpc/dev.antiphony.tenant.getStatsJSON ↗

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.

Output

application/json
Hosted posts: those Antiphony stores and whose records it mints.
remotePosts*reftenant.defs#postStats
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.
Reusable read-time views and request objects referenced across the XRPC surface.

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.

#postView

object

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.
record*ref#postRecord
The public lexicon fields of the post.
The hydrated attachment — a resolved playback URL plus the transcript lifted from the enrichment record. Absent when the post carries no audio.
viewer*ref#viewerState
The requesting viewer's relationship to this post.

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.
createdAt*string (datetime)
When the post was created (ISO 8601).

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.
replyDisabledReasonstringvalues: unauthenticated | not_a_participant
Why `canReply` is false. Omitted when the viewer can reply.

#spaceKey

object

One of the tenant's atproto spaces, by type and key. Its authority is always the tenant's own DID, so it is not named here.

type*string (nsid)
The space type, e.g. game.bardcast.space.campaign.
skey*string (record-key)maxLength 512
The space key, in record-key syntax. A DID is a valid skey.

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.

authority*string (did)maxLength 2048
The DID the space is under, e.g. a group's.
type*string (nsid)
The space type.
skey*string (record-key)maxLength 512
The space key, in record-key syntax.

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.
spaceref#remoteSpace
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.
deletionCheck*stringvalues: sweep | recheck | tenant
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.
record*ref#postRecord
The public lexicon fields of the post.
The hydrated audio: a playback URL plus the transcript. Absent while the post is unavailable.
available*boolean
False when the record's repo has been unreachable for 30 days: the post is kept but not served.
registeredAt*string (datetime)
When the calling tenant registered the record.

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.

transcribestringvalues: pending | ready | failed | skipped
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.
denoisestringvalues: pending | ready | failed | skipped
Noise reduction (byte-mutating). Same values as `transcribe`; `ready` means playback now resolves to the cleaned variant.
trimstringvalues: pending | ready | failed | skipped
Leading and trailing silence removal (byte-mutating; runs after denoise). Same values as `transcribe`; `ready` means playback resolves to the trimmed variant.
waveformstringvalues: pending | ready | failed | skipped
Waveform peak extraction (derived). Same values as `transcribe`; `ready` means the view's peaks describe the audio being played.
assessstringvalues: pending | ready | failed | skipped
Typed quality/relevance assessment (derived; runs after transcribe). Same values as `transcribe`; `ready` means `embed.assessment` is available.

A post a delete or erasure call removed.

postId*string
The deleted post's record key (rkey).
uri*string (at-uri)
at:// URI of the deleted post.
kind*stringvalues: prompt | reply
Whether the deleted post was a prompt or a reply.

A reply left in place under a deleted post (`keep` or `keep-with-did`).

postId*string
The kept reply's record key (rkey).
uri*string (at-uri)
at:// URI of the kept reply.

A space key with an optional authority DID. Absent `authority` means the calling tenant's own app DID.

type*string (nsid)maxLength 317
The space type NSID, e.g. `game.bardcast.space.campaign`.
skey*string (record-key)maxLength 512
The space key, in atproto record-key syntax.
authoritystring (did)
The space's authority DID when it is not the calling tenant's own app DID.

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

object

How many posts, and how many of them are prompts and how many replies, over one set of rows. `posts` is always `prompts` plus `replies`.

posts*integermin 0
Every post in the set. Equal to `prompts` plus `replies`.
prompts*integermin 0
Posts that start a thread: those with no reply reference.
replies*integermin 0
Posts that answer another: those with a reply reference.

#windows

object

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.

last24h*ref#counts
Rows created in the 24 hours up to `asOf`.
last7d*ref#counts
Rows created in the 7 days up to `asOf`. Includes the 24 hour window.

Counts over one kind of post: every row, and the rows inside each window. All of its figures were counted in the same read.

totals*ref#counts
Every row the tenant has, whenever it was created.
windows*ref#windows
The rows created recently.