Lemmy is a decentralized alternative to proprietary link aggregators such as Reddit.
You can either use it to:
Connect to <code>ws://host/api/v2/ws</code> to get started. If the server supports secure connections, you can use wss://**server**/api/v1/ws
.
For example a simple test using websocat might be:
websocat ws://127.0.0.1:8536/api/v2/ws -nt
A simple test command:
{"op": "GetSite", "data": {}}
var ws = new WebSocket("ws://" + host + "/api/v2/ws");
ws.onopen = function () {
console.log("Connection succeed!");
ws.send(JSON.stringify({
op: "GetSite",
data: {}
}));
};
Most API responses generate an immediate and direct (synchronous) response to to the preceding API request: one of an error or a success response. However, for the ‘join’ requests (CommunityJoin, ModJoin, PostJoin and UserJoin), you can also receive one of several ‘as it happens’ (asynchronous) responses.
Lemmy also has an HTTP API which is almost identical to the WebSocket API; however, this WebSocket API is the primary source since it also details the specifics of HTTP API calls.
DS9 test server
Enterprise test server
Voyager test server
Login (request)
Login with username or registered email.
POST /user/login
Accepts the following message:
Username or registered email
Exact password
Additional properties are allowed.
Additional properties are allowed.
Login (response)
Returns an authentication string (jwt
) for the supplied username or email.
The JWT claim is in the following format:
Claims {
// local_user_id, standard claim by RFC 7519.
sub: i32,
iss: String,
// Time when this token was issued as UNIX-timestamp in seconds
iat: i64,
}
Accepts one of the following messages:
The authentication string returned by Login and Register
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
GetCaptcha (request)
Get Captcha details for registering a user. These details expire after 10 minutes.
GET /user/get_captcha
Accepts the following message:
Additional properties are allowed.
Additional properties are allowed.
GetCaptcha (response)
Captcha details returned from the server
Accepts one of the following messages:
Will be undefined if Captcha is disabled on the Lemmy server
A Base64 encoded representation of the Captcha image (in .PNG format)
A Base64 encoded representation of the Captcha audio (in .WAV format)
The unique id of the Catpcha request
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
Register (request)
Register a user on the Lemmy server. If Captcha is enabled on the server, obtain those details by using GetCaptcha (before attempting to register)
POST /user/register
Accepts the following message:
The name for the new user
The user's email address
Exact password
Exact password
Set to true if this is to be the admin user. Only the user who was first registered on the Lemmy server is allowed to be admin.
The unique id of the Catpcha request (as reported by GetCaptcha)
The answer to the Captcha test
Additional properties are allowed.
Additional properties are allowed.
Register (response)
The response to the registration request will be an authentication string (jwt
) for that user
Accepts the following message:
The authentication string returned by Login and Register
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
GetPersonDetails (request)
username
field to return details about a local userperson_id
field to return details about a federated user.community_id
restricts posts and comments in the response to this community.
GET /user
Accepts the following message:
That user's id number
The user's username
Sort the response from the server according to one of the following criteria:
Forthcoming...
Forthcoming...
The id number for a community. The main/frontpage community_id
is 0
If true, only fetches the saved items.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
GetPersonDetails (response)
Returns full details about a specified person (including the last post the person wrote)
Accepts one of the following messages:
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
SaveUserSettings (request)
Set profile for an existing user.
If you want to set a new password, you must provide old_password.
PUT /user/save_user_settings
Accepts the following message:
The theme style to use
This user's default sort type for listings:
What type of listing to display by default:
The language to display Lemmy's interface in
Forthcoming...
Forthcoming...
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
The user's email address
A self-written description of the user
The Matrix id of the user
Exact password
Exact password
Exact password
If set to true, displays other user's avatar images by their username in listings
If set to true, the user will receive email notifications for any username mentions, post and comment replies
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
SaveUserSettings (response)
Get details about a specified user
Accepts one of the following messages:
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
GetReplies (request)
See all notifications and comments on all a user's posts
GET /user/replies
Accepts the following message:
Sort the response from the server according to one of the following criteria:
Forthcoming...
Forthcoming...
If true, only fetch unread comments or messages
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
GetReplies (response)
Returns detailed reply data
Accepts one of the following messages:
Forthcoming...
Forthcoming...
The id number for a community. The main/frontpage community_id
is 0
If the url for an associated post was provided, this will be the <title> data from that URL
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
Set to true if the post is already, or should be, locked. A locked post cannot receive comments.
You can undo a lock yourself by setting this value to false.
The link to the URL associated with the post
The date this site, community, post, comment or message was created (in ISO8601 format)
Set to true if this post has been made sticky (that is, it is presented at the top of a list of posts)
The body text of the post or comment
Forthcoming...
The id of the person who created this site, community, post, comment or message
Forthcoming...
The post number
The URL of this post, comment or message
If the url for an associated post was provided, this will be the meta name="description" data from that URL
The title of the post
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Forthcoming...
Forthcoming...
The name of a community
Forthcoming...
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
The id of the person who created this site, community, post, comment or message
The id number for a community. The main/frontpage community_id
is 0
The information in the community's Sidebar area
URL for the user/community profile/home page, using the format:
The title (Display name) of this community.
If set, this is the name shown instead of, or as well as, name in some contexts
Forthcoming...
Additional properties are allowed.
true if this post or comment has been or should be saved on the user's profile
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
Forthcoming...
The id of the person who created this site, community, post, comment or message
The text of the comment or message
The number (id) of a comment
Is true if the author of the original post has read the comment
Forthcoming...
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The post number
Forthcoming...
The URL of this post, comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
Additional properties are allowed.
Forthcoming...
Additional items are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
GetPersonMentions (request)
Return any @ mentions of the user in posts and comments
GET /user/mention
Accepts the following message:
Sort the response from the server according to one of the following criteria:
Forthcoming...
Forthcoming...
If true, only fetch unread comments or messages
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
GetPersonMentions (response)
Returns detailed data about mentions
Accepts one of the following messages:
A list of all user mentions
Forthcoming...
Forthcoming...
Set to true if this post, comment or message has been read (or should be marked as being read).
If you have marked something as being read, you can undo this yourself by setting this value to false.
Authentication string for a user
Additional properties are allowed.
Additional items are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
MarkPersonMentionAsRead (request)
Mark a specified mention as read. Only the recipient of a mention can do this.
POST /user/mention/mark_as_read
Accepts the following message:
The id of the recipient
Forthcoming...
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
MarkPersonMentionAsRead (response)
Returns detailed data about the mention
Accepts one of the following messages:
Forthcoming...
Forthcoming...
Set to true if this post, comment or message has been read (or should be marked as being read).
If you have marked something as being read, you can undo this yourself by setting this value to false.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
GetPrivateMessages (request)
Request a list of messages sent to the user.
GET /private_message/list
Accepts the following message:
If true, only fetch unread comments or messages
Forthcoming...
Forthcoming...
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
GetPrivateMessages (response)
Returns list of messages
Accepts one of the following messages:
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional items are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
CreatePrivateMessage (request)
Send a private message to another user.
POST /private_message
Accepts the following message:
The text of the comment or message
Forthcoming...
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
CreatePrivateMessage (response)
Confirm sending of a private message
Accepts one of the following messages:
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
EditPrivateMessage (request)
Replace an existing private message with the provided content.
PUT /private_message
Accepts the following message:
The id of the private message
The text of the comment or message
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
EditPrivateMessage (response)
Confirm replacement of a private message
Accepts one of the following messages:
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
DeletePrivateMessage (request)
Delete a specified private message.
POST /private_message/delete
Accepts the following message:
The id of the private message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
DeletePrivateMessage (response)
Confirm deletion of a private message
Accepts one of the following messages:
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
MarkPrivateMessageAsRead (request)
Mark a specified private message as read. Only the recipient of a message can do this.
POST /private_message/mark_as_read
Accepts the following message:
The id of the private message
Set to true if this post, comment or message has been read (or should be marked as being read).
If you have marked something as being read, you can undo this yourself by setting this value to false.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
MarkPrivateMessageAsRead (response)
Confirm that a private message has been marked as read
Accepts one of the following messages:
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
MarkAllAsRead (request)
Marks all user replies and mentions as read.
POST /user/mark_all_as_read
Accepts the following message:
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
MarkAllAsRead (response)
Confirm that all replies and mentions have been marked as read
Accepts one of the following messages:
Forthcoming...
Forthcoming...
The id number for a community. The main/frontpage community_id
is 0
If the url for an associated post was provided, this will be the <title> data from that URL
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
Set to true if the post is already, or should be, locked. A locked post cannot receive comments.
You can undo a lock yourself by setting this value to false.
The link to the URL associated with the post
The date this site, community, post, comment or message was created (in ISO8601 format)
Set to true if this post has been made sticky (that is, it is presented at the top of a list of posts)
The body text of the post or comment
Forthcoming...
The id of the person who created this site, community, post, comment or message
Forthcoming...
The post number
The URL of this post, comment or message
If the url for an associated post was provided, this will be the meta name="description" data from that URL
The title of the post
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Forthcoming...
Forthcoming...
The name of a community
Forthcoming...
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
The id of the person who created this site, community, post, comment or message
The id number for a community. The main/frontpage community_id
is 0
The information in the community's Sidebar area
URL for the user/community profile/home page, using the format:
The title (Display name) of this community.
If set, this is the name shown instead of, or as well as, name in some contexts
Forthcoming...
Additional properties are allowed.
true if this post or comment has been or should be saved on the user's profile
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
Forthcoming...
The id of the person who created this site, community, post, comment or message
The text of the comment or message
The number (id) of a comment
Is true if the author of the original post has read the comment
Forthcoming...
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The post number
Forthcoming...
The URL of this post, comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
Additional properties are allowed.
Forthcoming...
Additional items are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
DeleteAccount (request)
Deletes user account and permanently deletes that user's posts and comments.
POST /user/delete_account
Accepts the following message:
Exact password
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
DeleteAccount (response)
Confirm that the account has been deleted
Accepts one of the following messages:
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
AddAdmin (request)
Grant admin rights to the specified user.
Only admins can do this - auth
must be the authentication string for an existing admin user.
POST /admin/add
Accepts the following message:
That user's id number
Forthcoming...
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
AddAdmin (response)
Confirm that the user has been given admin privileges
Accepts one of the following messages:
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
BanPerson (request)
Ban user from posting, commenting or adding communities. Optionally, remove all comments, posts and communities at the same time.
Only admin users can do this - auth
must be the authentication string for an existing admin user.
POST /user/ban
Accepts the following message:
That user's id number
remove_data
to restore comments and posts that were previously removed as part of a banning process)Give a reason for the action. Why was this post deleted? Why was this user banned?
Forthcoming...
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
BanPerson (response)
Confirm that the user has been banned
Accepts one of the following messages:
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
Additional properties are allowed.
Set to true if this account (username) has been banned from posting on the Lemmy server
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
UserJoin (request)
Join to receive WebSocket replies, private messages and so on for this user.
POST /user/join
Accepts the following message:
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
UserJoin (response)
Verification that you will receive these WebSocket messages
Accepts one of the following messages:
true if join request was successful
Additional properties are allowed.
Additional properties are allowed.
The error message
Additional properties are allowed.
Forthcoming...
The name of a community
Forthcoming...
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
The id of the person who created this site, community, post, comment or message
The id number for a community. The main/frontpage community_id
is 0
The information in the community's Sidebar area
URL for the user/community profile/home page, using the format:
The title (Display name) of this community.
If set, this is the name shown instead of, or as well as, name in some contexts
Forthcoming...
Additional properties are allowed.
Forthcoming...
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
Forthcoming...
true if this post or comment has been or should be saved on the user's profile
Forthcoming...
Forthcoming...
The id of the person who created this site, community, post, comment or message
The text of the comment or message
The number (id) of a comment
Is true if the author of the original post has read the comment
Forthcoming...
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The post number
Forthcoming...
The URL of this post, comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
Additional properties are allowed.
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this account (username) has been banned from posting on the Lemmy server
The Matrix id of the user
The last time this user profile was updated (in ISO8601 format)
That user's id number
Forthcoming...
Forthcoming...
URL for the user/community profile/home page, using the format:
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
The user's username
Forthcoming...
The link to the inbox of the site's creator
A self-written description of the user
Set to true if this person is the Lemmy server administrator
Additional properties are allowed.
Items:
Additional items are allowed.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
Forthcoming...
The name of a community
Forthcoming...
Set to true if this commmunity, post or comment is deemed NSFW (hence invisible to users who have the NSFW option selected in their profile. If not provided, defaults to false.
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
The id of the person who created this site, community, post, comment or message
The id number for a community. The main/frontpage community_id
is 0
The information in the community's Sidebar area
URL for the user/community profile/home page, using the format:
The title (Display name) of this community.
If set, this is the name shown instead of, or as well as, name in some contexts
Forthcoming...
Additional properties are allowed.
Forthcoming...
Forthcoming...
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
Forthcoming...
Forthcoming...
Forthcoming...
Additional properties are allowed.
Forthcoming...
true if this post or comment has been or should be saved on the user's profile
Forthcoming...
Forthcoming...
The id of the person who created this site, community, post, comment or message
The text of the comment or message
The number (id) of a comment
Is true if the author of the original post has read the comment
Forthcoming...
Set to true if this community, post, comment or message should be or has been permanently deleted.
An admin or moderator can undo a removal by setting this value to false.
The post number
Forthcoming...
The URL of this post, comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
The date this site, community, post, comment or message was created (in ISO8601 format)
Additional properties are allowed.
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this account (username) has been banned from posting on the Lemmy server
The Matrix id of the user
The last time this user profile was updated (in ISO8601 format)
That user's id number
Forthcoming...
Forthcoming...
URL for the user/community profile/home page, using the format:
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
The user's username
Forthcoming...
The link to the inbox of the site's creator
A self-written description of the user
Set to true if this person is the Lemmy server administrator
Additional properties are allowed.
Items:
Additional items are allowed.
Authentication string for a user
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
If true, only fetch unread comments or messages
The id of the person who created this site, community, post, comment or message
Forthcoming...
The URL of this post, comment or message
The date this site, community, post, comment or message was created (in ISO8601 format)
Forthcoming...
The text of the comment or message
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Forthcoming...
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user
Forthcoming...
That user's id number
URL for the user/community profile/home page, using the format:
Forthcoming...
The user's username
That user's inbox url
That instance's shared inbox url
Additional properties are allowed.
The last time this user profile was updated (in ISO8601 format)
A self-written description of the user
Set to true if this person is the Lemmy server administrator
If set, this is the name shown instead of, or as well as, username in some contexts (also known as Display name)
Set to true if this community, post, comment, message or user account should be, or has been, deleted. Unlike removal, deletion is not permanent. Deleted items can be recovered.
You can undo a delete yourself by setting this value to false.
Set to true if this account (username) has been banned from posting on the Lemmy server
The date this site, community, post, comment or message was created (in ISO8601 format)
The Matrix id of the user