Skip to content

Fetch actor

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,
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "publicKey": {
    "id": "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA#legacy-key-1",
    "owner": "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwk60NorEv4D5f1tiGBFN\nw4twkYh7mhmhQTScKDwZSbByWXRoHWr2ZtIqd1PmhoMtH0dYfrc8lcgfhEtH479C\n06I6zdG4f2zhRvAkePo32L1fuvEtM34MCW8inuGpNGtZjkWJp2iAJC1gjNSaCgZS\nr2umX/ug2DcLmuRNlBhRz5Uv6G/tFtf2sN21x8A8k314BQ5DPkRuFV89Abxpmmot\nHyWlmQnkXc5rbmrEYG/03ykxgP6+yPAKxTM33Wiw/MoYzVaiy/WD+D/55IBEFWT4\nNhYfle4Ir9A0EQQB82iQvgs8HKYzj3UmMKKJOICUnnhEcgeePnnVsEcZcwRdsTzH\nNQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA",
  "type": "Person",
  "inbox": "http://abel/inbox/HznVXR0CK10F9ZxUZbHzbg",
  "outbox": "http://abel/outbox/Lf5wkeObGYcTvlRe23Uotw",
  "followers": "http://abel/followers/3KPZ310t-GniaIEffzXgDw",
  "following": "http://abel/following/2534XNXXxvT0gylmNXn_jQ",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  }
}

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,
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "publicKey": {
    "id": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA#legacy-key-1",
    "owner": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA57y0Xn1u73VA2VwZBwVE\nKANeKZrXfb1jUYt1EsZjQkkkOum8+aaWsOOKQI6qMn/bN9sJvoWQhdMe0ayLpfG5\nwE3GDDOALPQCO7pn5OzmiJHKVqm9O/ev4oLRYxQiyvdpOXWH7L6JegfJstAKIglw\nYsiIy73CNS994seSOCYLXOdgJib4thIz3fORMSdD73Wreye1sO8hGvGbe+k0oDDd\n1X4eYDO+T6d6WpCAozwJ1uSmrIX7fTsAVBRUy3Xwhc6HsvJ2s55vHVyB3Bd7PNBU\nhIwG9f17clYI6sgADylkrOql3tNBehn3DQTRyleft9/MA3c17YvCJBSwTUcoJj0b\nYwIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA",
  "type": "Person",
  "inbox": "http://banach/inbox/RWXQlS5qlYgk7XAHyqKaVA",
  "outbox": "http://banach/outbox/XQfZjJALNeuL9fJQOw9-dA",
  "followers": "http://banach/followers/Wa4x7cTTMvecFRatSfPepg",
  "following": "http://banach/following/9zZS9pQZkFhoIhGFZTxyTg",
  "preferredUsername": "Bob",
  "name": "Bob",
  "identifiers": [
    "acct:Bob@banach",
    "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  }
}

when: "Alice" retrieves the object with id "acct:Bob@banach"

send.Alice.request.fetch
{
  "actor": "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA",
  "uri": "acct:Bob@banach"
}
receive.Alice.response.fetch
{
  "actor": "http://abel/actor/WT1MgG4lvE8HTT-BpJF-nA",
  "uri": "acct:Bob@banach",
  "data": {
    "attachment": null,
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
    ],
    "publicKey": {
      "id": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA#legacy-key-1",
      "owner": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA",
      "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA57y0Xn1u73VA2VwZBwVE\nKANeKZrXfb1jUYt1EsZjQkkkOum8+aaWsOOKQI6qMn/bN9sJvoWQhdMe0ayLpfG5\nwE3GDDOALPQCO7pn5OzmiJHKVqm9O/ev4oLRYxQiyvdpOXWH7L6JegfJstAKIglw\nYsiIy73CNS994seSOCYLXOdgJib4thIz3fORMSdD73Wreye1sO8hGvGbe+k0oDDd\n1X4eYDO+T6d6WpCAozwJ1uSmrIX7fTsAVBRUy3Xwhc6HsvJ2s55vHVyB3Bd7PNBU\nhIwG9f17clYI6sgADylkrOql3tNBehn3DQTRyleft9/MA3c17YvCJBSwTUcoJj0b\nYwIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    "id": "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA",
    "type": "Person",
    "inbox": "http://banach/inbox/RWXQlS5qlYgk7XAHyqKaVA",
    "outbox": "http://banach/outbox/XQfZjJALNeuL9fJQOw9-dA",
    "followers": "http://banach/followers/Wa4x7cTTMvecFRatSfPepg",
    "following": "http://banach/following/9zZS9pQZkFhoIhGFZTxyTg",
    "preferredUsername": "Bob",
    "name": "Bob",
    "identifiers": [
      "acct:Bob@banach",
      "http://banach/actor/auucHDcuvUQ4pBXkZkjQnA"
    ],
    "endpoints": {
      "sharedInbox": "http://banach/shared_inbox"
    }
  }
}

then: The retrieved object is the profile of "Bob"