Varying the properties of the Create Activity¶
Example 1: default¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/RjdDfK6fLrQo-OeF",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/pdIaXrrstUKcu3rG",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/pdIaXrrstUKcu3rG",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 2: without published¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/XMVI6fRKHwlYHkRO",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/L4t9P8pH6Zh8ZE2F",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/L4t9P8pH6Zh8ZE2F",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 3: null @context¶
Comments
None is not valid under any of the given schemas
Failed validating 'anyOf' in schema['properties']['@context']:
{'anyOf': [{'type': 'string'}, {'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]}
On instance['@context']:
None
Activity
{
"@context": null,
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/1On0u95PHC8NWLbM",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/ris853WWZQ2bGcnL",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/ris853WWZQ2bGcnL",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 4: null actor¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": null,
"cc": [],
"id": "http://host.test/activities/rs0v8BId09E5ktUQ",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Gu_BxrxLVNBgDE7Q",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Gu_BxrxLVNBgDE7Q",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 5: null id¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": null,
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/fWIw_9lCIHveFYt0",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/fWIw_9lCIHveFYt0",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 6: null published¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/IIgH13Z8x08s7Y4t",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/7axWpK7PnFZ53ZPT",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": null,
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/7axWpK7PnFZ53ZPT",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 7: null to¶
Comments
None is not of type 'array'
Failed validating 'type' in schema['properties']['to']:
{'description': 'Array of actors this activity or object is addressed '
'to',
'examples': [['https://bob.example'],
['https://alice.example', 'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'}
On instance['to']:
None
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/aieurbAme3fsC9sE",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Pi4qGnqgQYk4uEQR",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": null,
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Pi4qGnqgQYk4uEQR",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 8: null cc¶
Comments
None is not of type 'array'
Failed validating 'type' in schema['properties']['cc']:
{'default': [],
'description': 'Array of actors this activity or object is carbon '
'copied to.',
'examples': [['https://bob.example'],
['https://alice.example', 'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'}
On instance['cc']:
None
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": null,
"id": "http://host.test/activities/gg3vnMSqr-rRXqcx",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/BLe8D7DRQ1fwFktS",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/BLe8D7DRQ1fwFktS",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 9: null type¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/zycknMOstdcIPQi9",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/1ImFjv205CGCOfLG",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": null
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/1ImFjv205CGCOfLG",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 10: without @context¶
Comments
'@context' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'actor': 'http://host.test/some/actor',
'id': 'http://host.test/activities/bqY9qQUkRRHKvAmE',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/_Ag7CocE3nlIrfa9',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'type': 'Create'}
Activity
{
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/gtLWEjvFA1NWvPxd",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/EN2rFmJhp6apMP4D",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/EN2rFmJhp6apMP4D",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 11: without actor¶
Comments
'actor' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/activities/u_bpbcplVroGJwWX',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/VQ9Lfgtw66im7TeV',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"cc": [],
"id": "http://host.test/activities/tvtJmugmVg4JM5nI",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/jCqA4gALT4jBZ0Xb",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/jCqA4gALT4jBZ0Xb",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 12: without id¶
Comments
'id' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'@context': ['https://www.w3.org/ns/activitystreams'],
'actor': 'http://host.test/some/actor',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/mXW7twaYdK8O37Lh',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/H1z5TGM3k9OlGvq8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/H1z5TGM3k9OlGvq8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 13: without to¶
Comments
'to' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'@context': ['https://www.w3.org/ns/activitystreams'],
'actor': 'http://host.test/some/actor',
'id': 'http://host.test/activities/vz6mJ35LG3HbLA1N',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/8xrSfJfw8dplxM5l',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/JG6CJ_7fNfGmAhKW",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/f50d3KnRBSoskGLK",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/f50d3KnRBSoskGLK",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 14: without cc¶
Comments
'cc' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'@context': ['https://www.w3.org/ns/activitystreams'],
'actor': 'http://host.test/some/actor',
'id': 'http://host.test/activities/ZSH6KBWDZpezWfQA',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/XsXmVfRvGKRoXtHx',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"id": "http://host.test/activities/h_eoZyySycC0mBx7",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/QmNOy6nRBwY2Mh-L",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/QmNOy6nRBwY2Mh-L",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 15: without type¶
Comments
'type' is a required property
Failed validating 'required' in schema:
{'additionalProperties': True,
'description': 'Draft of a schema for ActivityPub activities',
'properties': {'@context': {'anyOf': [{'type': 'string'},
{'items': {}, 'type': 'array'}],
'examples': ['https://www.w3.org/ns/activitystreams',
['https://www.w3.org/ns/activitystreams',
{'Hashtag': 'as:Hashtag'}]]},
'id': {'description': 'id of the activity or object',
'examples': ['https://actor.example/some_id'],
'type': 'string'},
'to': {'description': 'Array of actors this activity '
'or object is addressed to',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'minItems': 1,
'type': 'array'},
'cc': {'default': [],
'description': 'Array of actors this activity '
'or object is carbon copied to.',
'examples': [['https://bob.example'],
['https://alice.example',
'https://bob.example']],
'items': {'type': 'string'},
'type': 'array'},
'published': {'description': 'Moment of this activity '
'or object being '
'published',
'format': 'date-time',
'type': 'string'},
'type': {'description': 'Type of the activity or '
'activity',
'examples': ['Follow',
'Accept',
'Create',
'Undo',
'Like',
'Note'],
'type': 'string'},
'actor': {'description': 'id of the actor performing '
'this activity',
'examples': ['https://actor.example/'],
'type': 'string'},
'object': {'anyOf': [{'type': 'string'},
{'type': 'object'}]},
'target': {'anyOf': [{'type': 'string'},
{'additionalProperties': True,
'type': 'object'}],
'description': 'The target, e.g. for an Add '
'activity',
'examples': ['https://other.example/target_id',
{'content': 'meow',
'type': 'Note'}]},
'content': {'description': 'The content used for '
'example to represent the '
'Emote for a like',
'examples': ['🐮', '❤️'],
'type': 'string'}},
'required': ['@context', 'id', 'to', 'type', 'actor', 'cc'],
'title': 'Activity',
'type': 'object'}
On instance:
{'@context': ['https://www.w3.org/ns/activitystreams'],
'actor': 'http://host.test/some/actor',
'id': 'http://host.test/activities/PFIGSXYI8WDKwdGl',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/lj1SyR3VUo2B_Nac',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-08T07:53:32Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': []}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/TlCTuElgxUi4_AVy",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/iGRnwv1-YkWz6J4s",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
]
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/iGRnwv1-YkWz6J4s",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 16: as list actor¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": [
"http://host.test/some/actor"
],
"cc": [],
"id": "http://host.test/activities/B6yqp5cBkOwWKzYZ",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/6ytyneIZzbpkJJm8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/6ytyneIZzbpkJJm8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 17: as list published¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/JjrucJuY8xjmCHti",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/ZZRl7G2Vd_Z2UhCZ",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": [
"2026-04-08T07:53:32Z"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/ZZRl7G2Vd_Z2UhCZ",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 18: as list object¶
Comments
[{'@context': ['https://www.w3.org/ns/activitystreams'], 'id': 'http://host.test/objects/_WmMKHCnrfyqPXZX', 'type': 'Note', 'attributedTo': 'http://host.test/some/actor', 'to': ['https://www.w3.org/ns/activitystreams#Public', 'http://other.test/some/actor'], 'cc': [], 'published': '2026-04-08T07:53:32Z', 'content': 'text', 'tag': [{'type': 'Mention', 'href': 'http://other.test/some/actor'}]}] is not valid under any of the given schemas
Failed validating 'anyOf' in schema['properties']['object']:
{'anyOf': [{'type': 'string'}, {'type': 'object'}]}
On instance['object']:
[{'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/_WmMKHCnrfyqPXZX',
'type': 'Note',
'attributedTo': 'http://host.test/some/actor',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'published': '2026-04-08T07:53:32Z',
'content': 'text',
'tag': [{'type': 'Mention', 'href': 'http://other.test/some/actor'}]}]
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/XiLIpc54z1be4o1N",
"object": [
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Lwg4QBp3Wtkm-7R6",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
],
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/Lwg4QBp3Wtkm-7R6",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 19: as list type¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/s6ce8hweIAasxgJn",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/e0-Yd1unZqsp5RU8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": [
"Create"
]
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/e0-Yd1unZqsp5RU8",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}
Example 20: embedded_actor¶
Comments
{'type': 'Person', 'id': 'http://host.test/some/actor', 'summary': 'this is a stub'} is not of type 'string'
Failed validating 'type' in schema['properties']['actor']:
{'description': 'id of the actor performing this activity',
'examples': ['https://actor.example/'],
'type': 'string'}
On instance['actor']:
{'type': 'Person',
'id': 'http://host.test/some/actor',
'summary': 'this is a stub'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": {
"id": "http://host.test/some/actor",
"summary": "this is a stub",
"type": "Person"
},
"cc": [],
"id": "http://host.test/activities/d-HP7L4HfaYFM_Kt",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/HBGYHFd_TN_Y6tfu",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
},
"published": "2026-04-08T07:53:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/HBGYHFd_TN_Y6tfu",
"published": "2026-04-08T07:53:32Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}