Varying the properties of the Create Activity¶
Example 1: default¶
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"id": "http://host.test/activities/SKTyinj-nYrkO_h4",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/QNWbiBGl12K1TGUC",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/QNWbiBGl12K1TGUC",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/kgV-oPvlQYsd7Lxm",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/iCZMt696AeXwu3QO",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/iCZMt696AeXwu3QO",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/BXedXNs1l9l7DvvX",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/489mHa96eW7KPlnK",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/489mHa96eW7KPlnK",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
}
Example 4: null actor¶
Comments
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": null,
"id": "http://host.test/activities/gCiA3vfV8VfrJ4Fp",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/QsPXYQObFyplJkcz",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/QsPXYQObFyplJkcz",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": null,
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/TXr3X8kiuERDSt7N",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/TXr3X8kiuERDSt7N",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/TIIaEolxCcb0KnbG",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/uNusVLOh65XdieA0",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": null,
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/uNusVLOh65XdieA0",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/jYUNmy0i12EUdjBc",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/Dr7nStuRujlkI3YM",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": null,
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/Dr7nStuRujlkI3YM",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/UrMyD2bWG5-4LJqI",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/nS8WFheVBlEnhIZ-",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": null,
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/nS8WFheVBlEnhIZ-",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/8FsQzmHmaG10WJch",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/gH9GE7l1f5mJCde_",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": null
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/gH9GE7l1f5mJCde_",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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/cowGIx5GX_fRVkem',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/KVplTvINtYGyVMB9',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'type': 'Create'}
Activity
{
"actor": "http://host.test/some/actor",
"id": "http://host.test/activities/4fku_de4DSWi4iEa",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/x40g0E5svzweGiDl",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/x40g0E5svzweGiDl",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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/XSHefw5muMg08hNf',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/prJwIEks38X9ZR6R',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"id": "http://host.test/activities/cTuEbD8kGNULC0i-",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/q31YsNYt5MQADy66",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/q31YsNYt5MQADy66",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/_EcmfrEeSFaJfK3x',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'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",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/KxYlcn7H4ctv4HBM",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/KxYlcn7H4ctv4HBM",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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/xL53EQ9J76AZcpxA',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/5H3WI9s3s-9eYt9-',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"id": "http://host.test/activities/pWN49TgMceP37fUE",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/1YrSq7gMw5z4p-Zv",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/1YrSq7gMw5z4p-Zv",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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/rDYEIxcFBXKu9h_-',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/77E6MTNNaPo9Kfs5',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'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/2UObvjjUcUwOJIau",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/wcWT7_O8lvQgfOz0",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"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",
"content": "text",
"id": "http://host.test/objects/wcWT7_O8lvQgfOz0",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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/8Gc_UiRprPEpf8kv',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/7xO6kuLo6kdxZ1QV',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}],
'type': 'Note'},
'published': '2025-12-23T10:32:31Z',
'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",
"id": "http://host.test/activities/YcS19Og6gEck7D3p",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/5Y1Xp7eUwVCCfJam",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": []
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/5Y1Xp7eUwVCCfJam",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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"
],
"id": "http://host.test/activities/idxZmRcxep4SglBH",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/Lg66ydcOZfnrwBlI",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/Lg66ydcOZfnrwBlI",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/34nmSbxwcJHNz90x",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/M5OmyF3Ym9zcO23e",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": [
"2025-12-23T10:32:31Z"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/M5OmyF3Ym9zcO23e",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
}
Example 18: as list object¶
Comments
[{'@context': ['https://www.w3.org/ns/activitystreams'], 'attributedTo': 'http://host.test/some/actor', 'content': 'text', 'id': 'http://host.test/objects/ScfmeV55E4R2W52M', 'published': '2025-12-23T10:32:31Z', 'to': ['https://www.w3.org/ns/activitystreams#Public', 'http://other.test/some/actor'], 'cc': [], 'tag': [{'type': 'Mention', 'href': 'http://other.test/some/actor'}], 'type': 'Note'}] 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'],
'attributedTo': 'http://host.test/some/actor',
'content': 'text',
'id': 'http://host.test/objects/ScfmeV55E4R2W52M',
'published': '2025-12-23T10:32:31Z',
'to': ['https://www.w3.org/ns/activitystreams#Public',
'http://other.test/some/actor'],
'cc': [],
'tag': [{'type': 'Mention', 'href': 'http://other.test/some/actor'}],
'type': 'Note'}]
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"id": "http://host.test/activities/JvJCU_ym2TgCpEwd",
"object": [
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/lfrdzehJiKNUYzJn",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
}
],
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/lfrdzehJiKNUYzJn",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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",
"id": "http://host.test/activities/qT8rqvHoGk5fZknE",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/f_iQNcVebt5e-45I",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": [
"Create"
]
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/f_iQNcVebt5e-45I",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "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": {
"type": "Person",
"id": "http://host.test/some/actor",
"summary": "this is a stub"
},
"id": "http://host.test/activities/iLo5LB7W8ntROyTr",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/mh1kHFe6QdMk8o0R",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
},
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"content": "text",
"id": "http://host.test/objects/mh1kHFe6QdMk8o0R",
"published": "2025-12-23T10:32:31Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"cc": [],
"tag": [
{
"type": "Mention",
"href": "http://other.test/some/actor"
}
],
"type": "Note"
}