Skip to content

Add new primary identifier; actor objet

given: "Alice" created an actor on "abel" called "Alice" with username "Alice"

send.Alice.request.create_actor
{
  "base_url": "http://abel",
  "preferred_username": "Alice",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Alice.response.create_actor
{
  "attachment": null,
  "published": "2026-03-20T15:18:37.919778",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g#legacy-key-1",
    "owner": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApDhNfeD9E62Gzivg3KLc\nuLxOpjM/KBLNd/42KbCeklFMxj1/gpTanduP7N9dr5dYHR4NvXTURhBxpQIydIw6\nwZ4sdeDpadxeOP8ZTOAc3Y5vU54EyoU//zZ+WETZb2mCWwp/oNuwYcXdb71TJjTR\nfIAuekNMFpRHMpf2recUh/l9cdrlvqUig5JN1kUbaD8dgwnhVKgoB4XgHjLiCecV\noqi3xvz0s8IpwU198o2pHMpsDQDHrfv88Z12cXg1FL0P9d979i1lhSjBC4UFrDD8\n4Si+hoIjEQTJrZ5vLw4QMGTLUbqx7/nL2hgE9bjxUGIxCTX/LbWIY8K6TjHBkqZr\nZwIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
  "type": "Person",
  "inbox": "http://abel/inbox/x002Fn1GU90FZlEOIJAe5A",
  "outbox": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/outbox",
  "followers": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/followers",
  "following": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Alice" adds "acct:alex@abel" as a primary identifier

send.Alice.trigger.update_actor
{
  "actor": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
  "profile": null,
  "autoFollow": null,
  "actions": [
    {
      "action": "create_identifier",
      "identifier": "acct:alex@abel",
      "primary": true
    }
  ]
}
receive.Alice.outgoing.Update
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Update",
      "actor": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/followers"
      ],
      "published": "2026-03-20T15:18:38Z",
      "object": {
        "attachment": null,
        "published": "2026-03-20T15:18:37.919778",
        "@context": [
          "https://www.w3.org/ns/activitystreams",
          "https://w3id.org/security/v1",
          {
            "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
          }
        ],
        "publicKey": {
          "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g#legacy-key-1",
          "owner": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
          "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApDhNfeD9E62Gzivg3KLc\nuLxOpjM/KBLNd/42KbCeklFMxj1/gpTanduP7N9dr5dYHR4NvXTURhBxpQIydIw6\nwZ4sdeDpadxeOP8ZTOAc3Y5vU54EyoU//zZ+WETZb2mCWwp/oNuwYcXdb71TJjTR\nfIAuekNMFpRHMpf2recUh/l9cdrlvqUig5JN1kUbaD8dgwnhVKgoB4XgHjLiCecV\noqi3xvz0s8IpwU198o2pHMpsDQDHrfv88Z12cXg1FL0P9d979i1lhSjBC4UFrDD8\n4Si+hoIjEQTJrZ5vLw4QMGTLUbqx7/nL2hgE9bjxUGIxCTX/LbWIY8K6TjHBkqZr\nZwIDAQAB\n-----END PUBLIC KEY-----\n"
        },
        "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
        "type": "Person",
        "inbox": "http://abel/inbox/x002Fn1GU90FZlEOIJAe5A",
        "outbox": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/outbox",
        "followers": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/followers",
        "following": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/following",
        "preferredUsername": "alex",
        "name": "alex",
        "identifiers": [
          "acct:alex@abel",
          "acct:Alice@abel",
          "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g"
        ],
        "endpoints": {
          "sharedInbox": "http://abel/shared_inbox"
        },
        "manuallyApprovesFollowers": true
      },
      "id": "http://abel/object/019d0bd3-b8f2-7de1-bcd9-17f27d555860"
    }
  },
  "actor": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" retrieves the object with id "acct:alex@abel"

send.Alice.request.fetch
{
  "actor": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
  "uri": "acct:alex@abel"
}
receive.Alice.response.fetch
{
  "actor": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
  "uri": "acct:alex@abel",
  "data": {
    "attachment": null,
    "published": "2026-03-20T15:18:37.919778",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1",
      {
        "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
      }
    ],
    "publicKey": {
      "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g#legacy-key-1",
      "owner": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
      "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApDhNfeD9E62Gzivg3KLc\nuLxOpjM/KBLNd/42KbCeklFMxj1/gpTanduP7N9dr5dYHR4NvXTURhBxpQIydIw6\nwZ4sdeDpadxeOP8ZTOAc3Y5vU54EyoU//zZ+WETZb2mCWwp/oNuwYcXdb71TJjTR\nfIAuekNMFpRHMpf2recUh/l9cdrlvqUig5JN1kUbaD8dgwnhVKgoB4XgHjLiCecV\noqi3xvz0s8IpwU198o2pHMpsDQDHrfv88Z12cXg1FL0P9d979i1lhSjBC4UFrDD8\n4Si+hoIjEQTJrZ5vLw4QMGTLUbqx7/nL2hgE9bjxUGIxCTX/LbWIY8K6TjHBkqZr\nZwIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    "id": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g",
    "type": "Person",
    "inbox": "http://abel/inbox/x002Fn1GU90FZlEOIJAe5A",
    "outbox": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/outbox",
    "followers": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/followers",
    "following": "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g/following",
    "preferredUsername": "alex",
    "name": "alex",
    "identifiers": [
      "acct:alex@abel",
      "acct:Alice@abel",
      "http://abel/actor/ptoBqTKJhpf2UGI8GYzY3g"
    ],
    "endpoints": {
      "sharedInbox": "http://abel/shared_inbox"
    },
    "manuallyApprovesFollowers": true
  }
}

then: The preferred username is "alex"

then: "acct:alex@abel" is contained in the identifiers array