Skip to content

Attribution Format

attributedTo is defined here in the ActivityStreams Vocabulary. It allows us to tell, who authored / owns the object.

This test explores what is allowed in the field.

Examples

Example 1

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/ZapPhuQ7VRk",
  "published": "2025-03-07T13:30:18Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/oS1So2b0ANc",
    "published": "2025-03-07T13:30:18Z",
    "content": "single element"
  }
}
mitra
{
  "id": "019570cc-b95c-188d-62b9-254615c9dd9c",
  "uri": "http://pasture-one-actor/actor/oS1So2b0ANc",
  "url": "http://pasture-one-actor/actor/oS1So2b0ANc",
  "created_at": "2025-03-07T13:30:18.000Z",
  "edited_at": null,
  "account": {
    "id": "019570c9-7888-5d17-454a-2b3ac9467286",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-03-07T13:26:46.664Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 92,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "single element",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "019570c8-680c-2ff0-d650-3ab043e046a1",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

Example 2

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/9aCDzOKtVXA",
  "published": "2025-03-07T13:30:20Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/E8VNsKBAhow",
    "published": "2025-03-07T13:30:20Z",
    "content": "single element as list"
  }
}
mitra
{
  "id": "019570cc-bf33-e24e-f020-e81dbfdeab3a",
  "uri": "http://pasture-one-actor/actor/E8VNsKBAhow",
  "url": "http://pasture-one-actor/actor/E8VNsKBAhow",
  "created_at": "2025-03-07T13:30:20.000Z",
  "edited_at": null,
  "account": {
    "id": "019570c9-7888-5d17-454a-2b3ac9467286",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-03-07T13:26:46.664Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 93,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "single element as list",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "019570c8-680c-2ff0-d650-3ab043e046a1",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

Example 3

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/QbZiVULRSGs",
  "published": "2025-03-07T13:30:21Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/w_x9ONDXotE",
    "published": "2025-03-07T13:30:21Z",
    "content": "two elements as list"
  }
}
mitra
{
  "id": "019570cc-c520-bcff-073e-b64d0a04821b",
  "uri": "http://pasture-one-actor/actor/w_x9ONDXotE",
  "url": "http://pasture-one-actor/actor/w_x9ONDXotE",
  "created_at": "2025-03-07T13:30:21.000Z",
  "edited_at": null,
  "account": {
    "id": "019570c9-7888-5d17-454a-2b3ac9467286",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-03-07T13:26:46.664Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 94,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "two elements as list",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "019570c8-680c-2ff0-d650-3ab043e046a1",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

Example 4

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/e0Y2JG68PSQ",
  "published": "2025-03-07T13:30:23Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/bbfra7-VNLk",
    "published": "2025-03-07T13:30:23Z",
    "content": "a dictionary"
  }
}
mitra
{
  "id": "019570cc-caf6-4c65-75ab-e8f71addbfd0",
  "uri": "http://pasture-one-actor/actor/bbfra7-VNLk",
  "url": "http://pasture-one-actor/actor/bbfra7-VNLk",
  "created_at": "2025-03-07T13:30:23.000Z",
  "edited_at": null,
  "account": {
    "id": "019570c9-7888-5d17-454a-2b3ac9467286",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-03-07T13:26:46.664Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 95,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "a dictionary",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "019570c8-680c-2ff0-d650-3ab043e046a1",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

Example 5

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/3bIgklk1gLg",
  "published": "2025-03-07T13:30:24Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/2U0Ka_gCtS0",
    "published": "2025-03-07T13:30:24Z",
    "content": "a dictionary"
  }
}
mitra
{
  "id": "019570cc-d0d8-7de5-7bb4-99ec6fb78c6c",
  "uri": "http://pasture-one-actor/actor/2U0Ka_gCtS0",
  "url": "http://pasture-one-actor/actor/2U0Ka_gCtS0",
  "created_at": "2025-03-07T13:30:24.000Z",
  "edited_at": null,
  "account": {
    "id": "019570c9-7888-5d17-454a-2b3ac9467286",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-03-07T13:26:46.664Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 96,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "a dictionary",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "019570c8-680c-2ff0-d650-3ab043e046a1",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}