Note

By Fediverse Developer Network

https://fedidevs.org/projects/server-apps/communecter/objects/note/

A Note is a standard object in Mastodon used to represent a message or post. It is a text-based content object that can be published by a user on the Mastodon social network.

Properties

PropertyData typeDescription
type*StringThe object type (Note)
id*String (URI)The URI that identifies the note
attributedToString (URI)The URI of the user who posted the note
content*StringThe text content of the note
published*DatetimeThe date and time when the note was published
sensitiveBooleanIndicates if the note content is sensitive
spoilerTextStringThe warning text for hidden content
visibilityStringThe visibility of the note (public, unlisted, private, direct)
mediaAttachmentsArrayAn array of objects representing the media attached to the note
tagArrayAn array of strings representing the tags associated with the note

* Required properties.

Example

{
  "type": "Note",
  "id": "https://communecter.org/api/activitypub/object/id/96a15d71d725c",
  "author": "John Doe",
  "content": "This is an example note in Communecter.",
  "published": "2023-07-02T14:30:00Z",
  "tags": ["community", "event"],
  "attachments": [
    {
      "type": "Image",
      "name": "Photo",
      "url": "https://example.com/images/note.jpg",
      "mediaType": "image/jpeg"
    },
    {
      "type": "Link",
      "name": "Website",
      "url": "https://example.com",
      "mediaType": "text/html"
    }
  ]
}