Profiles
People
actor-service
Somebody with an account, at their username (people.md): their own posts and replies, who may quote them, the photos and videos they are tagged in, and what they show of their reposts. A person is made by signing up (auth-service), not here.
People
/people/Those the viewer may see. Each a full profile, or, for one the viewer may only ask to follow, what a stranger is shown of it (restricted).
Who: Anyone, signed in or not
Parameters
startintegerin queryHow many to pass over. At least 0.limitintegerin queryThe most to send. At least 0.20unless given.qstringin queryWords the name, the handle or the description holds. At most 100 characters.orderingstringin queryWhat they are ordered by. At most 15 characters. One ofcreated_at,updated_at,enabled.updated_atunless given.dirstringin queryWhich way the order runs. At most 4 characters. One ofasc,desc.descunless given.disabledbooleanin queryDisabled ones as well, for whoever may see them.featuredbooleanin queryOnly the actors the installation features — what onboarding offers a new member to follow. Ordered most recently featured first unless the caller asks for an ordering; see the browse handlers.
Answers
- 200OKobject application/json
- 400the request is not well formed, or a value in it is not one it may be
- 403the viewer may not list people
Request
curl "https://api.example.org/people/"
const response = await fetch('https://api.example.org/people/', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/people/",
)
answer = response.json()
Answer · 200
{
"data": [
null
],
"pagination": {
"limit": 1,
"offset": 1,
"total": 1
}
}
Change who may quote a person's posts
/people/{id}/quote-policyFor the posts that do not say.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.
Body application/json or application/x-www-form-urlencoded or multipart/form-data
quote_policystringrequiredWho may quote their posts, when a post does not say:anyone,followersornobody. At most 16 characters.
Answers
- 200OKactor.PersonNode application/json
- 400
quote_policy_invalid, or not well formedRefusal application/json - 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such person
Request
curl -X PATCH "https://api.example.org/people/<id>/quote-policy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"quote_policy": "string"
}'
const response = await fetch('https://api.example.org/people/<id>/quote-policy', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"quote_policy": "string"
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/quote-policy",
headers={"Authorization": f"Bearer {token}"},
json={
"quote_policy": "string"
},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Show reposts among a person's posts, or not
/people/{id}/reposts-on-profileThey are always in the Reposts tab of the profile.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.
Body application/json or application/x-www-form-urlencoded or multipart/form-data
show_reposts_on_profilebooleanWhether what they repost is also among their profile's posts.
Answers
- 200OKactor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such person
Request
curl -X PATCH "https://api.example.org/people/<id>/reposts-on-profile" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"show_reposts_on_profile": false
}'
const response = await fetch('https://api.example.org/people/<id>/reposts-on-profile', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"show_reposts_on_profile": false
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/reposts-on-profile",
headers={"Authorization": f"Bearer {token}"},
json={
"show_reposts_on_profile": False
},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Remove a person as spam
/people/{id}/spamA moderator's decision (roadmap row 102): everything of it destroyed at once, with no thirty days, and recorded as removed-as-spam with who decided. Administrators and super administrators; never an administrator's or a super administrator's account, nor one's own. Queued, and done by the sweeper.
Who: An administrator
Parameters
idintegerrequiredin pathThe profile's id.
Answers
- 200purged or queued alreadyPurgeQueued application/json
- 202queuedPurgeQueued application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer is not an administrator
- 409it cannot be removed (
administrator,yourself,not_found,wrong_type); nothing was queuedPurgeRefused application/json
Request
curl -X POST "https://api.example.org/people/<id>/spam" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/spam', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/people/<id>/spam",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"batch_id": "string",
"queued": 1,
"skipped": 1
}
Tag somebody in a photo or a video
/people/{id}/tags/{post_id}For the post's author. Only a person here may be tagged, and as they chose: at once, each approved first (the default), or not at all. Anybody may tag themselves. At most 20 people in one post.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.post_idintegerrequiredin pathThe photo's or the video's id.
Answers
- 201tagged
- 202tagged, waiting for their approval
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer did not write the post
- 404no such person, or no such photo or video the viewer can see
- 409
not_taggable, they do not allow it or are not here;too_many, the post has as many people as it mayRefusal application/json
Request
curl -X POST "https://api.example.org/people/<id>/tags/<post_id>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/tags/<post_id>', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/people/<id>/tags/<post_id>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Approve being tagged
/people/{id}/tags/{post_id}For the person tagged.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.post_idintegerrequiredin pathThe photo's or the video's id.
Answers
- 200approved, or it was already
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer is not the person tagged
- 404no such tag, or no such photo or video the viewer can see
Request
curl -X PUT "https://api.example.org/people/<id>/tags/<post_id>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/tags/<post_id>', {
method: 'PUT',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.put(
"https://api.example.org/people/<id>/tags/<post_id>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Take somebody out of a photo or a video
/people/{id}/tags/{post_id}For the person, declining or changing their mind, and for the post's author.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.post_idintegerrequiredin pathThe photo's or the video's id.
Answers
- 204removed, or there was nothing to remove
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer is neither the person nor the post's author
- 404there is no such photo or video the viewer can see
Request
curl -X DELETE "https://api.example.org/people/<id>/tags/<post_id>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/tags/<post_id>', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/people/<id>/tags/<post_id>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
One person
/people/{username}By their username. To somebody they are not open to, but who may ask to follow them, what a stranger is shown of them.
Who: Anyone, signed in or not
Parameters
usernamestringrequiredin pathTheir username. At most 100 characters.
Answers
- 200them, or what a stranger is shown of them (LimitedActor)actor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 403the viewer may not see them
- 404there is no such person
Request
curl "https://api.example.org/people/<username>"
const response = await fetch('https://api.example.org/people/<username>', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/people/<username>",
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Change a person's profile
/people/{username}Who: Somebody signed in
Parameters
usernameintegerrequiredin pathHere, theid. The person's id.
Body application/x-www-form-urlencoded or multipart/form-data
bodystringWhat they say of themselves. At most 500 characters.languagestringThe language this person usually posts in, as a BCP 47 tag. It is what the composer starts on; each post can say otherwise. At most 12 characters.namestringrequiredTheir name. At most 64 characters.person_pronounsstringTheir pronouns, as free text:she/her,iel. At most 50 characters.website_urlstring (uri)One link on the profile. A bareexample.comis taken as https. At most 255 characters.
Answers
- 200OKactor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such person
Request
curl -X PATCH "https://api.example.org/people/<username>" \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode "body=string" \
--data-urlencode "language=en" \
--data-urlencode "name=string" \
--data-urlencode "person_pronouns=string" \
--data-urlencode "website_url=https://example.org/"
const form = new URLSearchParams();
form.append('body', "string");
form.append('language', "en");
form.append('name', "string");
form.append('person_pronouns', "string");
form.append('website_url', "https://example.org/");
const response = await fetch('https://api.example.org/people/<username>', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}` },
body: form,
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<username>",
headers={"Authorization": f"Bearer {token}"},
data={"body": "string", "language": "en", "name": "string", "person_pronouns": "string", "website_url": "https://example.org/"},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Destroy many persons for good
/people/purge-batchAs purging one, for up to 500 at once.
Who: A super administrator, who has just proved who they are again
Body application/json
confirmstringrequiredPURGEand how many there are (PURGE 12), typed, to say it is meant. At most 20 characters.idslist of integerrequiredThe profiles: up to 500. At least 1 of them. At most 500 of them.
Answers
- 200purged or queued alreadyPurgeQueued application/json
- 202queuedPurgeQueued application/json
- 400
confirmation_mismatch:confirmdoes not name how many there are; or not well formed, without a bodyRefusal application/json - 401no token, or one that has expired
- 403
step_up_required: the viewer must prove who they are again first; or the viewer may not, without a bodyRefusal application/json - 409some cannot be purged; nothing was queuedPurgeRefused application/json
Request
curl -X POST "https://api.example.org/people/purge-batch" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"confirm": "string",
"ids": [
1
]
}'
const response = await fetch('https://api.example.org/people/purge-batch', {
method: 'POST',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"confirm": "string",
"ids": [
1
]
}),
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/people/purge-batch",
headers={"Authorization": f"Bearer {token}"},
json={
"confirm": "string",
"ids": [
1
]
},
)
answer = response.json()
Answer · 200
{
"batch_id": "string",
"queued": 1,
"skipped": 1
}
How far a purge has got
/people/purge-batch/{batch_id}Asked every few seconds. Changes nothing, and needs no proof.
Who: A super administrator
Parameters
batch_idstring (uuid)requiredin pathWhat the purge request answered asbatch_id.
Answers
- 200OKPurgeProgress application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer is not a super administrator
- 404there is no such purge
Request
curl "https://api.example.org/people/purge-batch/<batch_id>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/purge-batch/<batch_id>', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/people/purge-batch/<batch_id>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"batch_id": "string",
"done": 1,
"failed": 1,
"items": [
{
"alias": "string",
"error": "string",
"id": 42,
"status": "string"
}
],
"queued": 1,
"total": 1
}
Who is in a photo or a video
/people/tagged-in/{post_id}In the order they were tagged. A tag waiting for the person's approval is listed only for them and the post's author, with pending.
Who: Anyone, signed in or not
Parameters
post_idintegerrequiredin pathThe photo's or the video's id.
Answers
- 200OKobject application/json
- 400the request is not well formed, or a value in it is not one it may be
- 404there is no such photo or video the viewer can see
Request
curl "https://api.example.org/people/tagged-in/<post_id>"
const response = await fetch('https://api.example.org/people/tagged-in/<post_id>', {
method: 'GET',
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/people/tagged-in/<post_id>",
)
answer = response.json()
Answer · 200
{
"data": [
{
"pending": false,
"person": null
}
]
}
As every profile
The same on every kind, at this kind’s address. What each does is under Profiles.
Change who may see it
/people/{id}/accessAnd whether people it is not open to may ask to follow it.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.
Body application/x-www-form-urlencoded or multipart/form-data
accessstringrequiredWho may see their profile:public,registered,followers,leaders,mutualsormyself. One ofpublic,registered,followers,leaders,mutuals,myself.publicunless given.allow_follow_requestbooleanWhether people it is not open to may ask to follow them.
Answers
- 200OKactor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such profile
Request
curl -X PATCH "https://api.example.org/people/<id>/access" \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode "access=public" \
--data-urlencode "allow_follow_request=false"
const form = new URLSearchParams();
form.append('access', "public");
form.append('allow_follow_request', "false");
const response = await fetch('https://api.example.org/people/<id>/access', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}` },
body: form,
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/access",
headers={"Authorization": f"Bearer {token}"},
data={"access": "public", "allow_follow_request": "false"},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Archive a person
/people/{id}/archiveFor good, and nothing is destroyed (account-lifecycle.md).
Who: Somebody signed in, who has just proved who they are again
Parameters
idintegerrequiredin pathThe profile's id.
Answers
- 200archived
- 204archived already, or being deleted
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403
step_up_required: the viewer must prove who they are again first; or the viewer may not, without a bodyRefusal application/json - 404there is no such profile
Request
curl -X POST "https://api.example.org/people/<id>/archive" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/archive', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.post(
"https://api.example.org/people/<id>/archive",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
What deleting a person would take with it
/people/{id}/deletion-countsFor the Danger zone, for whoever may delete it.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe profile's id.
Answers
- 200OKactor.PersonDeletionCounts application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not delete it
- 404there is no such profile
Request
curl "https://api.example.org/people/<id>/deletion-counts" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/deletion-counts', {
method: 'GET',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.get(
"https://api.example.org/people/<id>/deletion-counts",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"followers": 1,
"following": 1,
"groups_administered": 1,
"member_since": "string",
"posts": 1,
"replies": 1
}
Change whether new photos and videos may be downloaded
/people/{id}/download-defaultWhat a post starts with; each post can say otherwise.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe profile's id.
Body application/json or application/x-www-form-urlencoded or multipart/form-data
allowbooleanWhether its new photos and videos start out downloadable.
Answers
- 200OKactor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such profile
Request
curl -X PATCH "https://api.example.org/people/<id>/download-default" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"allow": false
}'
const response = await fetch('https://api.example.org/people/<id>/download-default', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"allow": false
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/download-default",
headers={"Authorization": f"Bearer {token}"},
json={
"allow": False
},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Turn a profile on or off
/people/{id}/enabledReversible, site administrators only. Off, it is out of sight and may not act; nothing is deleted.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe profile's id.
Body application/json
enabledbooleanrequiredWhether it is shown and may act. Off, it is out of sight until it is turned on again; nothing is deleted.
Answers
- 200done
- 204it was so already
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not
- 404there is no such profile
- 409
last_super_administratorRefusal application/json
Request
curl -X PATCH "https://api.example.org/people/<id>/enabled" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": false
}'
const response = await fetch('https://api.example.org/people/<id>/enabled', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"enabled": false
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/enabled",
headers={"Authorization": f"Bearer {token}"},
json={
"enabled": False
},
)
answer = response.json()
Feature a profile, or stop
/people/{id}/featuredWhat onboarding offers new members to follow. Super administrators only.
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe profile's id.
Body application/json
featuredbooleanrequiredWhether onboarding offers it to follow.
Answers
- 200done
- 204it was so already
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not
- 404there is no such profile
- 409
not_featurable: it is disabled, archived or deletedRefusal application/json
Request
curl -X PATCH "https://api.example.org/people/<id>/featured" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"featured": false
}'
const response = await fetch('https://api.example.org/people/<id>/featured', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"featured": false
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/featured",
headers={"Authorization": f"Bearer {token}"},
json={
"featured": False
},
)
answer = response.json()
Change what may be posted on it
/people/{id}/featuresEach kind of post, on or off, and who may add it (permissions.md).
Who: Somebody signed in
Parameters
idintegerrequiredin pathThe person's id.
Body application/json
- Each feature as it is to be. An empty list goes back to the installation's defaults.
Answers
- 200OKactor.PersonNode application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403the viewer may not change it
- 404there is no such profile
Request
curl -X PATCH "https://api.example.org/people/<id>/features" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"features": [
{
"add_permissions": [
null
],
"composers": [
"string"
],
"enabled": false,
"node_types": [
"string"
],
"optional": false,
"ordering": 1,
"service": "string"
}
]
}'
const response = await fetch('https://api.example.org/people/<id>/features', {
method: 'PATCH',
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"features": [
{
"add_permissions": [
null
],
"composers": [
"string"
],
"enabled": false,
"node_types": [
"string"
],
"optional": false,
"ordering": 1,
"service": "string"
}
]
}),
});
const answer = await response.json();
import requests
response = requests.patch(
"https://api.example.org/people/<id>/features",
headers={"Authorization": f"Bearer {token}"},
json={
"features": [
{
"add_permissions": [
None
],
"composers": [
"string"
],
"enabled": False,
"node_types": [
"string"
],
"optional": False,
"ordering": 1,
"service": "string"
}
]
},
)
answer = response.json()
Answer · 200
{
"access": "string",
"alias": "string",
"allow_download": false,
"allow_follow_request": false,
"archived_at": "2026-10-27T09:30:00Z",
"author": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"authorized": {
"add_follower": false,
"administration": false,
"audiences": [
"string"
],
"block_from_owner": false,
"comment": false,
"composers": [
"string"
],
"delete": false,
"download": false,
"edit": false,
"hide": false,
"invite": false,
"like": false,
"pin": false,
"quote": false
},
"avatar_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"body": "string",
"cover_urls": {
"key": {
"size": null,
"url": "https://example.org/"
}
},
"created_at": "2026-10-27T09:30:00Z",
"deleted_at": "2026-10-27T09:30:00Z",
"editor": {
"alias": "string",
"avatar_urls": {
"key": null
},
"id": 42,
"name": "string",
"type": "string"
},
"enabled": false,
"featured_at": "2026-10-27T09:30:00Z",
"features": [
{
"add_permissions": [
null
],
"composers": [
null
],
"enabled": false,
"node_types": [
null
],
"optional": false,
"ordering": 1,
"service": "string"
}
],
"follower_count": 1,
"id": 42,
"is_admined_by_viewer": false,
"is_blocked_by_viewer": false,
"is_following_viewer": false,
"is_invited": false,
"is_leading_viewer": false,
"language": "en",
"leader_count": 1,
"name": "string",
"origin_domain": "string",
"permissions": {
"key": "string"
},
"person_pronouns": "string",
"person_type": "string",
"quote_policy": "string",
"show_reposts_on_profile": false,
"type": "string",
"updated_at": "2026-10-27T09:30:00Z",
"uri": "https://example.org/",
"verified": false,
"website_url": "https://example.org/"
}
Destroy a person for good
/people/{id}/purgeEverything of it, at once and with no thirty days. Super administrators only, never on their own profile. Queued, and done by the sweeper.
Who: A super administrator, who has just proved who they are again
Parameters
idintegerrequiredin pathThe profile's id.
Answers
- 200purged or queued alreadyPurgeQueued application/json
- 202queuedPurgeQueued application/json
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403
step_up_required: the viewer must prove who they are again first; or the viewer may not, without a bodyRefusal application/json - 409it cannot be purged; nothing was queuedPurgeRefused application/json
Request
curl -X DELETE "https://api.example.org/people/<id>/purge" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<id>/purge', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/people/<id>/purge",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Answer · 200
{
"batch_id": "string",
"queued": 1,
"skipped": 1
}
Delete a person
/people/{username}It is out of sight at once and destroyed after thirty days, unless it is restored before then.
Who: Somebody signed in, who has just proved who they are again
Parameters
usernameintegerrequiredin pathHere, theid. The person's id.
Answers
- 200it will be deleted
- 400the request is not well formed, or a value in it is not one it may be
- 401no token, or one that has expired
- 403
step_up_required: the viewer must prove who they are again first; or the viewer may not, without a bodyRefusal application/json - 404there is no such profile
Request
curl -X DELETE "https://api.example.org/people/<username>" \
-H "Authorization: Bearer $TOKEN"
const response = await fetch('https://api.example.org/people/<username>', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
});
const answer = await response.json();
import requests
response = requests.delete(
"https://api.example.org/people/<username>",
headers={"Authorization": f"Bearer {token}"},
)
answer = response.json()
Written by Claude, reviewed by Rastin Mehr · About this