Skip to content

Attachments

In the support table:

  • "✅" means at least one attachment,
  • "-" means parsed
  • "❌" means failed to parse

For more on image attachments see Image Description and Image Attachments.

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/1y9RXMUVuLY",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/8RAunDpyaWo",
    "published": "2024-08-14T10:14:15Z",
    "content": "Link",
    "attachment": {
      "href": "https://funfedi.dev",
      "type": "Link"
    }
  }
}
mastodon
{
  "id": "112959845580446971",
  "created_at": "2024-08-14T10:14:15.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/8RAunDpyaWo",
  "url": "http://pasture-one-actor/actor/8RAunDpyaWo",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Link",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 104,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/PzUa6oFQ78U",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/tSx6uWApYj8",
    "published": "2024-08-14T10:14:16Z",
    "content": "Payment Link, see FEP-0ea0",
    "attachment": {
      "type": "Link",
      "name": "Donate",
      "href": "payto://iban/DE75512108001245126199",
      "rel": "payment"
    }
  }
}
mastodon
{
  "id": "112959845639208580",
  "created_at": "2024-08-14T10:14:16.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/tSx6uWApYj8",
  "url": "http://pasture-one-actor/actor/tSx6uWApYj8",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Payment Link, see FEP-0ea0",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 105,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/3Mqz6gzfx0w",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/Si4LLclC3jk",
    "published": "2024-08-14T10:14:17Z",
    "content": "Text document",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "url": "http://pasture-one-actor/assets/sample.txt"
    }
  }
}
mastodon
{
  "id": "112959845700634295",
  "created_at": "2024-08-14T10:14:17.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/Si4LLclC3jk",
  "url": "http://pasture-one-actor/actor/Si4LLclC3jk",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Text document",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 106,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "112959845698145041",
      "type": "unknown",
      "url": "http://mastodon/media_proxy/112959845698145041/original",
      "preview_url": "http://mastodon/media_proxy/112959845698145041/small",
      "remote_url": "http://pasture-one-actor/assets/sample.txt",
      "preview_remote_url": null,
      "text_url": null,
      "meta": null,
      "description": "text document",
      "blurhash": null
    }
  ],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/zeEZHPSjAYc",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/b3qxh2jA8X8",
    "published": "2024-08-14T10:14:18Z",
    "content": "Text document, href instead of url",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "href": "http://pasture-one-actor/assets/sample.txt"
    }
  }
}
mastodon
{
  "id": "112959845757560194",
  "created_at": "2024-08-14T10:14:18.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/b3qxh2jA8X8",
  "url": "http://pasture-one-actor/actor/b3qxh2jA8X8",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Text document, href instead of url",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 107,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/cAFoNeJ8hNI",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/qniysf9B5Ng",
    "published": "2024-08-14T10:14:19Z",
    "content": "attached note",
    "attachment": {
      "type": "Note",
      "attributedTo": "http://pasture-one-actor/actor",
      "name": "attached note",
      "content": "This is just a note",
      "published": "2024-03-06T07:23:56Z"
    }
  }
}
mastodon
{
  "id": "112959845817212139",
  "created_at": "2024-08-14T10:14:19.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/qniysf9B5Ng",
  "url": "http://pasture-one-actor/actor/qniysf9B5Ng",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "attached note",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 108,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

Example 6

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/b-cNEt4V37M",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/6TalqcnAu_8",
    "published": "2024-08-14T10:14:20Z",
    "content": "Recipe",
    "attachment": {
      "@context": "https://schema.org/docs/jsonldcontext.jsonld",
      "@type": "Recipe",
      "name": "Peanut Butter and Jelly Sandwich",
      "recipeIngredient": [
        "Bread",
        "Peanut Butter",
        "Raspberry Jam",
        "Coffee (optional)"
      ],
      "recipeCategory": "Breakfast",
      "recipeInstructions": [
        {
          "@type": "HowToStep",
          "text": "Take a slice of bread and put it on a plate"
        },
        {
          "@type": "HowToStep",
          "text": "Spread peanut butter on the bread"
        },
        {
          "@type": "HowToStep",
          "text": "Spread raspberry jam on top of the peanut butter"
        },
        {
          "@type": "HowToStep",
          "text": "Eat your PB&J Sandwich and drink your coffee if you have it"
        },
        {
          "@type": "HowToStep",
          "text": "Check if you are still hungry, if yes a repeat step 1"
        }
      ]
    }
  }
}
mastodon
{
  "id": "112959845884307523",
  "created_at": "2024-08-14T10:14:20.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/6TalqcnAu_8",
  "url": "http://pasture-one-actor/actor/6TalqcnAu_8",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Recipe",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 109,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

Example 7

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mastodon/users/hippo"
  ],
  "id": "http://pasture-one-actor/actor/m4mvRth-cPk",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture-one-actor/actor/9Euwv6wslSI",
    "published": "2024-08-14T10:14:21Z",
    "content": "10 images",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/101.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/102.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/103.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/104.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/105.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/106.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/107.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/108.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/109.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/1010.png"
      }
    ]
  }
}
mastodon
{
  "id": "112959845955336450",
  "created_at": "2024-08-14T10:14:21.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/9Euwv6wslSI",
  "url": "http://pasture-one-actor/actor/9Euwv6wslSI",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "10 images",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112959820001171702",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-08-14T00:00:00.000Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 110,
    "last_status_at": "2024-08-14",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "112959845944842812",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/944/842/812/original/e981e8c962de86a6.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/944/842/812/small/e981e8c962de86a6.png",
      "remote_url": "http://pasture-one-actor/images/101.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U2EXXZ?[fQ?[?[j[fQj[fQfQfQfQ?[j[fQj["
    },
    {
      "id": "112959845947489443",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/947/489/443/original/c9dc76a2d5ab4133.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/947/489/443/small/c9dc76a2d5ab4133.png",
      "remote_url": "http://pasture-one-actor/images/102.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U36fbHuhfQuhuhfkfQfkfQfQfQfQuhfkfQfk"
    },
    {
      "id": "112959845949799165",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/949/799/165/original/b64ab5dd5df82bf9.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/949/799/165/small/b64ab5dd5df82bf9.png",
      "remote_url": "http://pasture-one-actor/images/103.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U5O$vv|wfQ|w|wjtfQjtfQfQfQfQ|wjtfQjt"
    },
    {
      "id": "112959845952437003",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/952/437/003/original/eb0263235fbb4bac.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/959/845/952/437/003/small/eb0263235fbb4bac.png",
      "remote_url": "http://pasture-one-actor/images/104.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U06u3g%jfQ%j%jj[fQj[fQfQfQfQ%jj[fQj["
    }
  ],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}