Skip to content

Send message

given: "Alice" created an actor on "abel" called "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": "2025-12-19T09:48:42.689504",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg#legacy-key-1",
    "owner": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRZspTKwlkEe2K03ynvq\nKAoq1t23szFFucAzYdmOC8KCJtIIMaoGpcWG34itsWeyUsJpPtQooLGCa4cLNWAt\nUBNOIfMraqP3Y+s5TFZAF9E+CTKVm27uFvygjtn1G8XmQGtN12IGJYuuVU9KpO4+\nUh1xV9UIpZyAF+60KQEN/BMMgXPFhryTTqDRcVnOVyZO96OYjM3L5jaysKGJdug2\ny0iO14xdbv8kySFZXXC6MJx2VuqrAxyGrwkUm1SY+nOpY2hTqf4txZkSVuKXOfVc\n3N2leRFm2jpeaN4EBcebFMLnFseP8wVpVBO3yaa1AwpsG6nL1LzI2oeGQzhYIdB9\nQQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
  "type": "Person",
  "inbox": "http://abel/inbox/USov4HVVyNy4vyAE5Wj4_A",
  "outbox": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/outbox",
  "followers": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/followers",
  "following": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "bob" created an actor on "banach" called "bob"

send.bob.request.create_actor
{
  "base_url": "http://banach",
  "preferred_username": "bob",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.bob.response.create_actor
{
  "attachment": null,
  "published": "2025-12-19T09:48:43.576150",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ#legacy-key-1",
    "owner": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3SsIf+lwCbdOoMgzw15b\nsY3G9D1iGQGVx1JKXgb8eTGhJVsnoaGS96R1u19sGWk0HbOh+Q2SOaZ3ILaRaB+z\n/qOb/YES/vijDJ7KgljCtjpHa2EXxDvnCY1wpN2FzDngy/pWOe6KY7yvrFYIS4fh\ngbSlp8NE6CD50BFzWTs7L8M6CMFQ7H2BxyXi+snmDfOoCOA9mNqO/3s793knTk44\nV0Tr/dz4Sca5P9s0Z3UFkOcE3tmwCeM2nUvvM4EbAGeI59RrCdWE7iTslCUAfgVO\ndJnF9kczn1H/vLm+NY5LOW6aWonTApxZiCW6a6mFQ4oxqOF/EmD5j1mdSDEdMb8q\n1wIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ",
  "type": "Person",
  "inbox": "http://banach/inbox/zg9gVeC9hEF4x7yMLnutcA",
  "outbox": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ/outbox",
  "followers": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ/followers",
  "following": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ/following",
  "preferredUsername": "bob",
  "name": "bob",
  "identifiers": [
    "acct:bob@banach",
    "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

when: "Alice" sends "bob" a message saying "You stole my milk!"

send.Alice.trigger.send_message
{
  "actor": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Create",
    "actor": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
    "to": [
      "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
    ],
    "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/cd742a08ca44b2ea",
    "published": "2025-12-19T09:48:43Z",
    "object": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Note",
      "attributedTo": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
      "to": [
        "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
      ],
      "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411",
      "published": "2025-12-19T09:48:43Z",
      "content": "You stole my milk!"
    }
  }
}
receive.Alice.outgoing.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
      "to": [
        "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
      ],
      "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/cd742a08ca44b2ea",
      "published": "2025-12-19T09:48:43Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
        "to": [
          "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
        ],
        "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411",
        "published": "2025-12-19T09:48:43Z",
        "content": "You stole my milk!"
      }
    }
  },
  "actor": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
  "event_type": "outgoing",
  "history_id": null
}

then: "bob" receives a message saying "You stole my milk!"

receive.bob.incoming.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
      "to": [
        "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
      ],
      "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/cd742a08ca44b2ea",
      "published": "2025-12-19T09:48:43Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
        "to": [
          "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
        ],
        "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411",
        "published": "2025-12-19T09:48:43Z",
        "content": "You stole my milk!"
      }
    }
  },
  "actor": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ",
  "event_type": "incoming",
  "history_id": null
}

then: "bob" can lookup this message by id

send.bob.request.fetch
{
  "actor": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ",
  "uri": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411"
}
receive.bob.response.fetch
{
  "actor": "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ",
  "uri": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Note",
    "attributedTo": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg",
    "to": [
      "http://banach/actor/Lx90TViWAsUfMAfsHsx-cQ"
    ],
    "id": "http://abel/actor/h-4-TURBQ4TjvtM7T4SRgg/fcdbaa6fa50ef411",
    "published": "2025-12-19T09:48:43Z",
    "content": "You stole my milk!"
  }
}