Last active
January 17, 2023 01:57
-
-
Save drazisil/0d47d4956a9924683d187f622a08225e to your computer and use it in GitHub Desktop.
An example ActivityPub JSON message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"https://www.w3.org/ns/activitystreams", | |
{ | |
"ostatus": "http://ostatus.org#", | |
"atomUri": "ostatus:atomUri", | |
"inReplyToAtomUri": "ostatus:inReplyToAtomUri", | |
"conversation": "ostatus:conversation", | |
"sensitive": "as:sensitive", | |
"toot": "http://joinmastodon.org/ns#", | |
"votersCount": "toot:votersCount" | |
} | |
], | |
"id": "<valid actor uri>/statuses/<status id>/activity", | |
"type": "Create", | |
"actor": "<valid actor uri>", | |
"published": "2023-01-16T17:29:48Z", | |
"to": [ | |
"<valid actor uri>/followers" | |
], | |
"cc": [ | |
"https://www.w3.org/ns/activitystreams#Public", | |
"<valid actor uri>", | |
"<valid actor uri>" | |
], | |
"object": { | |
"id": "<valid actor uri>/statuses/<status id>", | |
"type": "Note", | |
"summary": null, | |
"inReplyTo": "<valid actor uri>/statuses/<parent status id>", | |
"published": "2023-01-16T17:29:48Z", | |
"url": "<human-readable url>", | |
"attributedTo": "<valid actor uri>", | |
"to": [ | |
"<valid actor uri>/followers" | |
], | |
"cc": [ | |
"https://www.w3.org/ns/activitystreams#Public", | |
"<valid actor uri>", | |
"<valid actor uri>" | |
], | |
"sensitive": false, | |
"atomUri": "<valid actor uri>/statuses/<status id>", | |
"inReplyToAtomUri": "<valid actor uri>/statuses/<parent status id>", | |
"conversation": "tag:<server uri>,2023-01-16:objectId=148803:objectType=Conversation", | |
"content": "<UTF-16 encoded content>", | |
"contentMap": { | |
"en": "<UTF-16 encoded content in the en language code>" | |
}, | |
"attachment": [], | |
"tag": [ | |
{ | |
"type": "Mention", | |
"href": "<valid actor uri>", | |
"name": "<actor's handle@host>" | |
}, | |
{ | |
"type": "Mention", | |
"href": "<valid actor uri>", | |
"name": "<actor's handle at host>" | |
} | |
], | |
"replies": { | |
"id": "<valid actor uri>/statuses/<status id>/replies", | |
"type": "Collection", | |
"first": { | |
"type": "CollectionPage", | |
"next": "<valid actor uri>/statuses/<status id>/replies?only_other_accounts=true\\u0026page=true", | |
"partOf": "<valid actor uri>/statuses/<status id>/replies", | |
"items": [] | |
} | |
} | |
}, | |
"signature": { | |
"type": "RsaSignature2017", | |
"creator": "<valid actor uri>#main-key", | |
"created": "2023-01-16T17:29:49Z", | |
"signatureValue": "<valid HTTP signature>" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment