Skip to content

Export contains message

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

send.Alice.request.create_actor
{
  "base_url": "http://banach",
  "preferred_username": "Alice",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Alice.response.create_actor
{
  "attachment": null,
  "published": "2026-03-20T15:17:58.375815",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg#legacy-key-1",
    "owner": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlwFZYyrMbe2jL4pwGv/G\nXUZBUHRn9QstjBAx3Ngydy62qKCwZqL03QlBkBipuYCcHBl+TAZA4KHaswnFxZW8\nUMgecYsTyhgBTpurRInVeKjQYl5XRw9+5mssoJ44/a5EKuYQGtMvka7iL+vsqv6j\nWLbX5bWi11okgA1ykTih0I6l8WTL9gTlxm3KTuxBNsQGbB8ZRsc8hyXYFy5DznVL\ng3GkK7lnqLep+pwsOqshb/q8AWfmvSkVQRKqBdVbobEzzVxHJ0LjF5D7HMBDqwlF\n7y1ZSRT5Yz72lMTN8MDQ7fKdfU9xdFwaMDeXjyV7mwvm5zkHBa+UkL5N7Wi1/oGD\nawIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
  "type": "Person",
  "inbox": "http://banach/inbox/nQCzxQqGBKnLCRLYDo952A",
  "outbox": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/outbox",
  "followers": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/followers",
  "following": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@banach",
    "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

when: "Alice" publishes a message "Who stole my milk?" to her followers

send.Alice.trigger.publish_object
{
  "actor": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Note",
    "attributedTo": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "cc": [
      "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/followers"
    ],
    "published": "2026-03-20T15:17:58Z",
    "content": "Who stole my milk?"
  }
}
receive.Alice.outgoing.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/followers"
      ],
      "published": "2026-03-20T15:17:58Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
          "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg/followers"
        ],
        "published": "2026-03-20T15:17:58Z",
        "content": "Who stole my milk?",
        "id": "http://banach/html_display/object/019d0bd3-2041-7bd9-b6e6-2fcb023e8b0e",
        "replies": "http://banach/html_display/object/019d0bd3-2041-7bd9-b6e6-2fcb023e8b0e/replies",
        "shares": "http://banach/html_display/object/019d0bd3-2041-7bd9-b6e6-2fcb023e8b0e/shares",
        "likes": "http://banach/html_display/object/019d0bd3-2041-7bd9-b6e6-2fcb023e8b0e/likes",
        "url": [
          {
            "type": "Link",
            "mediaType": "text/html",
            "href": "http://banach/@VTdISlFbDWxH/o/019d0bd3-2041-7bd9-b6e6-2fcb023e8b0e"
          }
        ]
      },
      "id": "http://banach/simple_storage/019d0bd3-2046-79cd-957a-b6a59b6dc92f"
    }
  },
  "actor": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" requests an export token

send.Alice.trigger.html_display_export
{
  "actor": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg"
}
receive.Alice.response.trigger
{
  "actor": "http://banach/actor/RT8YPrmVWRDrTN5E1It8sg",
  "token": "2557d717-8b6b-4ee1-a953-b674402e6d11",
  "export_url": "http://banach/@VTdISlFbDWxH/export?token=2557d717-8b6b-4ee1-a953-b674402e6d11"
}

when: The export url is retrieved

then: The response code is "200"

then: The response contains "Who stole my milk?"