Fediverse and Bluesky
The fediverse
activitypub-service
This installation on the fediverse, by ActivityPub: what other servers ask of it and send to it, a person's choice to be on it, finding somebody elsewhere, and the servers it refuses (federation.md). Optional: an installation may not run it.
Where WebFinger is
/.well-known/host-metaAn XRD document (RFC 6415), for servers that look for WebFinger this way.
Who: Anyone, signed in or not
Answers
- 200the XRD documentstring application/xrd+xml
Request
curl "https://api.example.org/.well-known/host-meta"
const response = await fetch('https://api.example.org/.well-known/host-meta', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/.well-known/host-meta",
)
answer = response.json()
Who an account is
/.well-known/webfingerWebFinger (RFC 7033): where another server finds somebody here by their handle.
Who: Anyone, signed in or not
Parameters
resourcestringin queryacct:ana@example.org, or the address of somebody's actor.
Answers
- 200OKactivitypub.JRD application/jrd+json
- 400no resource, or not one that is asked about
- 404nobody here by that name is on the fediverse
Request
curl "https://api.example.org/.well-known/webfinger"
const response = await fetch('https://api.example.org/.well-known/webfinger', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/.well-known/webfinger",
)
answer = response.json()
The old accounts the viewer's account also is
/activitypub/aliasesIts alsoKnownAs: what another server checks before it lets somebody move from there to here.
Who: Somebody signed in
Answers
- 200OKactivitypub.Aliases application/json
- 401no token, or one that has expired
Request
curl "https://api.example.org/activitypub/aliases" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/aliases', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/aliases",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"also_known_as": [
{
"handle": "string",
"uri": "https://example.org/"
}
]
}
Name the old accounts the viewer's account also is
/activitypub/aliasesEach is found on its own server and kept, as a lookup is; the list takes the place of the one before. For somebody on the fediverse; not an account on this site. Their followers' servers are sent their description again.
Who: Somebody signed in
Body application/json
also_known_aslist of string
Answers
- 200OKactivitypub.Aliases application/json
- 400
also_known_as_requiredortoo_many_aliasesRefusal application/json - 401no token, or one that has expired
- 404one could not be found, as for a lookup (
lookup_not_found,lookup_is_herefor one on this site, …), withaliasnaming itactivitypub.AliasRefusal application/json - 409
not_on_fediverseornot_a_personRefusal application/json - 502
lookup_failedRefusal application/json
Request
curl -X PUT "https://api.example.org/activitypub/aliases" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"also_known_as": [
"string"
]
}'
const response = await fetch('https://api.example.org/activitypub/aliases', {
method: 'PUT',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"also_known_as": [
"string"
]
}),
});
const answer = await response.json();
import requests
response = requests.put(
"https://api.example.org/activitypub/aliases",
headers={"Authorization": f"Bearer {token}"},
json={
"also_known_as": [
"string"
]
},
)
answer = response.json()
Answer · 200
{
"also_known_as": [
{
"handle": "string",
"uri": "https://example.org/"
}
]
}
The servers refused
/activitypub/blocksWho: A super administrator
Parameters
qstringin queryWords the name or the reason holds.startintegerin queryHow many to pass over.limitintegerin queryThe most to send: 50 unless asked, 200 at most.
Answers
- 200OKobject application/json
- 401no token, or one that has expired
- 403the viewer may not do this
Request
curl "https://api.example.org/activitypub/blocks" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/blocks', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/blocks",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"data": [
{
"created_at": "2026-10-27T09:30:00Z",
"created_by": 1,
"domain": "string",
"reason": "string"
}
],
"pagination": {
"limit": 1,
"offset": 1,
"total": 1
}
}
Refuse a server, or change why
/activitypub/blocksNothing from it is taken, and nothing is sent to it.
Who: A super administrator
Body application/json
domainstringThe server's name, or an address or a handle on it.reasonstringWhy it is refused.
Answers
- 201CreatedDomainBlock application/json
- 400
domain_required: the request names no server;domain_unreadable: it is not a server's name;domain_is_here: it is this installationRefusal application/json - 401no token, or one that has expired
- 403the viewer may not do this
Request
curl -X POST "https://api.example.org/activitypub/blocks" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"reason": "string"
}'
const response = await fetch('https://api.example.org/activitypub/blocks', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"domain": "string",
"reason": "string"
}),
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/activitypub/blocks",
headers={"Authorization": f"Bearer {token}"},
json={
"domain": "string",
"reason": "string"
},
)
answer = response.json()
Answer · 201
{
"created_at": "2026-10-27T09:30:00Z",
"created_by": 1,
"domain": "string",
"reason": "string"
}
Stop refusing a server
/activitypub/blocks/{domain}Who: A super administrator
Parameters
domainstringrequiredin pathIts name:spam.example.
Answers
- 204done
- 401no token, or one that has expired
- 403the viewer may not do this
- 404it is not refused
Request
curl -X DELETE "https://api.example.org/activitypub/blocks/<domain>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/blocks/<domain>', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/activitypub/blocks/<domain>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Who from other networks is kept here
/activitypub/known-profilesNewest first. q narrows it to the names and handles it is found in. For administrators: these people did not ask to be listed.
Who: An administrator
Parameters
qstringin queryWords the name or the reason holds.startintegerin queryHow many to pass over.limitintegerin queryThe most to send: 50 unless asked, 200 at most.
Answers
- 200OKobject application/json
- 401no token, or one that has expired
- 403the viewer may not do this
Request
curl "https://api.example.org/activitypub/known-profiles" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/known-profiles', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/known-profiles",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"data": [
{
"created_at": "2026-10-27T09:30:00Z",
"follower_count": 1,
"handle": "string",
"id": 42,
"name": "string",
"network": "string",
"type": "string",
"uri": "https://example.org/"
}
],
"pagination": {
"limit": 1,
"offset": 1,
"total": 1
}
}
Find somebody on another server
/activitypub/lookupThey are kept here, so that they can be followed as anybody is. Thirty lookups in ten minutes.
Who: Somebody signed in
Parameters
qstringin queryTheir handle (@alice@mastodon.example) or the address of their profile there.
Answers
- 200OKactivitypub.RemotePerson application/json
- 400
lookup_unreadableRefusal application/json - 401no token, or one that has expired
- 404
lookup_not_found,lookup_is_here,lookup_not_a_personorlookup_refusedRefusal application/json - 409the installation is not on the fediverse:
site_privateorsite_unreachableRefusal application/json - 429
too_many_lookupsRefusal application/json - 502
lookup_failedRefusal application/json
Request
curl "https://api.example.org/activitypub/lookup" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/lookup', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/lookup",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"alias": "string",
"body": "string",
"id": 42,
"locked": false,
"name": "string",
"origin_domain": "string",
"type": "string",
"uri": "https://example.org/",
"url": "https://example.org/"
}
Whether the viewer's account moved
/activitypub/moveTo which account and when, and, within thirty days of a move, when it may move again.
Who: Somebody signed in
Answers
- 200OKactivitypub.MoveStatus application/json
- 401no token, or one that has expired
Request
curl "https://api.example.org/activitypub/move" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/move', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/move",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"may_move_at": "2026-10-27T09:30:00Z",
"moved_at": "2026-10-27T09:30:00Z",
"moved_to": {
"handle": "string",
"uri": "https://example.org/"
}
}
Move the viewer's account to another
/activitypub/moveTo an account elsewhere that names this one in its alsoKnownAs, read afresh. Its description gains movedTo; its followers' servers are sent a Move, and its followers here follow the new account; its profile says where it went. The account can then no longer post, like, follow or tag, until it moves back. Not within thirty days of the last move.
Who: Somebody signed in, who has just proved who they are again
Body application/json
tostring
Answers
- 200OKactivitypub.MoveStatus application/json
- 400
to_requiredRefusal application/json - 401no token, or one that has expired
- 403
step_up_required: the viewer must prove who they are again first (/reauth)Refusal application/json - 404the account could not be found, as for a lookup;
lookup_is_herefor one on this site, which is not moved to: a username is changed insteadRefusal application/json - 409
not_on_fediverse,not_a_person,moved_already,moved_latelyornot_named_there: the new account does not name this oneRefusal application/json - 502
lookup_failedRefusal application/json
Request
curl -X POST "https://api.example.org/activitypub/move" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": "string"
}'
const response = await fetch('https://api.example.org/activitypub/move', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"to": "string"
}),
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/activitypub/move",
headers={"Authorization": f"Bearer {token}"},
json={
"to": "string"
},
)
answer = response.json()
Answer · 200
{
"may_move_at": "2026-10-27T09:30:00Z",
"moved_at": "2026-10-27T09:30:00Z",
"moved_to": {
"handle": "string",
"uri": "https://example.org/"
}
}
Take the viewer's move back
/activitypub/moveThe profile no longer points to the new account, its description no longer says it moved, and the account may post, like and follow again. Its followers stay with the new account; moving from there to here brings them back, which other servers allow only after this. The thirty days before another move still count from the move.
Who: Somebody signed in
Answers
- 200OKactivitypub.MoveStatus application/json
- 401no token, or one that has expired
- 409
not_moved,not_on_fediverseornot_a_personRefusal application/json
Request
curl -X DELETE "https://api.example.org/activitypub/move" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/move', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/activitypub/move",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"may_move_at": "2026-10-27T09:30:00Z",
"moved_at": "2026-10-27T09:30:00Z",
"moved_to": {
"handle": "string",
"uri": "https://example.org/"
}
}
Read somebody on another server again
/activitypub/people/{id}/refreshWhen what was kept of them is more than an hour old: whether they approve their followers, their name, their words, their pictures. Asked by the web app when their profile is opened; refreshed says whether to read the profile again. A failure there leaves what was kept, and says nothing.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id here: somebody kept from another server.
Answers
- 200OKactivitypub.Refreshed application/json
- 401no token, or one that has expired
- 404
profile_not_kept: nobody from another server is kept under that idRefusal application/json - 409the installation is not on the fediverse:
site_privateorsite_unreachableRefusal application/json
Request
curl -X POST "https://api.example.org/activitypub/people/<id>/refresh" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/people/<id>/refresh', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/activitypub/people/<id>/refresh",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"refreshed": false
}
Copy a post's pictures here again
/activitypub/posts/{id}/picturesThe pictures of a post from another server that has been left alone a while are removed from storage, and the post says so (media_removed). Asked here, they are read again from where they came from. For anybody signed in who may see the post.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe post's id here.
Answers
- 200OKPicturesRestored application/json
- 401no token, or one that has expired
- 404
media_not_removed: there is no such post the viewer may see, or its pictures are hereRefusal application/json - 410
media_goneRefusal application/json - 429
too_many_requestsRefusal application/json - 502
media_failedRefusal application/json
Request
curl -X POST "https://api.example.org/activitypub/posts/<id>/pictures" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/posts/<id>/pictures', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/activitypub/posts/<id>/pictures",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"restored": 1
}
The accounts refused
/activitypub/refused-accountsNewest first. q narrows it to the names, handles and reasons it is found in.
Who: An administrator
Parameters
qstringin queryWords the name or the reason holds.startintegerin queryHow many to pass over.limitintegerin queryThe most to send: 50 unless asked, 200 at most.
Answers
- 200OKobject application/json
- 401no token, or one that has expired
- 403the viewer may not do this
Request
curl "https://api.example.org/activitypub/refused-accounts" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/refused-accounts', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/refused-accounts",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"data": [
{
"created_at": "2026-10-27T09:30:00Z",
"created_by": 1,
"handle": "string",
"id": 42,
"identifier": "string",
"name": "string",
"network": "string",
"reason": "string"
}
],
"pagination": {
"limit": 1,
"offset": 1,
"total": 1
}
}
Refuse an account from another network
/activitypub/refused-accountsBy the profile kept here (actor_id), or by a handle or an address (address): @user@server, an actor's address, a Bluesky handle or a DID. Nothing from it is taken, nothing is sent to it, it cannot be looked up or followed, and what is here of it is removed: at once on the fediverse, within a minute on Bluesky.
Who: An administrator
Body application/json
actor_idintegerThe profile kept here.addressstringOr a handle or an address:@user@server, an actor's address, a Bluesky handle or a DID.reasonstringWhy it is refused, for the administrators who come after.
Answers
- 201CreatedRefusedAccount application/json
- 400
account_required: the request names no account;account_unreadable: the address is not oneRefusal application/json - 401no token, or one that has expired
- 403the viewer may not do this
- 404
account_not_foundRefusal application/json - 409
is_local: the profile is this installation's own;already_refused: it, or its server, is refused alreadyRefusal application/json
Request
curl -X POST "https://api.example.org/activitypub/refused-accounts" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"actor_id": 42,
"address": "string",
"reason": "string"
}'
const response = await fetch('https://api.example.org/activitypub/refused-accounts', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"actor_id": 42,
"address": "string",
"reason": "string"
}),
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/activitypub/refused-accounts",
headers={"Authorization": f"Bearer {token}"},
json={
"actor_id": 42,
"address": "string",
"reason": "string"
},
)
answer = response.json()
Answer · 201
{
"created_at": "2026-10-27T09:30:00Z",
"created_by": 1,
"handle": "string",
"id": 42,
"identifier": "string",
"name": "string",
"network": "string",
"reason": "string"
}
Stop refusing an account
/activitypub/refused-accounts/{id}What was removed does not come back: the account can be looked up and followed again.
Who: An administrator
Parameters
idintegerrequiredin pathIts number on the list.
Answers
- 204done
- 401no token, or one that has expired
- 403the viewer may not do this
- 404it is not refused
Request
curl -X DELETE "https://api.example.org/activitypub/refused-accounts/<id>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/refused-accounts/<id>', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/activitypub/refused-accounts/<id>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Whether the viewer is on the fediverse, and could be
/activitypub/settingsWho: Somebody signed in
Parameters
person_idintegerin queryThe person's id, or a website's for one of its administrators. The viewer when left out.
Answers
- 200OKactivitypub.Settings application/json
- 400
person_unreadableRefusal application/json - 401no token, or one that has expired
- 403somebody else's, and the viewer is not a site administrator, nor an administrator of the website asked about
- 404there is no such person
Request
curl "https://api.example.org/activitypub/settings" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/activitypub/settings', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/activitypub/settings",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"actor": "string",
"available": false,
"discoverable": false,
"enabled": false,
"handle": "string",
"indexable": false,
"reason": "string"
}
Go on the fediverse, or leave it
/activitypub/settingsIt is each person's own choice, off until they make it, and only for somebody whose profile is open to everybody. A website's is its administrators' (?person_id= with its id).
Who: Somebody signed in
Body application/json
discoverablebooleanWhether other servers may list them in their directories.enabledbooleanWhether the viewer is on the fediverse from now on. Leaving tells the servers that knew them, and some of those do not take them back (federation.md).indexablebooleanWhether other servers may find them in search.
Answers
- 200OKactivitypub.Settings application/json
- 400
enabled_required: nothing to change;person_unreadableRefusal application/json - 401no token, or one that has expired
- 403somebody else's, and the viewer is not an administrator of the website asked about
- 409why they cannot be:
site_private,site_unreachableorprofile_not_public;movedfor leaving an account that moved away, which would take the way to the new one with itRefusal application/json
Request
curl -X PUT "https://api.example.org/activitypub/settings" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"discoverable": false,
"enabled": false,
"indexable": false
}'
const response = await fetch('https://api.example.org/activitypub/settings', {
method: 'PUT',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"discoverable": false,
"enabled": false,
"indexable": false
}),
});
const answer = await response.json();
import requests
response = requests.put(
"https://api.example.org/activitypub/settings",
headers={"Authorization": f"Bearer {token}"},
json={
"discoverable": False,
"enabled": False,
"indexable": False
},
)
answer = response.json()
Answer · 200
{
"actor": "string",
"available": false,
"discoverable": false,
"enabled": false,
"handle": "string",
"indexable": false,
"reason": "string"
}
The installation itself
/ap/actorFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). The actor that signs what the installation asks of other servers.
Who: Anyone, signed in or not
Answers
- 200OKactivitypub.Actor application/activity+json
- 404the installation is not on the fediverse
- 503its key cannot be read now
Request
curl "https://api.example.org/ap/actor"
const response = await fetch('https://api.example.org/ap/actor', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/actor",
)
answer = response.json()
A post, as other servers see it
/ap/notes/{uuid}For other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). A Note, of somebody on the fediverse, open to everybody.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathThe post's UUID.
Answers
- 200OKactivitypub.Note application/activity+json
- 404there is no such post that went out
Request
curl "https://api.example.org/ap/notes/<uuid>"
const response = await fetch('https://api.example.org/ap/notes/<uuid>', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/notes/<uuid>",
)
answer = response.json()
A picture of a post
/ap/notes/{uuid}/pictures/{position}For a server that was sent the post: a redirect to the picture in storage.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathThe post's UUID.positionintegerrequiredin pathWhich picture, from 0.
Answers
- 302the picture is at the address in Location
- 404there is no such picture of a post that went out
Request
curl "https://api.example.org/ap/notes/<uuid>/pictures/<position>"
const response = await fetch('https://api.example.org/ap/notes/<uuid>/pictures/<position>', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/notes/<uuid>/pictures/<position>",
)
answer = response.json()
The poster of a video post
/ap/notes/{uuid}/posterFor a server that was sent the post: a redirect to the picture in storage.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathThe post's UUID.
Answers
- 302the picture is at the address in Location
- 404there is no such video of a post that went out
Request
curl "https://api.example.org/ap/notes/<uuid>/poster"
const response = await fetch('https://api.example.org/ap/notes/<uuid>/poster', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/notes/<uuid>/poster",
)
answer = response.json()
The video of a post
/ap/notes/{uuid}/videoFor a server that was sent the post: a redirect to the file in storage.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathThe post's UUID.
Answers
- 302the file is at the address in Location
- 404there is no such video of a post that went out
Request
curl "https://api.example.org/ap/notes/<uuid>/video"
const response = await fetch('https://api.example.org/ap/notes/<uuid>/video', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/notes/<uuid>/video",
)
answer = response.json()
Somebody here, as other servers see them
/ap/users/{uuid}For other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). A Person, or an Organization for a Website, with their public key.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathTheir UUID, as other servers know them.
Answers
- 200OKactivitypub.Actor application/activity+json
- 404nobody here by that name is on the fediverse
- 503their key cannot be read now
Request
curl "https://api.example.org/ap/users/<uuid>"
const response = await fetch('https://api.example.org/ap/users/<uuid>', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/users/<uuid>",
)
answer = response.json()
How many follow them
/ap/users/{uuid}/followersFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). A collection with its count and no items.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathTheir UUID, as other servers know them.
Answers
- 200OKactivitypub.Collection application/activity+json
- 404nobody here by that name is on the fediverse
Request
curl "https://api.example.org/ap/users/<uuid>/followers"
const response = await fetch('https://api.example.org/ap/users/<uuid>/followers', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/users/<uuid>/followers",
)
answer = response.json()
How many they follow
/ap/users/{uuid}/followingFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). A collection with its count and no items.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathTheir UUID, as other servers know them.
Answers
- 200OKactivitypub.Collection application/activity+json
- 404nobody here by that name is on the fediverse
Request
curl "https://api.example.org/ap/users/<uuid>/following"
const response = await fetch('https://api.example.org/ap/users/<uuid>/following', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/users/<uuid>/following",
)
answer = response.json()
Take an activity from another server
/ap/users/{uuid}/inboxFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). Signed with HTTP Signatures; what is not signed by whoever is said to have done it is not believed. Six hundred a minute from one address. Taken, whether or not anything is done with it.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathTheir UUID, as other servers know them.
Body application/activity+json
anythingAnswers
- 202taken
- 400the request is not well formed, or a value in it is not one it may be
- 401not signed, or the signature does not check, or not by whoever is said to have done it
- 403the server it came from is refused
- 404nobody here by that name is on the fediverse
- 413too large
- 429too many from one address
- 503it could not be kept now; send it again
Request
curl -X POST "https://api.example.org/ap/users/<uuid>/inbox"
const response = await fetch('https://api.example.org/ap/users/<uuid>/inbox', {
method: 'POST',
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/ap/users/<uuid>/inbox",
)
answer = response.json()
How many posts they have sent out
/ap/users/{uuid}/outboxFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). A collection with its count and no items.
Who: Anyone, signed in or not
Parameters
uuidstringrequiredin pathTheir UUID, as other servers know them.
Answers
- 200OKactivitypub.Collection application/activity+json
- 404nobody here by that name is on the fediverse
- 503it cannot be counted now
Request
curl "https://api.example.org/ap/users/<uuid>/outbox"
const response = await fetch('https://api.example.org/ap/users/<uuid>/outbox', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/ap/users/<uuid>/outbox",
)
answer = response.json()
Take an activity from another server
/inboxFor other servers, in ActivityStreams (https://www.w3.org/TR/activitystreams-vocabulary/ (opens in a new tab)). Signed with HTTP Signatures; what is not signed by whoever is said to have done it is not believed. Six hundred a minute from one address. Taken, whether or not anything is done with it.
Who: Anyone, signed in or not
Body application/activity+json
anythingAnswers
- 202taken
- 400the request is not well formed, or a value in it is not one it may be
- 401not signed, or the signature does not check, or not by whoever is said to have done it
- 403the server it came from is refused
- 404nobody here by that name is on the fediverse
- 413too large
- 429too many from one address
- 503it could not be kept now; send it again
Request
curl -X POST "https://api.example.org/inbox"
const response = await fetch('https://api.example.org/inbox', {
method: 'POST',
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/inbox",
)
answer = response.json()
Written by Claude, reviewed by Rastin Mehr · About this