pub.techne.draft.identity.link

Retired (Linking v2): the platform no longer serves it, and no client should call it. Two accounts are linked with identity.manageMethods `moveMethod` now, which makes them one person (no accountLink records, no primary). Kept so the name and its shapes stay published. It was: link the caller's account with the other account named by the token identity.finishAddMethod offered: both accounts get a pub.techne.draft.accountLink in their space.personal naming the other and the primary, and each account's `alsoKnownAs` gains `at://{other}` after the handle: signed here where this host holds the account's PLC rotation key, else by the identity PDS that made and hosts it. Nothing moves. v1 links only accounts this host or its identity PDS holds.

Details · procedure
Kindprocedure
Authorityidentity.draft.techne.pub
Commit rev3n3iob5fmxw2u
Indexed
cid bafyreihhw63glb7p4s4jiy6fasuululi7caypmfghynu4nii5l2gqredy4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Retired (Linking v2): the platform no longer serves it, and no client should call it. Two accounts are linked with identity.manageMethods `moveMethod` now, which makes them one person (no accountLink records, no primary). Kept so the name and its shapes stay published. It was: link the caller's account with the other account named by the token identity.finishAddMethod offered: both accounts get a pub.techne.draft.accountLink in their space.personal naming the other and the primary, and each account's `alsoKnownAs` gains `at://{other}` after the handle: signed here where this host holds the account's PLC rotation key, else by the identity PDS that made and hosts it. Nothing moves. v1 links only accounts this host or its identity PDS holds.",
      "errors": [
        {
          "description": "No signed-in caller.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "The token is unknown, used, expired, or was issued to another session.",
          "name": "InvalidToken"
        },
        {
          "description": "One of the two accounts has a recovery mark, a live freeze, a pending change, or a passkey, Nostr key or recovery codes since the offer (HTTP 409).",
          "name": "ProtectedAccount"
        },
        {
          "description": "`primary` names neither account, or the other account is held neither here nor by the identity PDS (sign in to it and link from there).",
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "primary": {
              "description": "The caller's DID or the other account's.",
              "format": "did",
              "type": "string"
            },
            "token": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "token",
            "primary"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "link": {
              "ref": "pub.techne.draft.identity.defs#linkView",
              "type": "ref"
            }
          },
          "required": [
            "link"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.techne.draft.identity.link",
  "lexicon": 1
}