Skip to content

Can request export token

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:51.839151",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw#legacy-key-1",
    "owner": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvdCknR6IxB6xhu01NNSz\nxFH+clPkA97uLPz+Txv+YifaTkMl5nvObhBTxtFmeJudSDbUSwSTfvpMoTm/K7fw\n3aHkfKYVIFj4QKxGBpj1FWQY7HxNrqqPX8/XK/AFV4OdrzBi5gegVWLhMp2CQwDI\n3d+8/CYaaqrB13CdBt7B1ZmwbWFFpgbkSoBpGUJWee0tGDYRhphbgvzywXS2xex6\nvNJMnNU8u0V8UiH45iRPVCuPIpR95qXI3nxdKPhd89GZO5dErzcDs2dbog8+oILC\nNV2hET4/qt4xmcld6q88TANDuMD3ZBN0SsITYoWvV7AHgAR8ci95OpiHS7H99qbe\noQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw",
  "type": "Person",
  "inbox": "http://banach/inbox/Mr1QtPoq0N2OpVVLY0zr2w",
  "outbox": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw/outbox",
  "followers": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw/followers",
  "following": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@banach",
    "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

when: "Alice" requests an export token

send.Alice.trigger.html_display_export
{
  "actor": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw"
}
receive.Alice.response.trigger
{
  "actor": "http://banach/actor/MGo4oC7Cn9sF5I3LgzDwMw",
  "token": "f51d0b5f-977f-421f-8f28-104a075d5aa3",
  "export_url": "http://banach/@POuChehhxaUn/export?token=f51d0b5f-977f-421f-8f28-104a075d5aa3"
}

when: The export url is retrieved

then: The response code is "200"