Skip to content

Fetch actor

given: A new user called "alice"

given: A new user called "bob"

when: "alice" retrieves the object with the actor id of "bob"

receive.alice
{
  "action": "fetch_result",
  "actor": "http://abel/actor/DJhkFKQcvEnbzoeR0-bxhA",
  "data": {
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
    ],
    "publicKey": {
      "id": "http://banach/actor/0ssue48n610lGp7M-FFD3Q#legacy-key-1",
      "owner": "http://banach/actor/0ssue48n610lGp7M-FFD3Q",
      "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArpUdFZkZV4doCqfH/7Gf\nVTif/1IphBCa5S7UlJoC0cwQA25VhOJKAnrC3esvwlZFVsLN6pDCRTciu/EAcOGK\nlrmpSROBuiZF6p//pDxt228Y8E/jePdYM4Q+5G7Et3Q6CQpKynp41H3LSPeyX+yA\nvBfH/Kv9Ogra/2+SrV+mcdRG97etGzqYR0yvUxiaV5B8qxyahpTRB3ZhXVheen6N\n/TZNsR9enXjV25iAVDNqebGiswsaIOwYbMmL+nxH8sKLMz6B1FPPchvY01z157Ru\nVdZedQFv6ZxkkRuCxYs+WMLoz/vlTdDz1c9mB6hRi6aUhmlSDlmpZrf30YdcNCYh\n5wIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    "id": "http://banach/actor/0ssue48n610lGp7M-FFD3Q",
    "type": "Person",
    "inbox": "http://banach/inbox/7MO0Czusef4OjTcKXkXYyw",
    "outbox": "http://banach/outbox/53lgpHlmoxJulwMG75sZcw",
    "followers": "http://banach/followers/N7RYCkUBptYCrcLCCOBwEw",
    "following": "http://banach/following/7-vyaOXzqXYRLSlwmQHoAg",
    "preferredUsername": "bob",
    "name": "bob"
  }
}

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