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/oH3qYB-l-7Pqu24j",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/hnMHBWP9582903Zg",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/hnMHBWP9582903Zg",
"published": "2026-04-14T07:48:43Z",
"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/Stzxizzqw0kVzIE3",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/G3TcUYVue7lKLY-e",
"published": "2026-04-14T07:48:43Z",
"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/G3TcUYVue7lKLY-e",
"published": "2026-04-14T07:48:43Z",
"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/fztDQcLVosiklHQ2",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/bwGSs3ReATmlUsux",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/bwGSs3ReATmlUsux",
"published": "2026-04-14T07:48:43Z",
"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/iRlcY9E4TkHsGQ0a",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/csk4zkw1d-Rnu6U4",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/csk4zkw1d-Rnu6U4",
"published": "2026-04-14T07:48:43Z",
"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/cDaQ6i4bKC6_GAIu",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/cDaQ6i4bKC6_GAIu",
"published": "2026-04-14T07:48:43Z",
"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/imecD4uk2D--egRI",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/_vnXuNqHPW2Jb53Q",
"published": "2026-04-14T07:48:43Z",
"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/_vnXuNqHPW2Jb53Q",
"published": "2026-04-14T07:48:43Z",
"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/Qu2HsvwTtBlwvw9u",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/BwoNQS4YPw-8s5nh",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/BwoNQS4YPw-8s5nh",
"published": "2026-04-14T07:48:43Z",
"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/Zzq0sMXz2I_MaIe9",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/LaJahtrIwtL27ilf",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/LaJahtrIwtL27ilf",
"published": "2026-04-14T07:48:43Z",
"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/CZM6xbkLPuPu88SG",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/sdEUyzw6A0ZVLBoT",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/sdEUyzw6A0ZVLBoT",
"published": "2026-04-14T07:48:43Z",
"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/sgiicBUgQMNJvTMH',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/l3bT5716-K7__1zt',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'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/nrjRqCxTJfpRKLP3",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/n7Q6RaMx6tBygxyE",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/n7Q6RaMx6tBygxyE",
"published": "2026-04-14T07:48:43Z",
"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/DAD8Ma24K7BCi1kE',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/cAkCGAl8jbb5-kKt',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'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/-DImzUb9NYgyjDNB",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/WdICMyHgQxNGXgRX",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/WdICMyHgQxNGXgRX",
"published": "2026-04-14T07:48:43Z",
"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/f93rqV-tkq7a-bl8',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'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/fP8tdx1VQwn40ajk",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/fP8tdx1VQwn40ajk",
"published": "2026-04-14T07:48:43Z",
"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/uyhqEN62yAYu-KRW',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/obVujJFHzpQwnugC',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'cc': [],
'type': 'Create'}
Activity
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"actor": "http://host.test/some/actor",
"cc": [],
"id": "http://host.test/activities/azPFrfpFlkHFam6-",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/H8r-CVSlmSPvora5",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"type": "Create"
}
Object
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/H8r-CVSlmSPvora5",
"published": "2026-04-14T07:48:43Z",
"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/cCXTP6Ih6keqqrx9',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/KURKZQTgcvgmml_Z',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'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/051UaXhQwzfwuWsU",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/FXaDjO7lOa_BwBLE",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/FXaDjO7lOa_BwBLE",
"published": "2026-04-14T07:48:43Z",
"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/i7BWJikAMgxel5fM',
'object': {'@context': ['https://www.w3.org/ns/activitystreams'],
'id': 'http://host.test/objects/lOD3zLRNsKxUHhKp',
'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-14T07:48:42Z',
'content': 'text',
'tag': [{'type': 'Mention',
'href': 'http://other.test/some/actor'}]},
'published': '2026-04-14T07:48:42Z',
'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/M-zMWvkjdHJW2XUm",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/62TbXOGVHr4mHlse",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/62TbXOGVHr4mHlse",
"published": "2026-04-14T07:48:43Z",
"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/VBPxcahLv1FuUtt-",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/9Hoe9S8KXPMfgXib",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/9Hoe9S8KXPMfgXib",
"published": "2026-04-14T07:48:43Z",
"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/P508TiZ_Xx9esqaY",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/syEZQZG4KCOVNSJa",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z"
],
"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/syEZQZG4KCOVNSJa",
"published": "2026-04-14T07:48:43Z",
"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/ij7UobEBDlY45tXY', '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-14T07:48:42Z', '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/ij7UobEBDlY45tXY',
'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-14T07:48:42Z',
'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/aYYyLtItT9iAjz8n",
"object": [
{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/ObAZ6HlxNzmjVkaQ",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/ObAZ6HlxNzmjVkaQ",
"published": "2026-04-14T07:48:43Z",
"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/ZljYJ_mLLmUfESaO",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/HWcTGpRPFTT3UtJ6",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/HWcTGpRPFTT3UtJ6",
"published": "2026-04-14T07:48:43Z",
"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/59dpFXd_Qh9_2ZzF",
"object": {
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"attributedTo": "http://host.test/some/actor",
"cc": [],
"content": "text",
"id": "http://host.test/objects/1dShu9MCjXIBa12Q",
"published": "2026-04-14T07:48:43Z",
"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-14T07:48:43Z",
"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/1dShu9MCjXIBa12Q",
"published": "2026-04-14T07:48:43Z",
"tag": [
{
"href": "http://other.test/some/actor",
"type": "Mention"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://other.test/some/actor"
],
"type": "Note"
}