social.colibri.beta.bridge.redeemPairing
Connects a bridge to a community by redeeming its pairing code. Writes a registration with no linked channels.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | bridge.beta.colibri.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Connects a bridge to a community by redeeming its pairing code. Writes a registration with no linked channels.",
"errors": [
{
"description": "The request is missing, malformed, or unverifiable service auth.",
"name": "AuthRequired"
},
{
"description": "The caller lacks the community.manage permission.",
"name": "Forbidden"
},
{
"description": "No community exists at the given DID.",
"name": "CommunityNotFound"
},
{
"description": "The code does not exist, has expired, or was already used.",
"name": "PairingNotFound"
},
{
"description": "This bridge is already connected to the same remote space in this community.",
"name": "AlreadyRegistered"
},
{
"description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
"name": "CredentialsUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"code": {
"description": "The pairing code.",
"maxLength": 32,
"type": "string"
},
"community": {
"description": "The community to connect the bridge to.",
"format": "did",
"type": "string"
}
},
"required": [
"community",
"code"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"registration": {
"description": "The registration.",
"ref": "social.colibri.beta.bridge.defs#registrationView",
"type": "ref"
}
},
"required": [
"registration"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.colibri.beta.bridge.redeemPairing",
"lexicon": 1
}