AppView
The Colibri AppView serves an assembled view of Spaces that live in ATproto spaces. It holds each Space’s credentials and writes the records a Space authors. The Space’s PDS asks it whether an account may read or write before issuing a credential.
This page describes the interface. AppView Architecture describes the implementation.
Every method lives under /xrpc/. The method reference under each namespace
heading is generated from the published
lexicons, and each type name in it
links to its definition on that page.
Service identity
Section titled “Service identity”Proxy requests through the user’s own PDS and address the AppView by its service reference. The hosted AppView is:
did:web:spaces-api.colibri.social#colibri_appviewPush registration targets the notification service:
did:web:spaces-api.colibri.social#colibri_notifsBoth references resolve to the same endpoint. A self-hosted AppView uses its own
did:web with the same two fragments.
Authentication
Section titled “Authentication”A method marked service auth needs an
atproto service auth
token. The token is a JWT signed by the caller’s repo signing key. Its aud is
the AppView’s DID or one of its service references, and its lxm is the NSID of
the method being called. A method carries that mark when its lexicon declares
the AuthRequired error.
Let the PDS mint the token. Send the request to the user’s PDS with an
atproto-proxy: did:web:spaces-api.colibri.social#colibri_appview header, and
the PDS attaches Authorization: Bearer <jwt> to the proxied request.
A method marked no service auth answers without a token.
social.colibri.beta.community.getInvitation reads a token when the request
carries one.
Both WebSockets accept the same token in one of three places:
- an
Authorization: Bearer <jwt>header - the
colibri.auth.bearerWebSocket subprotocol, followed by the token as the next subprotocol value - an
authquery parameter
A request without a valid token is answered with HTTP 401 before the WebSocket opens.
Three kinds of URL carry their own signature and need no token:
media links for blobs, the image and video URLs inside an embed
view, and the readToken a push notification hands to
social.colibri.beta.notification.markReadFromNotification.
Errors
Section titled “Errors”Every method declares its errors in its lexicon. The AppView returns them in the standard XRPC error shape:
{ "error": "Forbidden", "message": "this action requires member.ban" }Read the error field to tell errors apart. Most named errors share HTTP status
400.
These errors appear on most methods:
| Error | Meaning |
|---|---|
AuthRequired |
The request has no token, or a token this AppView does not accept |
Forbidden |
The caller is banned, is not a member, or lacks the permission or the rank |
CommunityNotFound |
No Space matches the given DID |
CredentialsUnavailable |
The AppView’s stored credentials for the Space are missing or unusable |
UpstreamFailure |
A PDS or third-party call the AppView depends on failed |
A node that cannot take writes answers a procedure with HTTP 503 and the error
ReadOnly. The events socket reports the same state in its writeState frame.
Writing records
Section titled “Writing records”A user’s own records live in the user’s own repo inside a space. That covers
messages, reactions, read cursors and preferences. Where the repo lives decides
which method writes to it, and social.colibri.beta.polyfill.getStatus reports
it as a mode:
native: the user’s PDS hosts the repo. Write withcom.atproto.space.createRecord,putRecordanddeleteRecordon the PDS, naming the channel’s space.polyfillandmigrating: the AppView hosts the repo. Write withsocial.colibri.beta.polyfill.applyWrites.
A bridge sends a message with
social.colibri.beta.bridge.postMessage.
The Space writes that message and attributes it to the person on the other
service.
Records a Space authors go through the procedures on this page. That covers its profile, settings, roles, categories, channels, members and moderation log. The AppView checks the caller’s permission, authenticates as the Space and makes the write.
Server
Section titled “Server”social.colibri.beta.server.describeServer identifies a host as a Colibri
AppView and lists the optional features it has turned on. features holds
embeds and emoji on every deployment. voice, push, gifs and nodes
appear when the deployment has them configured.
social.colibri.beta.server.describeServer
Gets information about this AppView.
The AppView's own identity.
Stable software identifier, always 'colibri-appview'. Clients key on this to confirm a host is a Colibri AppView before pointing themselves at it.
Which build of the software this is. 'vanilla' for the stock AppView, and any string a fork or a customised deployment chooses for itself.
The running software version.
The domain community handles are minted under.
The PDS communities are created on.
How to reach the operator.
Optional features this AppView supports.
A community every user joins after creating their profile for the first time.
The space types this AppView understands.
social.colibri.beta.server.listNodes
Lists the nodes of this AppView network that currently accept clients. Clients measure the round trip to each probe URL and connect their event socket, voice signaling and media requests to the fastest node.
Nodes that accept clients, in no particular order.
Spaces
Section titled “Spaces”The social.colibri.beta.community namespace covers a Space’s lifecycle,
membership, invitations, moderation, hosting and reads. See
Communities for how a Space’s
spaces fit together, Moderation for
the permission model, and
Hosting for adopt, authorizeHost
and handOverHost.
An action against another member requires the caller to outrank the target. The
AppView compares each side’s highest role position, and equal positions do not
outrank. The owner outranks everyone. A failed check answers RoleHierarchy.
social.colibri.beta.community.adopt
Adopts an existing account as a community: this AppView takes custody of its credentials, creates the four community spaces on whichever PDS already hosts it, and seeds the same starter layout social.colibri.beta.community.create does. The account keeps its own DID, handle and PDS, and the caller becomes its owner. Use this instead of community.create to bring your own DID.
The account to adopt. The credentials must authenticate as this exact DID, which is what proves the caller controls it.
The identifier used to authenticate with the account's PDS, such as its handle or DID.
The account's password. An app password is not enough: minting a delegation token requires full access.
The community's name.
The community's description.
Whether joining produces an application a moderator must approve. Defaults to false.
The adopted community.
The request is missing, malformed, or unverifiable service auth.
The arguments are inconsistent or malformed beyond schema validation.
This account is already a community on this AppView.
The PDS refused the given identifier and password.
The credentials authenticate a different account than the DID given.
The account's PDS does not implement the com.atproto.space policy methods, so it cannot host community spaces.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.applyLabel
Applies a label to a record in one of the community's spaces. This is how content is hidden, marked as a spoiler, or has its link previews suppressed. The record itself is untouched, since it lives in its author's own repo, but a `hidden` label stops this AppView serving the record: it is withheld from reads and from the events socket, and replies to it see a deletedMessageView in its place. Moderators holding `label.apply` and the record's own author still see it.
The space the labelled record lives in.
The record to label.
The label value. `hidden` withholds the record from reads. `spoiler` and `embeds-suppressed` are display hints.
Narrows the label to specific URIs inside the subject record. Absent means the whole record.
Human-readable reason for the label.
The applied label.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the label.apply permission.
No community exists at the given DID.
No space exists at the given reference.
The scope or val is not valid for the subject record.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.approveApplication
Approves a pending application, admitting the subject as a member.
The community to admit the subject to.
The applicant to admit.
The newly admitted member.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the approval.manage permission.
No community exists at the given DID.
No pending application exists for the subject in this community.
The subject already holds a member record in this community.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.authorizeHost
Starts a sign-in as a community host account. The requesting user opens the returned URL, signs in as that account on its own server and allows the AppView to act for it. The AppView then adopts the account as a new community, or reconnects an existing community after its sign-in lapsed or its account moved. Poll getHostAuthorization with the returned request to learn the outcome.
The handle or DID of the account to sign in as.
adopt turns the account into a new community. reconnect restores the AppView's access to an existing community.
The community to reconnect. Required when intent is reconnect.
The new community's name. Required when intent is adopt.
The new community's description.
Whether joining the new community produces an application a moderator must approve. Defaults to false.
The sign-in page to open in a browser.
An opaque identifier for this sign-in, used with getHostAuthorization.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission for this community.
The arguments are inconsistent or malformed beyond schema validation.
No community exists at that identifier.
That account already hosts a community on this AppView.
This AppView has no host sign-in configured.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.ban
Bans a member from a community. This removes their member record and stops the community issuing them space credentials. Their existing content is not deleted: it stays in their own repo, where it can still be labelled or filtered.
The community to ban the member from.
The member to ban.
Human-readable reason for the ban.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the member.ban permission.
No community exists at the given DID.
The subject is already banned from this community.
The subject holds a role at or above the caller's highest role position.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.create
Provisions a new community: an account on the AppView's PDS, its four spaces, an owner role, and a starter layout of two categories holding one text channel and one voice channel between them. This call runs long enough that progress is also emitted over social.colibri.beta.sync.subscribeEvents.
The community's name.
The community's description.
A slug used for the community handle instead of a generated one.
Whether joining produces an application a moderator must approve. Defaults to false.
Whether only role colours are shown in chat. Members' own name colours are hidden, and a member without a coloured role shows the default name colour. Defaults to false.
The newly created community.
The request is missing, malformed, or unverifiable service auth.
The arguments are inconsistent or malformed beyond schema validation.
A community already exists with the requested handle.
The AppView's PDS could not be reached to provision the account.
The AppView's PDS does not implement the com.atproto.space policy methods, so it cannot host community spaces.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.createInvitation
Creates an invitation code for a community.
The community to create an invitation for.
How many times the invitation may be redeemed, if limited.
When the invitation stops being redeemable, if ever.
The newly created invitation.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the invitation.create permission.
No community exists with that DID.
social.colibri.beta.community.delete
Deletes the community's spaces and its account. Members' own records stay in their own repos and simply become unreadable.
The community to delete.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the community.delete permission.
No community exists with that DID.
The AppView's stored credentials for this community are missing or unusable.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.deleteImage
Clears a community's picture or banner. Idempotent: clearing an image that was never set succeeds. The blob itself is left in the community's repo rather than deleted, so an older record revision still resolves.
The community to clear the image on.
Which image to clear.
The community with the image cleared.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the community.manage permission.
No community exists with that DID.
The AppView's stored credentials for this community are missing or unusable.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.deleteInvitation
Deletes an invitation code.
The community the invitation belongs to.
The invitation code to delete.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the invitation.delete permission.
No community exists with that DID.
No invitation exists with that code.
social.colibri.beta.community.dismissApplication
Hides a pending application from the active queue without refusing it. This is an AppView-local change and is never written to the community's repo.
The community the application belongs to.
The applicant whose application to dismiss.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the approval.manage permission.
No community exists at the given DID.
No pending application exists for the subject in this community.
social.colibri.beta.community.getCommunity
Gets a community by DID or handle.
A DID or handle identifying the community.
The requested community.
The request is missing, malformed, or unverifiable service auth.
No community exists at that identifier.
social.colibri.beta.community.getHostAuthorization
Reports the outcome of a sign-in started with authorizeHost. Only the user who started it can read it.
The request returned by authorizeHost.
pending until the user finishes signing in, then done or failed.
The adopted or reconnected community, once done.
Why the sign-in failed.
The account the user signed in as, when it was not the expected one.
The request is missing, malformed, or unverifiable service auth.
No sign-in with that request exists for the requesting user.
social.colibri.beta.community.getHosting
Describes where a community's account lives and whether the AppView can still act for it. Only administrators of the community can read it.
The community.
Where the community's account lives.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission for this community.
No community exists at that identifier.
social.colibri.beta.community.getInvitation
Resolves an invitation code, so a client can show what it leads to before the user accepts. This is readable without membership.
The invitation code to resolve.
The resolved invitation.
The community the invitation leads to.
No invitation exists with that code.
social.colibri.beta.community.handOverHost
Gives an administrator access to a community account that lives on this AppView's server, so they can move it to another server. The AppView sets the given email on the account, so codes the server sends reach the administrator, and returns a new password once. The password works for 60 minutes. If the account has not moved by then, the AppView replaces it and signs out every session.
The community.
The address that receives the server's codes for the move.
The account's handle, to sign in with.
The account's new password. It is not shown again.
When the password stops working.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission for this community.
The arguments are inconsistent or malformed beyond schema validation.
No community exists at that identifier.
The account does not live on this AppView's server, already moved, or the AppView cannot manage accounts there.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.join
Admits the requesting user to a community. Joining is an AppView procedure rather than a record the user writes, because admission is what makes the community's spaces readable to them.
The community to join.
An invitation code.
The result of the join attempt.
The new member view. Present only when status is joined.
The request is missing, malformed, or unverifiable service auth.
No community exists with that DID.
No invitation exists with that code.
The requesting user already holds a member record in this community.
The requesting user is banned from this community.
The AppView's stored credentials for this community are missing or unusable.
social.colibri.beta.community.kick
Removes a member from a community. The member may rejoin unless the community requires approval to join.
The community to remove the member from.
The member to remove.
Human-readable reason for the kick.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the member.kick permission.
No community exists at the given DID.
The subject does not hold a member record in this community.
The subject holds a role at or above the caller's highest role position.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.leave
Removes the requesting user's membership in a community.
The community to leave.
The request is missing, malformed, or unverifiable service auth.
No community exists with that DID.
The requesting user does not hold a member record in this community.
The requesting user is the last holder of a protected role and cannot leave.
The AppView's stored credentials for this community are missing or unusable.
social.colibri.beta.community.listApplications
Lists pending requests to join a community that requires approval.
The community to list applications for.
Whether to include applications a moderator has hidden from the active queue.
Maximum number of applications to return.
Pagination cursor from a previous response.
Pagination cursor for the next page, if more applications exist.
Applications matching the request.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the approval.manage permission.
No community exists at the given DID.
social.colibri.beta.community.listBans
Lists the members currently banned from a community. Being banned means the community declines to issue them space credentials, so they cannot read it. Their existing messages stay in their own repos.
The community to list bans for.
Maximum number of bans to return.
Pagination cursor from a previous response.
Pagination cursor for the next page, if more bans exist.
Members currently banned, most recently banned first.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the member.ban permission.
No community exists at the given DID.
social.colibri.beta.community.listCategories
Gets the community's category layout, each category with its channels already nested. This is what a client needs to draw the sidebar in one call.
The community to list categories of.
The community's categories, in display order.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to view this community's categories.
No community exists with that DID.
social.colibri.beta.community.listChannels
Lists a community's channels as a flat list, for clients that do not need the category grouping.
The community to list channels of.
The community's channels.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to view this community's channels.
No community exists with that DID.
social.colibri.beta.community.listInvitations
Lists a community's invitation codes.
The community to list invitations for.
The maximum number of results to return.
The cursor from a previous call, for fetching the next page.
A cursor for fetching the next page.
The community's invitations.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the invitation.create permission.
No community exists with that DID.
social.colibri.beta.community.listMembers
Lists a community's admitted members.
The community to list members of.
Filters to members holding this role.
The maximum number of results to return.
The cursor from a previous call, for fetching the next page.
A cursor for fetching the next page.
The community's members.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to list this community's members.
No community exists with that DID.
social.colibri.beta.community.listMigratable
Lists the repo-backed communities the requesting user belongs to that have not finished moving onto spaces. The AppView reads this live from the user's own public repo and each candidate's public repo. A community that cannot move, such as one inside its owner's repo or one whose repo did not respond, is listed in state blocked with a reason.
Whether to include communities the user belongs to but does not administer. They come back with viewerIsAdmin false.
Unmigrated legacy communities, in the user's preferred sidebar order where the legacy repo recorded one. This is not paginated: a user's community list is small and every entry costs a live read.
The request is missing, malformed, or unverifiable service auth.
The requesting user's own PDS could not be read, so no candidate list could be built at all.
social.colibri.beta.community.listModerationLog
Lists a community's moderation audit log.
The community to list the moderation log for.
Maximum number of log entries to return.
Pagination cursor from a previous response.
Pagination cursor for the next page, if more entries exist.
Log entries, most recent first.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the moderation.viewLog permission.
No community exists at the given DID.
social.colibri.beta.community.listRoles
Lists a community's roles.
The community to list roles of.
The community's roles.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to view this community's roles.
No community exists with that DID.
social.colibri.beta.community.migrate
Starts moving a repo-backed community onto spaces and returns once the move is queued. Structure, roles, members and bans are recreated in spaces stamped with migratedFrom. Message history of current members is copied from their public repos and served alongside as read-only legacy messages. The move runs in the background and reports progress through social.colibri.beta.sync.defs#communityProgressEvent. Calling it again while it runs returns the current state, and calling it after a failed attempt resumes from the last finished step.
The legacy community to migrate, by handle or DID. Only a community that holds its own DID can be migrated, so the DID is the whole address: the record to read is always social.colibri.community at self in that repo.
The legacy community, in state migrating with its progress.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to migrate this community.
No community exists at the legacy record's DID.
This legacy community has already been migrated.
The community cannot move onto spaces, for example because it lives inside its owner's repo.
The AppView's stored credentials for this community are missing or unusable.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.negateLabel
Retracts a label by writing a negating one. The original label record is left in place.
The space the labelled record lives in.
The labelled record.
The label value to retract.
Human-readable reason for the retraction.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the label.apply permission.
No community exists at the given DID.
No space exists at the given reference.
No active label matching the subject and value exists to negate.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.putImage
Sets a community's picture or banner. The bytes are uploaded to the community's own repo, which is why this goes through the AppView: a community's blobs can only be written with the community credentials the AppView holds, and a space record must reference a blob living in the repo that holds the record. Replaces whatever was there before.
The community to set the image on.
Which image to set.
The community with the new image resolved, so one call is enough to re-render.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the community.manage permission.
No community exists with that DID.
The bytes are not one of the accepted image types.
The image exceeds the size limit for this kind.
The AppView's stored credentials for this community are missing or unusable.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.registerCredentials
Hands the AppView credentials for a community hosted elsewhere, so it can administer a community it did not create. The password is stored encrypted at rest.
The community the credentials belong to.
The identifier used to authenticate with the community's PDS, such as its handle or DID.
The password or app password used to authenticate with the community's PDS.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks permission to register credentials for this community.
The arguments are inconsistent or malformed beyond schema validation.
The PDS refused the identifier and password.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.community.reorderCategories
Sets the complete display order of a community's categories.
The community whose categories are being reordered.
The complete new display order of the community's categories.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the category.update permission.
No community exists with that DID.
The supplied categories do not match the community's existing set.
The AppView's stored credentials for this community are missing or unusable.
social.colibri.beta.community.setMemberRoles
Sets the complete set of roles a member holds.
The community the member belongs to.
The member whose roles are being set.
The complete new set of roles the member should hold.
The updated member.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the role.manage permission.
No community exists with that DID.
The subject does not hold a member record in this community.
One of the requested roles does not exist.
The requesting user cannot grant or revoke a role at or above their own highest position.
The AppView's stored credentials for this community are missing or unusable.
social.colibri.beta.community.transferOwnership
Hands the community's protected owner role from the caller to another member. The subject gains every protected role the caller holds, then the caller loses them. The caller keeps their other roles.
The community whose ownership is transferred.
The member who becomes the owner.
The new owner, with their updated roles.
The caller, with their updated roles.
The request is missing, malformed, or unverifiable service auth.
The caller does not hold a protected owner role in this community.
No community exists with that DID.
The subject does not hold a member record in this community.
The subject is banned from this community.
The subject already holds a protected owner role.
The AppView's stored credentials for this community are missing or unusable.
social.colibri.beta.community.unban
Lifts a ban, letting the community issue the subject space credentials again.
The community to lift the ban in.
The member to unban.
Human-readable reason for lifting the ban.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the member.unban permission.
No community exists at the given DID.
The subject is not currently banned from this community.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.community.undismissApplication
Restores a dismissed application to the active queue. This is an AppView-local change and is never written to the community's repo.
The community the application belongs to.
The applicant whose application to restore.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the approval.manage permission.
No community exists at the given DID.
No pending application exists for the subject in this community.
social.colibri.beta.community.update
Updates a community's settings. A field left absent stays unchanged.
The community to update.
The community's name.
The community's description.
Whether joining produces an application to approve.
Whether link previews are shown by default.
DIDs whose labels this community honours.
Whether only role colours are shown in chat. Members' own name colours are hidden, and a member without a coloured role shows the default name colour.
Whether the owner badge next to the community owner's name is hidden.
Which custom emoji render in this community. all allows custom emoji from any source, local only the community's own emoji, none disables custom emoji. Disallowed emoji show their fallback text.
The updated community.
The request is missing, malformed, or unverifiable service auth.
The requesting user lacks the community.manage permission.
No community exists with that DID.
The AppView's stored credentials for this community are missing or unusable.
A PDS or third-party call the AppView depends on failed.
Categories
Section titled “Categories”Categories group a Space’s channels for display. The Space’s
social.colibri.beta.community.settings record holds categoryOrder, and each
category record holds channelOrder for the channels inside it.
social.colibri.beta.category.create
Creates a category in a community.
The community to create the category in.
The category's name.
Per-role and per-member permission overrides.
The newly created category.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the category.create permission, or grants visibility to a role at or above their own highest position.
No community exists at the given DID.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.category.delete
Deletes a category. Its channels are not deleted: they become uncategorised until moved to another category.
The community the category belongs to.
The category's record key.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the category.delete permission.
No community exists at the given DID.
No category exists at the given record key.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.category.update
Updates a category's name and the permissions its channels inherit.
The community the category belongs to.
The category's record key.
The category's new name.
Per-role and per-member permission overrides. Replaces the whole list. Absent leaves the current value unchanged.
The updated category.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the category.update permission, or grants visibility to a role at or above their own highest position.
No community exists at the given DID.
No category exists at the given record key.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Channels
Section titled “Channels”A channel is an ATproto space of its own. The space key is the channel’s
identity, and its configuration is the social.colibri.beta.channel record at
key self inside that space.
A channel the caller may not read is absent from every listing.
social.colibri.beta.channel.getChannel and
social.colibri.beta.channel.listMessages answer Forbidden for it.
social.colibri.beta.channel.create
Creates a channel. This creates a space for the channel, then writes the channel's configuration record at key 'self' inside that space.
The community the channel belongs to.
The channel's space type.
The channel's name.
The category to list the channel under.
The channel's topic.
Per-role and per-member permission overrides.
The newly created channel.
The request has no valid service auth.
The requesting user lacks the channel.create permission.
No community matches the given DID.
No category matches the given record key.
The requesting user cannot grant a role that outranks their own.
The arguments are inconsistent or malformed beyond schema validation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
The community's PDS is unreachable or the AppView has no administrative access to it.
The community's PDS failed while creating the channel's space.
social.colibri.beta.channel.delete
Deletes a channel's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors.
The channel to delete.
The request has no valid service auth.
The requesting user lacks the channel.delete permission.
No channel matches the given space reference.
The AppView cannot act as the community because its stored credentials are missing or unusable.
The community's PDS is unreachable or the AppView has no administrative access to it.
The community's PDS failed while deleting the channel's space.
social.colibri.beta.channel.getChannel
Gets one channel.
The channel to get.
The requested channel.
The request has no valid service auth.
The requesting user may not read this channel.
No channel matches the given space reference.
social.colibri.beta.channel.listMessages
Lists messages in a channel or in a thread, newest first by default. Messages from the repo-backed channel this one was migrated from are included and marked legacy. Messages moved in from another space are included in their move order, and messages moved out are absent.
The channel or thread to list messages from.
Maximum number of messages to return.
Pagination cursor from a previous call.
Whether to return the oldest messages first instead of the newest.
Centres the page on this message record key. The page holds up to limit messages, newest first: the newer half, then the message itself and the older half. cursor and reverse are ignored when this is set.
Pagination cursor for the next page. With around, it continues towards older messages.
Only set with around, when newer messages remain. Pass it as cursor with reverse set to continue towards newer messages.
The channel's messages.
Threads whose anchor message is in this page, so a client can draw a thread's marker under the message it was opened from without a second call. Threads the requesting user may not read are absent.
Authors whose older messages could not be loaded for this page because their PDS did not answer. The page may be missing some of their messages. Absent when the page is complete.
The request has no valid service auth.
The requesting user may not read this channel or thread.
No channel or thread matches the given space reference.
A message that carries a hidden label from a labeler the Space honours is
withheld, so a page can hold fewer than limit messages. Keep following
cursor until it is absent. Members who hold label.apply and the
message’s own author receive hidden messages in full, with the label
attached.
social.colibri.beta.channel.listReactions
Lists everyone who reacted to one message, for the hover card.
The channel the message was posted in.
DID of the repo holding the message.
The message's record key.
Restricts the results to reactions with this emoji.
Maximum number of reactions to return.
Pagination cursor from a previous call.
Pagination cursor for the next page.
Reactions to the message, aggregated by emoji.
The request has no valid service auth.
The requesting user may not read this channel.
No channel matches the given space reference.
No message matches the given author and record key in that channel.
social.colibri.beta.channel.listSummaries
Gets the latest message of every text channel in a community that the requesting user may read, for channel list previews. Channels with no message the user may see are absent.
The community to summarize channels of.
One summary per readable text channel that has a visible message.
The request has no valid service auth.
The requesting user is not a member of this community, or is banned from it.
No community exists with that DID.
social.colibri.beta.channel.listUnreadStatus
Lists per-channel unread state for the requesting user.
Restricts the results to one community. Absent returns unread state across all of the requesting user's communities.
Maximum number of statuses to return.
Unread state per channel.
The request has no valid service auth.
social.colibri.beta.channel.putReadCursors
Pushes the requesting user's read cursors for one community to the AppView, so unread counts update immediately instead of waiting for a sync notification. The client writes its social.colibri.beta.channel.read record for the community to its own personal space first, then calls this. Clients should debounce this rather than calling it on every message. The user's other sessions receive the cursors that moved as a social.colibri.beta.sync.defs#readCursorEvent.
The community the cursors belong to.
Read cursors for the community's channels and threads. Each one replaces the stored cursor only when it is newer, and channels left out keep their stored cursor.
Unread state per channel, after the update.
The request has no valid service auth.
No community matches the given DID.
social.colibri.beta.channel.reorder
Sets the channel order within one category.
The community the category belongs to.
The category to reorder.
The complete new order for the category's channels, by channel space key.
The request has no valid service auth.
The requesting user lacks the channel.update permission.
No community matches the given DID.
No category matches the given record key.
The given channels do not match the category's current set of channels.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.channel.update
Updates a channel's configuration. An absent field leaves the current value unchanged.
The channel to update.
The channel's name. Absent leaves the current value unchanged.
The channel's topic. Absent leaves the current value unchanged.
The category to move the channel to. Absent leaves the current value unchanged.
Whether link previews are shown here. Absent leaves the current value unchanged.
Clears the channel's link preview setting so the community default applies. Ignored when linkEmbeds is also given.
Per-role and per-member permission overrides. Replaces the whole list. Absent leaves the current value unchanged.
The channel, after the update.
The request has no valid service auth.
The requesting user lacks the channel.update permission.
No channel matches the given space reference.
No category matches the given record key.
The requesting user cannot grant a role that outranks their own.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Threads
Section titled “Threads”A thread is an ATproto space opened beside a text channel. Its messages are read
with social.colibri.beta.channel.listMessages, which takes a thread’s space
reference in channel.
social.colibri.beta.thread.create
Opens a thread beside a text channel. This creates a space for the thread, then writes the thread's configuration record at key 'self' inside it. The anchor message is referenced rather than copied, so it stays in its author's repo in the channel where it was written.
The community the thread's channel belongs to.
The text channel to open the thread beside.
The thread's title.
The message to open the thread from. Absent opens a thread from scratch, which has no marker in the channel river and is reachable from the channel's thread list and the sidebar.
Roles that may read this thread. Empty means everyone who may read the channel may read the thread.
Members that may read this thread beyond visibleToRoles.
The thread.
The request has no valid service auth.
The requesting user lacks the thread.create permission or may not post in the channel.
No community matches the given DID.
No channel matches the given space reference.
The anchor message does not exist in the given channel.
The requesting user cannot grant a role that outranks their own.
The arguments are inconsistent or malformed beyond schema validation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
The community's PDS is unreachable or the AppView has no administrative access to it.
The community's PDS failed while creating the thread's space.
social.colibri.beta.thread.delete
Deletes a thread's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors, the same way deleting a channel works. Messages that were moved into the thread go with it.
The thread to delete.
The request has no valid service auth.
The requesting user lacks the thread.manage permission and is not the user who opened the thread.
No thread matches the given space reference.
The AppView cannot act as the community because its stored credentials are missing or unusable.
The community's PDS is unreachable or the AppView has no administrative access to it.
The community's PDS failed while deleting the thread's space.
social.colibri.beta.thread.getThread
Gets one thread, with its anchor message resolved so a client can open it without having read the channel it belongs to.
The thread to get.
The requested thread.
The request has no valid service auth.
The requesting user may not read this thread.
No thread matches the given space reference.
social.colibri.beta.thread.listMembers
Lists who belongs to a thread: the author of the message it was opened from, everyone who has posted in it, everyone mentioned in it directly or through a role, and everyone who follows it. Only current members who may read the thread are listed.
The thread to list members of.
The thread's members: the anchor author first, then posters by most recent activity, then everyone else.
The request has no valid service auth.
The requesting user may not read this thread.
No thread matches the given space reference.
social.colibri.beta.thread.listThreads
Lists a community's threads, most recently active first. Threads the requesting user may not read are absent rather than refused.
The community to list threads in.
Restrict the list to threads in one channel. Absent lists every channel's threads, which is what the community sidebar needs.
Which threads to list.
Maximum number of threads to return.
Pagination cursor from a previous call.
Pagination cursor for the next page.
The threads.
The request has no valid service auth.
The requesting user is not a member of this community.
No community matches the given DID.
No channel matches the given space reference.
social.colibri.beta.thread.moveMessages
Moves messages into another thread or channel. A message lives in its author's own repo and cannot be rewritten by a moderator, so the move is a `moved` label written into the source space for each message. The destination serves each moved message at its own record key, so a selection keeps the order it was written in and reads among the destination's own messages by send time. The AppView withholds a moved message from the space it came from.
The space the messages are in now, either a channel or a thread.
The space to move them to, either a channel or a thread in the same community.
The messages to move, at most fifty in one call.
Human-readable reason, recorded on every label in the batch.
The batch key shared by every label this call wrote, which groups the move for auditing.
How many messages were moved.
The request has no valid service auth.
The requesting user lacks the thread.move permission, or may not read the source or post in the destination.
No space exists at the source or destination reference.
One of the subjects is not a message in the source space.
The destination is the source, belongs to another community, or a subject is not a message.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.thread.repoint
Moves a thread to another channel by rewriting the channel its record links to, and optionally repoints it at another message. Who may read the thread follows the new channel. Left without an anchor the thread keeps the one it has, so its marker sits wherever that message now lives.
The thread to move.
The text channel to move it to.
The message the thread should hang under, for a thread whose anchor was moved. It has to sit in the destination channel, and may be a message the AppView has not indexed yet. Absent keeps the anchor as it is.
The thread, after the move.
The request has no valid service auth.
The requesting user lacks the thread.manage permission and did not write both the thread's current anchor and the message it is being repointed at.
No thread matches the given space reference.
No channel matches the given space reference.
The destination channel belongs to another community, is not a text channel, or is the channel the thread is already in while no new anchor was given.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.thread.update
Renames, closes, reopens or locks a thread, or changes who may read it. An absent field leaves the current value unchanged.
The thread to update.
The thread's title. Absent leaves the current value unchanged.
Roles that may read this thread. Empty means everyone who may read the channel may read the thread.
Members that may read this thread beyond visibleToRoles.
Closes the thread when true and reopens it when false. Absent leaves the current value unchanged.
Locks the thread when true and unlocks it when false. Absent leaves the current value unchanged.
The thread, after the update.
The request has no valid service auth.
The requesting user lacks the thread.manage permission and is not the user who opened the thread renaming, closing or reopening it. Changing visibility or locking always needs thread.manage, and the user who opened a locked thread can't close or reopen it.
No thread matches the given space reference.
The requesting user cannot grant a role that outranks their own.
The arguments are inconsistent or malformed beyond schema validation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Role procedures follow the same hierarchy rule as member actions. A caller creates, edits and deletes only roles below their own highest role position.
social.colibri.beta.role.create
Creates a role in a community.
The community to create the role in.
Display name.
Permissions granted by this role.
Hex colour as #rrggbb.
An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage.
An emoji badge. Cannot be combined with badge.
Hierarchy position. Higher outranks lower.
Whether holders are listed separately in the member list.
Whether @role mentions resolve to this role.
The newly created role.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the role.manage permission.
No community exists at the given DID.
The arguments are inconsistent or malformed beyond schema validation.
The requested position is at or above the caller's highest role position, or the permissions include one the caller does not hold.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.role.delete
Deletes a role.
The community the role belongs to.
The role's record key.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the role.manage permission.
No community exists at the given DID.
No role exists at the given record key.
The role is marked protected and cannot be deleted.
Every member holds the role from the moment they join, so it cannot be deleted.
The role is at or above the caller's highest role position.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.role.putBadgeImage
Sets a role's badge to an uploaded image. The bytes are uploaded to the community's own repo, which is why this goes through the AppView: a space record must reference a blob living in the repo that holds the record. Replaces whatever badge was there before. Use social.colibri.beta.role.update with removeBadge to clear it.
The community the role belongs to.
The role's record key.
The role with the new badge resolved.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the role.manage permission.
No community exists at the given DID.
No role exists at the given record key.
The role is marked protected and cannot be modified.
The role is at or above the caller's highest role position.
The bytes are not one of the accepted image types.
The image exceeds 256 KB.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS or third-party call the AppView depends on failed.
social.colibri.beta.role.update
Updates a role's settings.
The community the role belongs to.
The role's record key.
Display name.
Hex colour as #rrggbb.
An icon badge. Image badges are set with social.colibri.beta.role.putBadgeImage. Takes precedence over removeBadge.
An emoji badge. Cannot be combined with badge. Takes precedence over removeBadge.
Removes the role's badge, whichever kind it is. Ignored when badge or emojiBadge is also given.
Permissions granted by this role.
Hierarchy position. Higher outranks lower.
Whether holders are listed separately in the member list.
Whether @role mentions resolve to this role.
The updated role.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the role.manage permission.
No community exists at the given DID.
No role exists at the given record key.
The role is marked protected and cannot be modified.
The change would place the role at or above the caller's highest role position, or grants a permission the caller does not hold.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Actors and preferences
Section titled “Actors and preferences”Every user has one ATproto space of type
social.colibri.beta.actor.preferences, which holds their settings, mutes,
blocks and read state. The client writes a record to that space first and then
pushes the same data with the matching put procedure, so the change applies
before the next sync. social.colibri.beta.actor.getPreferences returns the
AppView’s synced copy.
social.colibri.beta.actor.grantSpaceAccess hands the AppView a delegation
token for that space. Call it again before the returned expiresAt.
social.colibri.beta.actor.deleteAccount
Erases the requesting user's Colibri data held by this AppView. This does not touch the user's repos, which only they control.
How many indexed records were removed.
The request has no valid service auth.
The user solely owns at least one community and must transfer or delete it before deleting their account.
social.colibri.beta.actor.getDeletionStatus
Gets what would happen if the requesting user deleted their account.
How many indexed records would be removed.
How many notifications would be removed.
Communities the user solely owns, which block deletion until transferred or deleted.
The request has no valid service auth.
social.colibri.beta.actor.getPreferences
Gets the requesting user's own settings, as the AppView currently holds them.
The requesting user's settings.
The request has no valid service auth.
social.colibri.beta.actor.getProfile
Gets a user's profile.
The user's DID or handle.
The user's profile.
The request has no valid service auth.
No user matches the given DID or handle.
social.colibri.beta.actor.grantSpaceAccess
Hands the AppView access to one of the requesting user's personal spaces. The client mints a delegation token on its own PDS for the space and passes it here, because a delegation token is single-use and short-lived and the AppView has no OAuth session of its own. The AppView exchanges the token for a space credential and syncs the space.
The space to grant access to.
A delegation token minted by the user's PDS for the space.
When the resulting space credential expires. The client should call this again before then to keep access current.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
The delegation token is malformed, expired, or already used.
No space matches the given space reference.
The delegation token does not grant access to the given space.
The user's PDS failed while the AppView exchanged the delegation token or synced the space.
social.colibri.beta.actor.listCommunities
Gets the requesting user's communities, in their preferred order.
The requesting user's communities, in preferred sidebar order.
The request has no valid service auth.
social.colibri.beta.actor.putBlocks
Pushes the requesting user's block list to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes the underlying block records to its own personal space first, then calls this. The list replaces the AppView's whole copy.
The complete, replacement block list.
The requesting user's settings, after the update.
The request has no valid service auth.
social.colibri.beta.actor.putMutes
Pushes the requesting user's mute list and list of left threads to the AppView, so they take effect immediately instead of waiting for a sync notification. The client writes the underlying mute records to its own personal space first, then calls this. Each list the request carries replaces the AppView's whole copy of that list.
The complete, replacement mute list. Leave it out to keep the mute list as it is.
The complete, replacement list of left threads. Leave it out to keep the list as it is. An entry for a thread where someone pinged the user after its leftAt is dropped, since that ping brought the user back.
The requesting user's settings, after the update.
The request has no valid service auth.
social.colibri.beta.actor.putSettings
Pushes the requesting user's social.colibri.beta.actor.settings record to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes the record to its own personal space first, then calls this. An absent field leaves the current value unchanged.
Which messages produce a notification. Absent leaves the current value unchanged.
Communities in preferred sidebar order. Absent leaves the current value unchanged.
GIFs saved from the picker, stored whole. Absent leaves the current value unchanged.
Whether the AppView may show what the user is listening to. Absent leaves the current value unchanged.
The contents of the user's social.colibri.beta.actor.clientPreferences record. Replaces the stored copy whole. Absent leaves the current value unchanged.
The contents of the user's social.colibri.beta.actor.composerState record. Replaces the stored copy whole. Absent leaves the current value unchanged.
The requesting user's settings, after the update.
The request has no valid service auth.
A field is present but does not hold an allowed value.
social.colibri.beta.actor.putSpaceModeration
Pushes one of the requesting user's social.colibri.beta.actor.spaceModeration records to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own personal space first, then calls this.
The community.
The new option for this community. Absent together with remove returns the community to the global option.
Removes the community's options so it follows the global ones. Ignored when hideModeratedMessages is present.
The requesting user's settings, after the update.
The request has no valid service auth.
Neither hideModeratedMessages nor remove is present.
social.colibri.beta.actor.putSpaceNotification
Pushes one of the requesting user's social.colibri.beta.actor.spaceNotification records to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own personal space first, then calls this.
The community.
The new level. Absent together with removeLevel returns the community to the global level.
Removes the community's level so it follows the global one. Ignored when level is present.
The requesting user's settings, after the update.
The request has no valid service auth.
Neither level nor removeLevel is present, or level does not hold an allowed value.
social.colibri.beta.actor.setStatus
Sets the requesting user's off-protocol presence. An absent field leaves the current value unchanged.
The status text. An empty string clears it. Absent leaves the current value unchanged.
A Unicode emoji shown beside the status. An empty string clears it. Absent leaves the current value unchanged.
A custom emoji shown beside the status. The uri must name an emoji item record. Absent leaves the current value unchanged. Takes precedence over removeCustomEmoji.
Removes the custom emoji. Ignored when customEmoji is also given.
When the status clears. Absent leaves the current value unchanged. Takes precedence over removeExpiresAt.
Removes the status expiry, so the status stays until it is changed. Ignored when expiresAt is also given.
Whether a client shows the status while the user is offline. Absent leaves the current value unchanged.
Derived online state. Absent leaves the current value unchanged.
The requesting user's presence, after the update.
The request has no valid service auth.
A field is present but does not hold an allowed value.
Notifications
Section titled “Notifications”A notification’s kind is mention, reply or message. Push delivery is registered per device with registerPush and
unregisterPush, which target the #colibri_notifs service reference.
social.colibri.beta.notification.clear
Clears the requesting user's inbox up to a point in time. Every notification raised at or before it is marked seen and left out of listNotifications, getUnreadCount and getUnseen from then on.
Notifications raised at or before this time are cleared. A time in the future is treated as now, and a time before an earlier clear leaves that clear in place.
The point the inbox is now cleared up to.
Number of unread notifications remaining.
The request has no valid service auth.
social.colibri.beta.notification.getUnreadCount
Gets how many of the requesting user's notifications are unread.
Number of unread notifications.
The request has no valid service auth.
social.colibri.beta.notification.getUnseen
Gets the requesting user's unseen notifications for one channel, used to render that channel's unread badge detail.
The channel to get unseen notifications for.
Maximum number of notifications to return.
Unseen notifications raised in the given channel.
The request has no valid service auth.
No channel matches the given space reference.
social.colibri.beta.notification.listNotifications
Gets the requesting user's notifications, newest first.
Maximum number of notifications to return.
Pagination cursor from a previous call.
Pagination cursor for the next page, when more notifications remain.
The requesting user's notifications, newest first.
The request has no valid service auth.
social.colibri.beta.notification.markReadFromNotification
Marks a channel or thread read through the message a push notification announced, from the notification's Mark as read action. Takes no auth: the signed token from the push payload's readToken names the user, the channel and the message, and expires after seven days. Moves the user's read cursor forward, marks that channel's notifications through the message seen, and tells the user's sessions and push devices.
The readToken from the push payload.
The token is malformed, its signature does not verify, or the channel it names no longer exists.
The token is older than seven days.
social.colibri.beta.notification.registerPush
Registers a push endpoint for the requesting user's device. Web Push requires endpoint, p256dh, and auth. FCM requires token. APNs requires token and environment.
The push provider to register with.
The platform the device runs.
The Web Push subscription endpoint. Required when provider is webpush.
The Web Push subscription's p256dh key. Required when provider is webpush.
The Web Push subscription's auth secret. Required when provider is webpush.
The FCM registration token or the hex-encoded APNs device token. Required when provider is fcm or apns.
The APNs environment the device token belongs to. Required when provider is apns.
The request has no valid service auth.
The fields required for the given provider are missing or malformed.
This AppView has no keypair for the requested provider.
social.colibri.beta.notification.unregisterPush
Removes a previously registered push endpoint.
The push provider to unregister from.
The Web Push subscription endpoint to remove.
The FCM registration token or APNs device token to remove.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
social.colibri.beta.notification.updateSeen
Marks every notification raised at or before a point in time seen.
Notifications raised at or before this time are marked seen.
Number of unread notifications remaining.
The request has no valid service auth.
social.colibri.beta.notification.updateSeenForMessage
Marks the notifications raised by one message seen.
The channel the message was posted in.
The message whose notifications are marked seen.
Number of unread notifications remaining.
The request has no valid service auth.
No channel matches the given space reference.
No message matches the given record reference in that channel.
The emoji methods manage a user’s emoji library and a Space’s custom emoji and
packs. putFollow pushes a follow of another owner’s emoji to the AppView.
social.colibri.beta.emoji.createPack
Creates a pack of a community's custom emoji.
The community that owns the emoji.
The pack's name.
The pack's description.
URIs of the community's emoji to put in the pack.
The emoji provider that writes the records. Defaults to the AppView's default provider.
The pack as stored.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
No emoji of this community exists at the given URI.
The emoji provider is unknown, or it does not support the requested operation.
The pack name is empty or longer than 64 characters.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.delete
Deletes a community's custom emoji and removes it from every pack of the community. Copies other people made stay in their repos.
The community that owns the emoji.
The emoji's record URI in the community's repo.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
No emoji of this community exists at the given URI.
The emoji provider is unknown, or it does not support the requested operation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.deletePack
Deletes a community's pack. The emoji in it stay.
The community that owns the emoji.
The pack's record URI in the community's repo.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
No pack of this community exists at the given URI.
The emoji provider is unknown, or it does not support the requested operation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.getCatalog
Lists the custom emoji and packs in one repo, from every supported emoji provider. Works for communities and users alike, since the records are public.
The community or user whose emoji to list.
The repo's emoji and packs.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.getEmojis
Gets custom emoji by record URI, across any number of repos and every supported emoji provider. URIs that name no emoji are left out.
The emoji record URIs to get.
The emoji found, in the order their URIs were requested.
Owners whose repo could not be read. Their emoji are left out of emojis, and asking again later can return them.
social.colibri.beta.emoji.getLibrary
Gets the requesting user's emoji library: the emoji and packs they uploaded, plus everything they follow, hydrated with images.
The user's library.
The request has no valid service auth.
social.colibri.beta.emoji.putFollow
Pushes one social.colibri.beta.emoji.follow record to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own preferences space first, then calls this. The AppView starts tracking the subject's owner and answers with the followed item as the picker shows it.
The follow record's key.
The followed pack or emoji. Absent means the record was deleted.
The record's createdAt. Defaults to the time of the call when subject is present.
The followed item. Absent after an unfollow.
The request has no valid service auth.
The subject is an emoji that does not exist.
The subject is a pack that does not exist.
The subject's collection belongs to no supported emoji provider.
The subject is in the requesting user's own repo.
The subject owner's repo could not be read.
social.colibri.beta.emoji.rename
Renames a community's custom emoji. Providers that key records by name move the record to a new key and repoint pack memberships, so the emoji's URI changes.
The community that owns the emoji.
The emoji's record URI in the community's repo.
The emoji's name without colons. Lowercase letters, digits and underscores.
The emoji as stored.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
No emoji of this community exists at the given URI.
The name is not 2 to 32 characters of lowercase letters, digits and underscores.
The community already has an emoji with this name.
The emoji provider is unknown, or it does not support the requested operation.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.updatePack
Renames a community's pack or replaces its emoji. Omitted fields stay as they are.
The community that owns the emoji.
The pack's record URI in the community's repo.
The new name.
The new description. An empty string clears it.
The full new list of emoji URIs, in order.
The pack as stored.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
No pack of this community exists at the given URI.
No emoji of this community exists at the given URI.
The emoji provider is unknown, or it does not support the requested operation.
The pack name is empty or longer than 64 characters.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
social.colibri.beta.emoji.upload
Adds a custom emoji to a community. The bytes are uploaded to the community's own repo and the AppView writes the provider's record there with the community's credentials.
The community that owns the emoji.
The emoji's name without colons. Lowercase letters, digits and underscores.
A pack of the community to add the emoji to.
The emoji provider that writes the records. Defaults to the AppView's default provider.
The emoji as stored.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The name is not 2 to 32 characters of lowercase letters, digits and underscores.
The community already has an emoji with this name.
No pack of this community exists at the given URI.
The emoji provider is unknown, or it does not support the requested operation.
The bytes are not an image type the provider accepts.
The image exceeds the provider's size limit.
The AppView cannot act as the community because its stored credentials are missing or unusable.
A PDS call the AppView depends on failed.
Embeds and GIFs
Section titled “Embeds and GIFs”getMetadata builds a link preview, and searchGifs, trendingGifs and
gifCategories back the GIF picker. The AppView fetches every link itself, so
the previewed site never sees the client’s address. getImage and getVideo
serve the signed URLs found inside an embed view.
social.colibri.beta.embed.getImage
Proxies an image from a link embed through the AppView, so the viewer's address never reaches the origin. The URL comes signed in an embed view, which lets an img element load it without a bearer header. The origin's content type must be an allowed image type. Supports HTTP range requests.
The image on the origin.
Unix time in seconds after which the link stops working.
Signature over the kind, url and exp, issued by this AppView.
url, exp or sig is missing or malformed.
The signature is invalid or expired.
The origin could not be reached or answered with an error.
The origin served something other than an allowed image type.
social.colibri.beta.embed.getMetadata
Fetches and parses a link preview. The AppView fetches the URL on the client's behalf, so the client's address is never exposed to the target site.
The URL to preview.
The parsed preview.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
The target refused the request, timed out, or resolves to an address the AppView will not fetch.
The target site failed while the AppView fetched or parsed it.
social.colibri.beta.embed.getVideo
Proxies a video from a link embed through the AppView, so the viewer's address never reaches the origin. The URL comes signed in an embed view, which lets a video element load it without a bearer header. The origin's content type must be an allowed video type. Supports HTTP range requests.
The video on the origin.
Unix time in seconds after which the link stops working.
Signature over the kind, url and exp, issued by this AppView.
url, exp or sig is missing or malformed.
The signature is invalid or expired.
The origin could not be reached or answered with an error.
The origin served something other than an allowed video type.
social.colibri.beta.embed.gifCategories
Lists the categories shown in the GIF picker.
The GIF picker's categories.
The request has no valid service auth.
This AppView has no GIF provider key configured.
The GIF provider failed.
social.colibri.beta.embed.searchGifs
Searches the GIF picker's provider.
The search query.
Maximum number of GIFs to return.
Pagination cursor from a previous call.
Pagination cursor for the next page.
GIFs matching the query.
The request has no valid service auth.
This AppView has no GIF provider key configured.
The GIF provider failed.
social.colibri.beta.embed.trendingGifs
Gets trending GIFs from the GIF picker's provider.
Maximum number of GIFs to return.
Pagination cursor from a previous call.
Pagination cursor for the next page.
Currently trending GIFs.
The request has no valid service auth.
This AppView has no GIF provider key configured.
The GIF provider failed.
social.colibri.beta.blob.get serves a blob from an ATproto space. The
response is the raw bytes.
social.colibri.beta.blob.get
Serves a blob from a permissioned space through the AppView, which holds the space credential the client does not. Every byte is verified against the CID before it is served, and the content type is sniffed rather than trusted. Supports HTTP range requests.
DID of the repo holding the blob.
The blob's CID.
The space holding the blob. Required for a blob in a permissioned space, and omitted for one on a public repo.
A rendition of a resizable image.
Sets the download filename.
Who the media link was signed for. Set by the AppView on a signed link, alongside exp and sig.
Unix time in seconds after which the media link stops working.
Signature over did, cid, space, viewer and exp, which lets an img or video element load the blob without a bearer header.
The request has no valid service auth.
The requesting user may not read the space holding the blob.
No blob matches the given DID and CID.
The arguments are inconsistent or malformed beyond schema validation.
The repo's PDS failed while the AppView fetched the blob.
Media links
Section titled “Media links”An <img> or <video> element cannot send an Authorization header, so a blob
in an ATproto space is also reachable through a media link. A media link is
the same URL with viewer, exp and sig added. The AppView mints one for
every attachment it puts in a view. Use the URL as it arrives.
sig is an HMAC over did, cid, space, viewer and exp. The AppView
resolves the named viewer’s access to the space on every request, so a viewer
who loses read access loses the link before exp passes.
A link’s expiry falls on a 15-minute boundary, which gives the same blob one
cacheable URL for that window. A fresh link lasts between 60 and 75 minutes.
Past exp the AppView answers AuthRequired. Read the view again to get a new
link.
A caller that sends a service auth token for social.colibri.beta.blob.get
leaves viewer, exp and sig off.
social.colibri.beta.voice.moderate mutes, deafens, moves or disconnects
someone in a voice channel. Everything else about a call runs over
the voice socket.
social.colibri.beta.voice.moderate
Acts on someone in a voice channel. An absent field leaves the current value unchanged.
The voice channel the subject is in.
Who to act on.
Whether the subject's microphone is muted. Absent leaves the current value unchanged.
Whether the subject cannot hear others. Absent leaves the current value unchanged.
Whether to disconnect the subject from the channel.
The voice channel to move the subject to. It must be in the same space as the channel. The subject may join it for this call even when they can't see it, without access to its text chat.
The request has no valid service auth.
The requesting user lacks the voice.moderate permission.
No channel matches the given space reference.
The subject is not currently connected to the channel.
The moveTo channel is not a voice channel in the same space.
This AppView has no voice SFU running.
social.colibri.beta.voice.subscribeSignals
Signaling for voice channels over a WebSocket. Frames are JSON text, each an object tagged with $type. The client sends the social.colibri.beta.voice.defs frames join, leave, getRtpCapabilities, createTransport, connectTransport, produce, closeProducer, consume, resumeConsumer, setConsumerPreference, setSelfState, setSpeaking, heartbeat, rttReport and moveNow. Media flows over WebRTC transports negotiated here.
Service auth token with lxm social.colibri.beta.voice.subscribeSignals, for clients that can't set an Authorization header on a WebSocket.
Answers a heartbeat.
Something the client sent could not be acted on.
Confirms this connection has joined a voice channel.
Another peer joined the voice channel this connection is in.
A peer left the voice channel this connection is in.
A media producer available to consume.
A peer's producer closed.
A viewer in the voice channel can't decode the video codec of this client's screen share. The client can produce the screen share again with a more widely supported codec. Sent at most once per producer, only to the client that owns it.
A change in whether someone is currently speaking.
A peer's mute or deafen state changed, whether they did it themselves or a moderator did it to them.
The voice permissions this client holds in its current call changed. Sent only to the client it applies to.
The RTP capabilities a WebRTC endpoint supports.
Parameters for creating one side of a WebRTC transport.
Parameters for consuming one producer.
The server removed this client from the voice channel. Sent only to the client it applies to.
A moderator moved this client to another voice channel. The server has already removed it from the previous one. Sent only to the client it applies to.
This node is going offline and the call has to move. Clients measure the round trip to every candidate and answer with rttReport.
The call moves to another node. Clients join the same channel there, switch their media over, and then leave this node.
The call in the requested channel runs on another node. Clients join it there.
The upgrade request has no valid service auth. Answered with HTTP 401 before the WebSocket opens.
The voice socket
Section titled “The voice socket”social.colibri.beta.voice.subscribeSignals is a WebSocket that carries
mediasoup client signalling. Frames are JSON objects
tagged with a $type from social.colibri.beta.voice.defs.
The client sends these frames:
Joins a voice channel. A connection must join before sending any other frame, and joining a second channel leaves the first.
Leaves the voice channel this connection is joined to.
Keeps the connection alive. The server answers with an ack.
Requests the router's RTP capabilities for the joined channel.
Requests a new WebRTC transport for the joined channel.
Completes DTLS negotiation for a transport this connection created.
Starts producing media on a send transport this connection created.
Closes a producer this connection owns.
Starts consuming another peer's producer on a receive transport this connection created.
Resumes a consumer this connection created, which is created paused by default.
Sets the highest simulcast or SVC layers a consumer this connection created should receive, and whether it should receive media at all. The server picks layers within the transport's bandwidth estimate and keeps a consumer paused while deafen silences it.
Updates this connection's own mute or deafen state. An absent field leaves the current value unchanged.
Reports whether this connection's user is speaking, as detected on their device. Once a connection sends this, the server stops detecting speech from its audio level. The server reports false while the user is muted.
Round trips this client measured to the candidates of a migrationProposal.
Asks the node to move the call to the chosen node right away, without waiting for the deadline.
The frames the server sends are listed under
subscribeSignals.
A moderationChanged frame with serverMuted or serverDeafened set reports a
state that setSelfState cannot lift.
The events socket
Section titled “The events socket”social.colibri.beta.sync.subscribeEvents is a WebSocket that carries
everything that happens while a client is connected: messages, reactions,
structure changes, presence, typing, notifications and voice participation.
Frames are JSON objects in both directions. Each one is tagged with a $type
that names a definition in social.colibri.beta.sync.defs:
{ "$type": "social.colibri.beta.sync.defs#heartbeat" }social.colibri.beta.sync.subscribeEvents
Live updates for one account over a WebSocket. Frames are JSON text, each an object tagged with $type. The client sends the social.colibri.beta.sync.defs frames subscribe, unsubscribe, heartbeat, typing, viewChannel, activity, wroteTo and setPresence. The connection is sent nothing for a community or channel it did not subscribe to.
Service auth token with lxm social.colibri.beta.sync.subscribeEvents, for clients that can't set an Authorization header on a WebSocket.
Answers a heartbeat.
Something the client sent could not be acted on.
Confirms what this connection is now receiving, after a subscribe or unsubscribe. Anything the user is not entitled to read is silently absent.
A message was written, edited, or deleted in a subscribed channel.
A reaction was added or removed in a subscribed channel.
A channel was created, changed, or deleted.
A thread was opened, changed, deleted, or written to. This rides the community's topic rather than a topic per thread, so a client keeps every thread's activity age and unread dot live without subscribing to each one.
A category was created, changed, or deleted.
A role was created, changed, or deleted.
Someone joined, left, or had their roles changed.
A community's profile or settings changed.
The pending-application queue changed. Only sent to members who can manage approvals.
A community's invitation list changed. Only sent to members who can create invitations.
A community's custom emoji or packs changed. Sent to the community's subscribers. Carries the whole catalog so clients replace it in one step.
The user's emoji library changed. Sent to a user's own connections when their own emoji change, a follow is added or removed, or the owner of something they follow changes their emoji. Carries the whole library so clients replace it in one step.
A label was applied or retracted on a record in a subscribed space.
A moderation action was logged. Only sent to members who can read the log.
A notification was raised for the connected user.
The connected user marked notifications seen somewhere else, so this client should clear the same badges.
The connected user's read cursors for one community moved, possibly from another of their sessions. Each cursor is the newest the AppView holds for that channel or thread, so applying the event never moves a cursor backwards.
Someone's presence changed.
The connected user changed their own preferences somewhere else.
Someone is typing in a subscribed channel.
A voice channel's participants changed.
Progress while a community is being created or migrated, which takes several PDS round-trips.
A registration held by the connected bridge was changed or removed. Sent only to the bridge, which should fetch its configuration again.
A bridge reported new remote rooms or history import progress for a registration. Only sent to members who can manage the community, who should fetch the registration again.
This node is going offline. Clients move their event socket to another node from listNodes. When no other node exists, clients warn the user that the connection may drop at the deadline.
Whether this node can take writes right now. Sent on connect and whenever it changes.
The upgrade request has no valid service auth. Answered with HTTP 401 before the WebSocket opens.
Subscriptions
Section titled “Subscriptions”A connection receives events only for the Spaces and channels it subscribed to.
Events addressed to the connected user, such as notifications, arrive without a
subscription. A new connection first receives a writeState frame.
Send a subscribe frame that names Spaces in communities and channels or
threads in channels. The server answers with subscribed, which lists what
the connection now receives. Entries the user may not read are absent from that
list, so compare it against what was requested.
Subscribing to a Space also subscribes the connection to every channel in it
that the user may read. When the user’s access changes, the server revises the
channel topics and sends a new subscribed frame.
unsubscribe removes topics, and removing a Space removes its channels.
Client frames
Section titled “Client frames”Adds communities, channels and threads to what this connection receives. Subscription is explicit: a connection is sent nothing it did not ask for.
Removes communities, channels and threads from what this connection receives.
Keeps the connection alive and tells the AppView the user is still present. The server answers with an ack.
Reports that the user is typing in a channel.
Reports which channel the user is looking at, which drives read state and away detection. An absent channel means they are looking at none.
Reports that the user is actively using this client, which holds back push notifications to their other devices for a few minutes. Clients send it while visible and focused.
Reports that the user just wrote a record to a space, so the AppView can pull it without waiting for the space host to forward a notification. Honoured only for a space this connection already receives.
Updates the user's own presence over the socket.
A frame that is not valid JSON, has an unknown $type or fails its lexicon is
answered with an error frame named InvalidFrame. More than 20 wroteTo
frames in 10 seconds are answered with RateLimited.
The server pings every 30 seconds and closes a connection that did not answer the previous ping.
Bridges
Section titled “Bridges”A bridge is an account that links channels in a Space to rooms on another service. Bridge methods take a service auth token signed by the bridge’s own account. See Building a bridge and the Bridge reference.
social.colibri.beta.bridge.addReaction
Adds a reaction from someone on another service to a message in a linked or open channel. The community writes the reaction, attributed to that person.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the record lives in.
Who reacted.
The message being reacted to.
The message being reacted to, as a record URI in the channel. Preferred over `target` when it is valid.
The reaction, as an emoji or a custom shortcode.
Record key of the record the community wrote.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
This person already reacted to the message with the same emoji.
social.colibri.beta.bridge.createPairing
Starts pairing a bridge with a community. Called by the bridge, which shows the returned code to an admin on the other service. A Colibri admin then redeems the code, which proves both sides agreed.
The service the bridge connects to.
The id of the server, workspace or network on the other service.
Its name on the other service.
The single-use pairing code.
When the code stops working.
The request is missing, malformed, or unverifiable service auth.
The bridge sent too many requests. Retry after the interval in the response headers.
social.colibri.beta.bridge.createThread
Opens a thread beside a linked or open channel for someone on another service. The community writes the thread, attributed to that person.
The community the registration belongs to.
Record key of the registration.
The linked or open channel to open the thread beside.
The thread's title.
Who opened the thread.
The message in the channel the thread was opened from. Absent opens a thread from scratch.
The thread's id on the other service.
When the thread was opened on the other service. Defaults to now.
The thread's space.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
The anchor message does not exist in the given channel.
social.colibri.beta.bridge.deleteMessage
Deletes a message the calling bridge posted.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the record lives in.
Record key of the message.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No record exists at the given key in that channel.
The target record was not written for this registration.
social.colibri.beta.bridge.deleteThread
Deletes a thread the calling bridge opened, along with its space.
The community the registration belongs to.
Record key of the registration.
The thread's space.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is not linked to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No thread exists in that space.
The thread was not opened for this registration.
social.colibri.beta.bridge.editMessage
Replaces the text of a message the calling bridge posted.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the record lives in.
Record key of the message.
The new message body.
Annotations over ranges of the new text.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No record exists at the given key in that channel.
The target record was not written for this registration.
social.colibri.beta.bridge.getConfiguration
Lists every registration held by the calling bridge, with its linked channels. A bridge calls this at startup and whenever a registration change reaches it.
The caller's registrations across all communities.
The request is missing, malformed, or unverifiable service auth.
social.colibri.beta.bridge.getMember
Gets an account's standing in a community for the bridge that holds the registration: whether it is a member, whether it owns the community, its roles and its effective permissions. Bridges use it to decide who may run their commands.
The community the registration belongs to.
Record key of the registration.
The account to look up.
A linked or open channel of the registration. When given, permissions include that channel's overrides.
The account.
Whether the account is an admitted member that is not banned.
Whether the account owns the community.
Roles held, highest first. Empty when the account is not a member.
Effective permissions, in the community or in the given channel. Empty when the account is not a member.
The request is missing, malformed, or unverifiable service auth.
The caller is not the bridge this registration belongs to.
No community exists at the given DID.
The community has no bridge registration with that id.
The channel is neither linked nor open to the registration.
The bridge sent too many requests. Retry after the interval in the response headers.
social.colibri.beta.bridge.getPairing
Describes a pending pairing code so an admin can see which bridge they are about to connect.
The pairing code.
The pending pairing.
The request is missing, malformed, or unverifiable service auth.
The code does not exist, has expired, or was already used.
social.colibri.beta.bridge.hideMessage
Hides a Colibri member's message after a moderator removed its copy on the other service. The community applies a hidden label to the message. Works only when an admin has turned on moderation mirroring for the registration.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the message lives in.
The message to hide.
Human-readable reason.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Moderation mirroring is turned off for this registration.
No message exists at the given key in that channel.
The message was written by the community itself. Delete it with deleteMessage instead.
social.colibri.beta.bridge.importMessages
Imports earlier messages from someone on another service into a linked channel or a thread beside it, after an admin asked for a history import. The community writes each message at its original time, and clients see them only when they load history.
The community the registration belongs to.
Record key of the registration.
The linked channel, or a thread beside it, the messages go into.
The messages, oldest first.
One result per message, in input order.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is not linked to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No admin has asked for a history import on this channel.
A message was sent before the requested range or after the request.
social.colibri.beta.bridge.install
Connects a bridge to a community by its handle or DID, for bridges that set up rooms with commands in the channels they can use. Writes a registration with no linked or open channels.
The community to connect the bridge to.
The bridge's handle or DID.
The registration.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The handle or DID does not resolve to an identity.
This bridge is already installed in this community.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.leave
Disconnects the calling bridge from a community and deletes its registration, for when the remote space removed the bridge. Messages it already relayed stay.
The community the registration belongs to.
Record key of the registration.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.listChannels
Lists a community's text channels that every member can read, for the bridge that holds the registration. Each channel's viewer state says whether the registration may read and post in it now.
The community the registration belongs to.
Record key of the registration.
The channels, in the community's order.
The request is missing, malformed, or unverifiable service auth.
The caller is not the bridge this registration belongs to.
No community exists at the given DID.
The community has no bridge registration with that id.
The bridge sent too many requests. Retry after the interval in the response headers.
social.colibri.beta.bridge.listRegistrations
Lists the bridges connected to a community.
The community to list bridges for.
The community's bridges, newest first.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
social.colibri.beta.bridge.listRemoteRooms
Lists the rooms a bridge reported on the other service, for linking them to channels.
The community the registration belongs to.
Record key of the registration.
The rooms, in the order the bridge reported them.
When the bridge last reported its rooms.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The community has no bridge registration with that id.
social.colibri.beta.bridge.postMessage
Posts a message from someone on another service into a linked or open channel. The community writes the message, attributed to that person.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the record lives in.
Who sent the message.
The message body.
Annotations over ranges of the text.
The message this one replies to.
The message this one replies to, as a record URI in the channel. Preferred over `parent` when it is valid.
Files attached to the message.
Content forwarded from another Colibri message.
The message's id on the other service.
When the message was sent on the other service. Defaults to now.
Record key of the record the community wrote.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.putRemoteRooms
Replaces the list of rooms the calling bridge can see on the other service, offered to admins when linking channels.
The community the registration belongs to.
Record key of the registration.
Every room the bridge can relay.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
The bridge sent too many requests. Retry after the interval in the response headers.
social.colibri.beta.bridge.redeemPairing
Connects a bridge to a community by redeeming its pairing code. Writes a registration with no linked channels.
The community to connect the bridge to.
The pairing code.
The registration.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The code does not exist, has expired, or was already used.
This bridge is already connected to the same remote space in this community.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.removeReaction
Removes a reaction the calling bridge added.
The community the registration belongs to.
Record key of the registration.
The linked or open channel or thread the record lives in.
Record key of the reaction.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is neither linked nor open to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No record exists at the given key in that channel.
The target record was not written for this registration.
social.colibri.beta.bridge.replaceAvatar
Swaps the avatar on every message and thread attributed to one remote author of this registration, so the previous avatar blob is no longer referenced.
The community the registration belongs to.
Record key of the registration.
The author's id on the other service, as attributed on their records.
The new avatar, uploaded with uploadBlob. Leave it out to remove the avatar.
How many records now carry the new avatar.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.reportBackfill
Reports how far a history import has got, so admins can follow it.
The community the registration belongs to.
Record key of the registration.
The linked channel being filled.
The request the report belongs to, as it appears on the link.
How far the import is.
How many messages the bridge has imported so far.
The start of the time range being imported.
The end of the time range being imported.
When the newest imported message in the channel was sent.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
The channel is not linked to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
No admin has asked for a history import on this channel.
social.colibri.beta.bridge.revoke
Disconnects a bridge from a community and deletes its registration. Messages it already relayed stay.
The community the registration belongs to.
Record key of the registration.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The community has no bridge registration with that id.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.update
Changes which channels a bridge relays, or pauses and resumes it. Omitted fields stay as they are.
The community the registration belongs to.
Record key of the registration.
The complete set of linked channels, replacing the current one.
The complete set of open channels, replacing the current one. The bridge may read and post in them without a room on the other service.
Whether the bridge may write.
Whether moderation crosses the bridge.
The registration.
The request is missing, malformed, or unverifiable service auth.
The caller lacks the community.manage permission.
No community exists at the given DID.
The community has no bridge registration with that id.
A link or open channel names a channel this community does not have.
The AppView cannot act as the community because its stored credentials are missing or unusable.
social.colibri.beta.bridge.updateThread
Renames a thread the calling bridge opened.
The community the registration belongs to.
Record key of the registration.
The thread's space.
The thread's new title.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The channel is not linked to this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The AppView cannot act as the community because its stored credentials are missing or unusable.
No thread exists in that space.
The thread was not opened for this registration.
social.colibri.beta.bridge.uploadBlob
Uploads a file to the community's repo for use in a bridged message or as a bridged author's avatar.
The community the registration belongs to.
Record key of the registration.
The uploaded blob, to reference from a message or author.
The request is missing, malformed, or unverifiable service auth.
No community exists at the given DID.
The community has no bridge registration with that id.
The caller is not the bridge this registration belongs to.
An admin has paused this registration.
The bridge sent too many requests. Retry after the interval in the response headers.
The file is larger than this AppView accepts from bridges.
The AppView cannot act as the community because its stored credentials are missing or unusable.
Hosted space repos
Section titled “Hosted space repos”The AppView hosts a member’s space repos while the member’s PDS cannot host
spaces. The social.colibri.beta.polyfill methods read and write those repos
and move them to the PDS once it supports spaces. See
Hosting.
social.colibri.beta.polyfill.applyWrites
Writes records to the requesting user's repo in a space the AppView hosts for them. The write is authorized the way the space's authority would authorize it, stored, and indexed like a synced write. Records keep the URIs they will have on the user's PDS after a migration.
The space holding the repo.
The writes, applied in order as one revision.
The repo revision after the writes.
One result per write, in the same order.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
No space matches the given space reference.
The caller may not write to or read from this repo in the space.
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
A record failed validation against its lexicon.
An update or delete names a record that does not exist.
social.colibri.beta.polyfill.beginMigration
Starts moving the requesting user's hosted repos to their PDS. Each repo enters the migrating state, in which the AppView still accepts its writes. Calling it again resumes an interrupted migration.
The spaces whose repos still need to move.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
The user's PDS does not serve spaces yet.
social.colibri.beta.polyfill.completeMigration
Asks the AppView to verify one repo the client copied to its PDS. The AppView syncs the repo from the PDS and compares it with its own copy. On a match the PDS becomes the source of truth. On a mismatch the repo stays hosted by the AppView, and the client may try again.
The space holding the repo.
Where the user's repos live after this call.
Records the AppView holds that the PDS copy lacks or differs on, when verification fails.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
No space matches the given space reference.
The caller may not write to or read from this repo in the space.
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
The repo is not in the migrating state.
The PDS copy could not be read or did not match.
social.colibri.beta.polyfill.getBlob
Returns the bytes of a blob the requesting user stored with the AppView, so a migration can upload it to their PDS.
The CID of the record or blob.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
The caller has no blob with this CID.
social.colibri.beta.polyfill.getRecord
Reads one record from the requesting user's repo in a space the AppView hosts for them.
The space holding the repo.
The record's collection.
The record key.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
No space matches the given space reference.
The caller may not write to or read from this repo in the space.
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
No record matches.
social.colibri.beta.polyfill.getStatus
Reports where the requesting user's space repos live and whether their PDS can host spaces now. The client routes space reads and writes by the mode, and starts a migration when the mode is polyfill and the PDS supports spaces.
Where the user's repos live after this call.
Whether the user's PDS serves the space methods a migration needs, as of the last check.
Progress of a running migration. Absent when none runs.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
social.colibri.beta.polyfill.listForMigration
Pages through every record in the requesting user's hosted repo in one space, in record key order per collection, so the client can replay them on its PDS.
The space holding the repo.
The page size.
Where the next page starts.
Where the next page starts.
The records on this page.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
No space matches the given space reference.
The caller may not write to or read from this repo in the space.
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
social.colibri.beta.polyfill.listRecords
Lists records of one collection in the requesting user's repo in a space the AppView hosts for them, ordered by record key.
The space holding the repo.
The record's collection.
The page size.
Where the next page starts.
Newest record key first.
Where the next page starts.
The records on this page.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
No space matches the given space reference.
The caller may not write to or read from this repo in the space.
The AppView does not host the caller's repo in this space, because it lives on the caller's PDS. Write to the PDS instead.
social.colibri.beta.polyfill.uploadBlob
Stores a blob for the requesting user while the AppView hosts their space repos. A blob nothing references within a day is deleted.
A reference to the stored blob, for use in a record.
The request has no valid service auth.
The arguments are inconsistent or malformed beyond schema validation.
The AppView does not host the caller's repos. Upload to the PDS instead.
The blob exceeds the size limit.
The AppView has no blob storage configured, so it cannot hold attachments right now.
Protocol callbacks
Section titled “Protocol callbacks”A Space’s PDS calls three methods on the AppView.
com.atproto.managedspace.checkAccess takes service auth from the space
authority. The two notification methods take the token the AppView registered
for the space.
com.atproto.managedspace.checkAccess
Section titled “com.atproto.managedspace.checkAccess”Answers whether an account may read or write a space. The Space’s PDS calls it before minting a credential, so bans, membership and channel visibility are enforced here.
repo is the account asking, and clientId is the attested OAuth client when
the request carried a client attestation.
The AppView answers read: false and write: false when repo is absent, when
the Space is unknown, and when the caller is not the authority of the space it
asks about.
com.atproto.space.confirmRegistration
Section titled “com.atproto.space.confirmRegistration”Confirms a notification registration. The AppView registers by sending
notify: { endpoint, token } with com.atproto.space.authorizeSpaceSync, where
endpoint is its PUBLIC_URL and token is a random secret it keeps per
space. The space host calls this method on that endpoint before it accepts the
registration. The AppView checks that it issued token for space and echoes
challenge back.
com.atproto.space.notifySpaceUpdate
Section titled “com.atproto.space.notifySpaceUpdate”Tells the AppView that something changed in a space. The AppView answers
InvalidRequest for a token it did not issue for that space. See
Sync for how notifications and the
periodic sweep work together.
update.$type names one of four updates:
$type |
Fields | What the AppView does |
|---|---|---|
com.atproto.space.defs#repoWrite |
repo, repoRev, data, spaceRev, prevSpaceRev? |
Queues a pull of repo |
com.atproto.space.defs#repoRemoved |
repo, spaceRev, prevSpaceRev? |
Stops treating repo as part of the space |
com.atproto.space.notifySpaceUpdate#spaceDeleted |
none | Checks with the space host that the space is deleted |
com.atproto.space.notifySpaceUpdate#registrationExpired |
spaceRev |
Renews the notification registration |
See also
Section titled “See also”- AppView Architecture: what implements this.
- Lexicons: the record and method schemas.
- Facets: how rich text is encoded.