Download OpenAPI specification:Download
(unofficial) OpenAPI spec for Lemmy client API.
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "admins": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
], - "version": "string",
- "my_user": {
- "local_user_view": {
- "local_user": {
- "id": 1234,
- "person_id": 1234,
- "email": "user@example.com",
- "show_nsfw": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "show_scores": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "email_verified": true,
- "accepted_application": true,
- "open_links_in_new_tab": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "infinite_scroll_enabled": true,
- "admin": true,
- "post_listing_mode": "List",
- "totp_2fa_enabled": true,
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true
}, - "local_user_vote_display_mode": {
- "local_user_id": 1234,
- "score": true,
- "upvotes": true,
- "downvotes": true,
- "upvote_percentage": true
}, - "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}
}, - "follows": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "follower": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "moderates": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "community_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "person_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "target": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}, - "all_languages": [
- {
- "id": 1234,
- "code": "sv",
- "name": "Svenska"
}
], - "discussion_languages": [
- 1234
], - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
], - "custom_emojis": [
- {
- "custom_emoji": {
- "id": 1234,
- "local_site_id": 1234,
- "shortcode": "string",
- "alt_text": "string",
- "category": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "keywords": [
- {
- "custom_emoji_id": 1234,
- "keyword": "string"
}
]
}
], - "blocked_urls": [
- {
- "id": 0,
- "url": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Enable / Disable TOTP / two-factor authentication.
To enable, you need to first call /user/totp/generate
and then pass a valid token to this.
Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
Update TOTP
totp_token required | string |
enabled required | boolean |
{- "totp_token": "string",
- "enabled": true
}
{- "enabled": true
}
Register a new user.
Register
username required | string Username (aka nickname aka short users' name). |
password required | string <password> |
password_verify required | string <password> |
show_nsfw | boolean |
string <email> Email address. Email is mandatory if email verification is enabled on the server. | |
captcha_uuid | string The UUID of the captcha item. |
captcha_answer | string Your captcha answer. |
honeypot | string |
answer | string An answer is mandatory if require application is enabled on the server. |
{- "username": "string",
- "password": "pa$$word",
- "password_verify": "pa$$word",
- "show_nsfw": true,
- "email": "user@example.com",
- "captcha_uuid": "string",
- "captcha_answer": "string",
- "honeypot": "string",
- "answer": "string"
}
{- "jwt": "string",
- "registration_created": true,
- "verify_email_sent": true
}
Login with a user account.
User credential
username_or_email required | string |
password required | string <password> |
totp_2fa_token | string |
{- "username_or_email": "foobar@example.org",
- "password": "mys3cur3p4$$w0rd",
- "totp_2fa_token": "string"
}
{- "jwt": "string",
- "registration_created": true,
- "verify_email_sent": true
}
List all the media for your user
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "images": [
- {
- "local_image": {
- "local_user_id": 1234,
- "pictrs_alias": "string",
- "pictrs_delete_token": "0eac5362-779f-4b35-827d-73dfb244c48e",
- "published": "2019-08-24T14:15:22Z"
}, - "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Fetch a person by their id.
person_id | integer <int32> (PersonID) Example: person_id=1234 The identifier is local to this instance. |
username | string Examples:
|
sort | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" Specifies how the elements in response should be ordered. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
saved_only | boolean Specifies whether to fetch only saved elements. |
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "comments": [
- {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
], - "posts": [
- {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
], - "moderates": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Get mentions for your user.
sort | string (CommentSortType) Enum: "Hot" "Top" "New" "Old" "Controversial" Specifies how the elements in response should be ordered. |
unread_only | boolean Specified the filter on the results to return only unread elements. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "mentions": [
- {
- "person_mention": {
- "id": 1234,
- "recipient_id": 1234,
- "comment_id": 1234,
- "read": true,
- "published": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
]
}
Get comment replies.
sort | string (CommentSortType) Enum: "Hot" "Top" "New" "Old" "Controversial" Specifies how the elements in response should be ordered. |
unread_only | boolean Specified the filter on the results to return only unread elements. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "replies": [
- {
- "comment_reply": {
- "id": 1234,
- "recipient_id": 1234,
- "comment_id": 1234,
- "read": true,
- "published": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
]
}
Ban a person from your site.
Ban Person
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
ban required | boolean |
remove_data | boolean Optionally remove all their data. Useful for new troll accounts. |
reason | string |
expires | integer <int64> A time that the ban will expire, in unix epoch seconds. |
{- "person_id": 1234,
- "ban": true,
- "remove_data": true,
- "reason": "string",
- "expires": 0
}
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "banned": true
}
{- "banned": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
]
}
Block a person
Block Person
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
block required | boolean |
{- "person_id": 1234,
- "block": true
}
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "blocked": true
}
Delete your account.
Delete Account
password required | string <password> |
delete_content required | boolean Will be None if captchas are disabled. |
{- "password": "pa$$word",
- "delete_content": true
}
{- "success": true
}
Reset your password.
Password Reset
email required | string <email> |
{- "email": "user@example.com"
}
{- "success": true
}
Change your password from an email / token based reset.
Password Change After Reset
token required | string <password> |
password required | string <password> |
password_verify required | string <password> |
{- "token": "pa$$word",
- "password": "pa$$word",
- "password_verify": "pa$$word"
}
{- "success": true
}
{- "replies": [
- {
- "comment_reply": {
- "id": 1234,
- "recipient_id": 1234,
- "comment_id": 1234,
- "read": true,
- "published": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
]
}
Save your user settings.
Save User Settings
show_nsfw | boolean Whether to show NSFW content. |
blur_nsfw | boolean |
auto_expand | boolean |
theme | string Your user's theme. |
default_sort_type | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" |
default_listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
interface_language | string The language of the lemmy interface |
avatar | string <uri> A URL for your avatar. |
banner | string <uri> A URL for your banner. |
display_name | string Your display name, which can contain strange characters, and does not need to be unique. |
string <email> Your email. | |
bio | string Your bio / info, in markdown. |
matrix_user_id | string Your matrix user id. |
show_avatars | boolean Whether to show or hide avatars. |
send_notifications_to_email | boolean Sends notifications to your email. |
bot_account | boolean Whether this account is a bot account. Users can hide these accounts easily if they wish. |
show_bot_accounts | boolean Whether to show bot accounts. |
show_read_posts | boolean Whether to show read posts. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] |
open_links_in_new_tab | boolean Open links in a new tab. |
infinite_scroll_enabled | boolean Enable infinite scroll |
post_listing_mode | string (PostListingMode) Enum: "List" "Card" "SmallCard" A post-view mode that changes how multiple post listings look. |
enable_keyboard_navigation | boolean Whether to allow keyboard navigation (for browsing and interacting with posts and comments). |
enable_animated_images | boolean Whether user avatars or inline images in the UI that are gifs should be allowed to play or should be paused. |
collapse_bot_comments | boolean Whether to auto-collapse bot comments. |
show_scores | boolean Show post and comment scores. |
show_upvotes | boolean |
show_downvotes | boolean |
show_upvote_percentage | boolean |
{- "show_nsfw": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "display_name": "string",
- "email": "user@example.com",
- "bio": "string",
- "matrix_user_id": "@my_user:matrix.org",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "bot_account": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "discussion_languages": [
- 1234
], - "open_links_in_new_tab": true,
- "infinite_scroll_enabled": true,
- "post_listing_mode": "List",
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true,
- "show_scores": true,
- "show_upvotes": true,
- "show_downvotes": true,
- "show_upvote_percentage": true
}
{- "success": true
}
Change your user password.
Change Password
new_password required | string <password> |
new_password_verify required | string <password> |
old_password required | string <password> |
{- "new_password": "pa$$word",
- "new_password_verify": "pa$$word",
- "old_password": "pa$$word"
}
{- "jwt": "string",
- "registration_created": true,
- "verify_email_sent": true
}
Get counts for your reports.
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
{- "community_id": 1234,
- "comment_reports": 0,
- "post_reports": 0,
- "private_message_reports": 0
}
Mark a person mention as read
Mark Person Mention as Read
person_mention_id required | integer <int32> (PersonMentionID) The identifier is local to this instance. |
read required | boolean |
{- "person_mention_id": 1234,
- "read": true
}
{- "person_mention_view": {
- "person_mention": {
- "id": 1234,
- "recipient_id": 1234,
- "comment_id": 1234,
- "read": true,
- "published": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "admins": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
], - "version": "string",
- "my_user": {
- "local_user_view": {
- "local_user": {
- "id": 1234,
- "person_id": 1234,
- "email": "user@example.com",
- "show_nsfw": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "show_scores": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "email_verified": true,
- "accepted_application": true,
- "open_links_in_new_tab": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "infinite_scroll_enabled": true,
- "admin": true,
- "post_listing_mode": "List",
- "totp_2fa_enabled": true,
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true
}, - "local_user_vote_display_mode": {
- "local_user_id": 1234,
- "score": true,
- "upvotes": true,
- "downvotes": true,
- "upvote_percentage": true
}, - "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}
}, - "follows": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "follower": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "moderates": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "community_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "person_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "target": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}, - "all_languages": [
- {
- "id": 1234,
- "code": "sv",
- "name": "Svenska"
}
], - "discussion_languages": [
- 1234
], - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
], - "custom_emojis": [
- {
- "custom_emoji": {
- "id": 1234,
- "local_site_id": 1234,
- "shortcode": "string",
- "alt_text": "string",
- "category": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "keywords": [
- {
- "custom_emoji_id": 1234,
- "keyword": "string"
}
]
}
], - "blocked_urls": [
- {
- "id": 0,
- "url": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Enable / Disable TOTP / two-factor authentication.
To enable, you need to first call /user/totp/generate
and then pass a valid token to this.
Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
Update TOTP
totp_token required | string |
enabled required | boolean |
{- "totp_token": "string",
- "enabled": true
}
{- "enabled": true
}
Login with a user account.
User credential
username_or_email required | string |
password required | string <password> |
totp_2fa_token | string |
{- "username_or_email": "foobar@example.org",
- "password": "mys3cur3p4$$w0rd",
- "totp_2fa_token": "string"
}
{- "jwt": "string",
- "registration_created": true,
- "verify_email_sent": true
}
Create a post.
Create Post
name required | string |
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
url | string <uri> |
body | string An optional body for the post in markdown |
alt_text | string An optional alt_text, usable for image posts. |
honeypot | string |
nsfw | boolean |
language_id | integer <int32> (LanguageID) The identifier is local to this instance. |
custom_thumbnail | string <uri> Instead of fetching a thumbnail, use a custom one. |
{- "name": "string",
- "community_id": 1234,
- "body": "string",
- "alt_text": "string",
- "honeypot": "string",
- "nsfw": true,
- "language_id": 1234,
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Fetch a post by its id.
id | integer <int32> (PostID) Example: id=1234 The identifier is local to this instance. |
comment_id | integer <int32> (CommentID) Example: comment_id=1234 The comment identifier to fetch. |
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}, - "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "cross_posts": [
- {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
]
}
Edit a post.
Edit Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
name | string |
url | string <uri> |
body | string An optional body for the post in markdown |
alt_text | string An optional alt_text, usable for image posts. |
nsfw | boolean |
language_id | integer <int32> (LanguageID) The identifier is local to this instance. |
custom_thumbnail | string <uri> Instead of fetching a thumbnail, use a custom one. |
{- "post_id": 1234,
- "name": "string",
- "body": "string",
- "alt_text": "string",
- "nsfw": true,
- "language_id": 1234,
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Delete a post.
Delete Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
deleted required | boolean |
{- "post_id": 1234,
- "deleted": true
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Mark a post as read.
Mark Post as Read
post_ids required | Array of integers <int32> (PostID) [ items <int32 > ] |
read required | boolean |
{- "post_ids": [
- 1234
], - "read": true
}
{- "success": true
}
List posts with various filters.
type_ | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" Specify the type of listing to fetch all elements. E.g. fetch all comments for Subscribed communities. |
sort | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" Specifies how the elements in response should be ordered. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
community_name | string Examples:
Specified the filter on the results to match the given community name. |
saved_only | boolean Specifies whether to fetch only saved elements. |
liked_only | boolean Specifies whether to fetch only liked elements. |
disliked_only | boolean Specifies whether to fetch only disliked elements. |
show_hidden | boolean |
page_cursor | string (PaginationCursor) |
{- "posts": [
- {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
], - "next_page": "string"
}
Like / vote on a post
Like Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
score required | integer <int32> (MyVote) [ -1 .. 1 ] Users' vote status. Possible values:
|
{- "post_id": 1234,
- "score": 1
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Save a post
Save Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
save required | boolean |
{- "post_id": 1234,
- "save": true
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Hide a post from list views.
Hide Post
post_ids required | Array of integers <int32> (PostID) [ items <int32 > ] |
hide required | boolean |
{- "post_ids": [
- 1234
], - "hide": true
}
{- "success": true
}
Report a post.
Report Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
reason required | string |
{- "post_id": 1234,
- "reason": "string"
}
{- "post_report_view": {
- "post_report": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "original_post_name": "string",
- "original_post_body": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Create a new community.
Create Community
name required | string The unique name |
title required | string A longer title. |
description | string A longer sidebar, or description of your community, in markdown. |
icon | string <uri> An icon URL. |
banner | string <uri> A banner URL. |
nsfw | boolean Whether its an NSFW community. |
posting_restricted_to_mods | boolean Whether to restrict posting only to moderators. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] |
visibility | string (CommunityVisibility) Enum: "Public" "LocalOnly" Defines who can browse and interact with content in a community. |
{- "name": "string",
- "title": "string",
- "description": "string",
- "nsfw": true,
- "posting_restricted_to_mods": true,
- "discussion_languages": [
- 1234
], - "visibility": "Public"
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
Get / fetch a community.
id | integer <int32> (CommunityID) Example: id=1234 The community identifier to fetch info. |
name | string Examples:
The community name to fetch info. |
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}
Edit a community.
Edit Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
title | string A longer title. |
description | string A longer sidebar, or description of your community, in markdown. |
icon | string <uri> An icon URL. |
banner | string <uri> A banner URL. |
nsfw | boolean Whether its an NSFW community. |
posting_restricted_to_mods | boolean Whether to restrict posting only to moderators. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] |
visibility | string (CommunityVisibility) Enum: "Public" "LocalOnly" Defines who can browse and interact with content in a community. |
{- "community_id": 1234,
- "title": "string",
- "description": "string",
- "nsfw": true,
- "posting_restricted_to_mods": true,
- "discussion_languages": [
- 1234
], - "visibility": "Public"
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
List communities, with various filters.
type_ | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" Specify the type of listing to fetch all elements. E.g. fetch all comments for Subscribed communities. |
sort | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" Specifies how the elements in response should be ordered. |
show_nsfw | boolean |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "communities": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}
]
}
Follow / subscribe to a community.
Follow Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
follow required | boolean |
{- "community_id": 1234,
- "follow": true
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
Block a community.
Block Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
block required | boolean |
{- "community_id": 1234,
- "block": true
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "blocked": true
}
Delete a community.
Delete Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
deleted required | boolean |
{- "community_id": 1234,
- "deleted": true
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
Hide a community from public / "All" view. Admins only.
Hide Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
hidden required | boolean |
reason | string |
{- "community_id": 1234,
- "hidden": true,
- "reason": "string"
}
{- "success": true
}
A moderator remove for a community.
Remove Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
removed required | boolean |
reason | string |
{- "community_id": 1234,
- "removed": true,
- "reason": "string"
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
Transfer your community to an existing moderator.
Transfer Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
{- "community_id": 1234,
- "person_id": 1234
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}
Ban a user from a community.
Ban From Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
ban required | boolean |
remove_data | boolean |
reason | string |
expires | integer <int64> A time that the ban will expire, in unix epoch seconds. An i64 unix timestamp is used for a simpler API client implementation. |
{- "community_id": 1234,
- "person_id": 1234,
- "ban": true,
- "remove_data": true,
- "reason": "string",
- "expires": 0
}
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "banned": true
}
Add a moderator to your community.
Add Mod To Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
added required | boolean |
{- "community_id": 1234,
- "person_id": 1234,
- "added": true
}
{- "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Create a comment.
Create Comment
content required | string |
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
parent_id | integer <int32> (CommentID) The identifier is local to this instance. |
language_id | integer <int32> (LanguageID) The identifier is local to this instance. |
{- "content": "string",
- "post_id": 1234,
- "parent_id": 1234,
- "language_id": 1234
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Edit a comment.
Edit Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
content | string |
language_id | integer <int32> (LanguageID) The identifier is local to this instance. |
{- "comment_id": 1234,
- "content": "string",
- "language_id": 1234
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Get / fetch comment.
id | integer <int32> (CommentID) Example: id=1234 The identifier is local to this instance. |
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Delete a comment.
Delete Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
deleted required | boolean |
{- "comment_id": 1234,
- "deleted": true
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Mark a comment as read.
Mark Comment as Read
comment_reply_id required | integer <int32> (CommentReplyID) The identifier is local to this instance. |
read required | boolean |
{- "comment_reply_id": 1234,
- "read": true
}
{- "comment_reply_view": {
- "comment_reply": {
- "id": 1234,
- "recipient_id": 1234,
- "comment_id": 1234,
- "read": true,
- "published": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
}
Like / vote on a comment.
Like Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
score required | integer <int32> (MyVote) [ -1 .. 1 ] Users' vote status. Possible values:
|
{- "comment_id": 1234,
- "score": 1
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Save a comment.
Save Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
save required | boolean |
{- "comment_id": 1234,
- "save": true
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Get / fetch comments.
type_ | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" Specify the type of listing to fetch all elements. E.g. fetch all comments for Subscribed communities. |
sort | string (CommentSortType) Enum: "Hot" "Top" "New" "Old" "Controversial" Specifies how the elements in response should be ordered. |
max_depth | integer <int32> |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
community_name | string Examples:
Specified the filter on the results to match the given community name. |
post_id | integer <int32> (PostID) Example: post_id=1234 The post identifier to fetch comments from. |
parent_id | integer <int32> (CommentID) Example: parent_id=1234 The identifier is local to this instance. |
saved_only | boolean Specifies whether to fetch only saved elements. |
liked_only | boolean Specifies whether to fetch only liked elements. |
disliked_only | boolean Specifies whether to fetch only disliked elements. |
{- "comments": [
- {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
]
}
Report a comment.
Report Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
reason required | string |
{- "comment_id": 1234,
- "reason": "string"
}
{- "comment_report_view": {
- "comment_report": {
- "id": 1234,
- "creator_id": 1234,
- "comment_id": 1234,
- "original_comment_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "comment_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "creator_blocked": true,
- "subscribed": "Subscribed",
- "saved": true,
- "my_vote": 1,
- "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
{- "federated_instances": {
- "linked": [
- {
- "id": 1234,
- "domain": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "software": "string",
- "version": "string",
- "federation_state": {
- "instance_id": 1234,
- "last_successful_id": 1234,
- "last_successful_published_time": "2019-08-24T14:15:22Z",
- "fail_count": 0,
- "last_retry": "2019-08-24T14:15:22Z",
- "next_retry": "2019-08-24T14:15:22Z"
}
}
], - "allowed": [
- {
- "id": 1234,
- "domain": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "software": "string",
- "version": "string",
- "federation_state": {
- "instance_id": 1234,
- "last_successful_id": 1234,
- "last_successful_published_time": "2019-08-24T14:15:22Z",
- "fail_count": 0,
- "last_retry": "2019-08-24T14:15:22Z",
- "next_retry": "2019-08-24T14:15:22Z"
}
}
], - "blocked": [
- {
- "id": 1234,
- "domain": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "software": "string",
- "version": "string",
- "federation_state": {
- "instance_id": 1234,
- "last_successful_id": 1234,
- "last_successful_published_time": "2019-08-24T14:15:22Z",
- "fail_count": 0,
- "last_retry": "2019-08-24T14:15:22Z",
- "next_retry": "2019-08-24T14:15:22Z"
}
}
]
}
}
Block an instance.
Block Instance
instance_id required | integer <int32> (InstanceID) The identifier is local to this instance. |
block required | boolean |
{- "instance_id": 1234,
- "block": true
}
{- "blocked": true
}
Search through Lemmy
q required | string |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
community_name | string Examples:
Specified the filter on the results to match the given community name. |
creator_id | integer <int32> (PersonID) Example: creator_id=1234 The identifier is local to this instance. |
type_ | string (SearchType) Enum: "All" "Comments" "Posts" "Communities" "Users" "Url" The type of content returned from a search. |
sort | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" Specifies how the elements in response should be ordered. |
listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "type_": "All",
- "comments": [
- {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}
], - "posts": [
- {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
], - "communities": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}
], - "users": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
]
}
Resolves an ActivityPub object.
If user is authenticated, remote lookups are allowed, else only allows local search.
q required | string Examples:
Search query. |
{- "comment": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "post": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}, - "community": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "person": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
}
Fetches the modlog
mod_person_id | integer <int32> (PersonID) Example: mod_person_id=1234 The identifier is local to this instance. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
post_id | integer <int32> (PostID) Example: post_id=1234 Specified the filter on the results to match the given post identifier. |
comment_id | integer <int32> (CommentID) Example: comment_id=1234 Specified the filter on the results to match the given comment identifier. |
type_ | string (ModlogActionType) Enum: "All" "ModRemovePost" "ModLockPost" "ModFeaturePost" "ModRemoveComment" "ModRemoveCommunity" "ModBanFromCommunity" "ModAddCommunity" "ModTransferCommunity" "ModAdd" "ModBan" "ModHideCommunity" "AdminPurgePerson" "AdminPurgeCommunity" "AdminPurgePost" "AdminPurgeComment" A list of possible types for the various modlog actions. |
other_person_id | integer <int32> (PersonID) Example: other_person_id=1234 The identifier is local to this instance. |
{- "removed_posts": [
- {
- "mod_remove_post": {
- "id": 0,
- "mod_person_id": 1234,
- "post_id": 1234,
- "reason": "string",
- "removed": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "locked_posts": [
- {
- "mod_lock_post": {
- "id": 0,
- "mod_person_id": 1234,
- "post_id": 1234,
- "locked": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "featured_posts": [
- {
- "mod_feature_post": {
- "id": 0,
- "mod_person_id": 1234,
- "post_id": 1234,
- "featured": true,
- "when_": "2019-08-24T14:15:22Z",
- "is_featured_community": true
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "removed_comments": [
- {
- "mod_remove_comment": {
- "id": 0,
- "mod_person_id": 1234,
- "comment_id": 1234,
- "reason": "string",
- "removed": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "commenter": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "removed_communities": [
- {
- "mod_remove_community": {
- "id": 0,
- "mod_person_id": 1234,
- "community_id": 1234,
- "reason": "string",
- "removed": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "banned_from_community": [
- {
- "mod_ban_from_community": {
- "id": 0,
- "mod_person_id": 1234,
- "other_person_id": 1234,
- "community_id": 1234,
- "reason": "string",
- "banned": true,
- "expires": "2019-08-24T14:15:22Z",
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "banned_person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "banned": [
- {
- "mod_ban": {
- "id": 0,
- "mod_person_id": 1234,
- "other_person_id": 1234,
- "community_id": 1234,
- "reason": "string",
- "banned": true,
- "expires": "2019-08-24T14:15:22Z",
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "banned_person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "added_to_community": [
- {
- "mod_add_community": {
- "id": 0,
- "mod_person_id": 1234,
- "other_person_id": 1234,
- "community_id": 1234,
- "reason": "string",
- "removed": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "modded_person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "transferred_to_community": [
- {
- "mod_transfer_community": {
- "id": 0,
- "mod_person_id": 1234,
- "other_person_id": 1234,
- "community_id": 1234,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "modded_person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "added": [
- {
- "mod_add": {
- "id": 0,
- "mod_person_id": 1234,
- "other_person_id": 1234,
- "removed": true,
- "when_": "2019-08-24T14:15:22Z"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "modded_person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "admin_purged_persons": [
- {
- "admin_purge_person": {
- "id": 0,
- "admin_person_id": 1234,
- "reason": "string",
- "when_": "2019-08-24T14:15:22Z"
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "admin_purged_communities": [
- {
- "admin_purge_community": {
- "id": 0,
- "admin_person_id": 1234,
- "reason": "string",
- "when_": "2019-08-24T14:15:22Z"
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "admin_purged_posts": [
- {
- "admin_purge_post": {
- "id": 0,
- "admin_person_id": 1234,
- "community_id": 1234,
- "reason": "string",
- "when_": "2019-08-24T14:15:22Z"
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "admin_purged_comments": [
- {
- "admin_purge_comment": {
- "id": 0,
- "admin_person_id": 1234,
- "post_id": 1234,
- "reason": "string",
- "when_": "2019-08-24T14:15:22Z"
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}
}
], - "hidden_communities": [
- {
- "mod_hide_community": {
- "id": 0,
- "community_id": 1234,
- "mod_person_id": 1234,
- "reason": "string",
- "when_": "2019-08-24T14:15:22Z",
- "hidden": true
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
]
}
A moderator remove for a community.
Remove Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
removed required | boolean |
reason | string |
{- "community_id": 1234,
- "removed": true,
- "reason": "string"
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "discussion_languages": [
- 1234
]
}
Transfer your community to an existing moderator.
Transfer Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
{- "community_id": 1234,
- "person_id": 1234
}
{- "community_view": {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "subscribed": "Subscribed",
- "blocked": true,
- "counts": {
- "community_id": 1234,
- "subscribers": 0,
- "posts": 0,
- "comments": 0,
- "published": "2019-08-24T14:15:22Z",
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0,
- "subscribers_local": 0
}, - "banned_from_community": true
}, - "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}
Ban a user from a community.
Ban From Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
ban required | boolean |
remove_data | boolean |
reason | string |
expires | integer <int64> A time that the ban will expire, in unix epoch seconds. An i64 unix timestamp is used for a simpler API client implementation. |
{- "community_id": 1234,
- "person_id": 1234,
- "ban": true,
- "remove_data": true,
- "reason": "string",
- "expires": 0
}
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "banned": true
}
Add a moderator to your community.
Add Mod To Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
added required | boolean |
{- "community_id": 1234,
- "person_id": 1234,
- "added": true
}
{- "moderators": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
A moderator remove for a post.
Remove Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
removed required | boolean |
reason | string |
{- "post_id": 1234,
- "removed": true,
- "reason": "string"
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
A moderator can lock a post (i.e. disable new comments).
Mark Post as Read
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
locked required | boolean |
{- "post_id": 1234,
- "locked": true
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
A moderator can feature a community post (i.e. stick it to the top of a community).
Feature Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
featured required | boolean |
feature_type required | string (PostFeatureType) Enum: "Local" "Community" The feature type for a post |
{- "post_id": 1234,
- "featured": true,
- "feature_type": "Local"
}
{- "post_view": {
- "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0
}
}
Resolve a post report. Only a mod can do this.
Resolve Post Report
report_id required | integer <int32> (PostReportID) The identifier is local to this instance. |
resolved required | boolean |
{- "report_id": 1234,
- "resolved": true
}
{- "post_report_view": {
- "post_report": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "original_post_name": "string",
- "original_post_body": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
List post reports.
unresolved_only | boolean Specified the filter on the results to return only unresolved elements. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
post_id | integer <int32> (PostID) Example: post_id=1234 Specified the filter on the results to match the given post identifier. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "post_reports": [
- {
- "post_report": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "original_post_name": "string",
- "original_post_body": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "read": true,
- "hidden": true,
- "creator_blocked": true,
- "my_vote": 1,
- "unread_comments": 0,
- "counts": {
- "post_id": 1234,
- "comments": 0,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z"
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
A moderator remove for a comment.
Remove Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
removed required | boolean |
reason | string |
{- "comment_id": 1234,
- "removed": true,
- "reason": "string"
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Distinguishes a comment (speak as moderator)
Distinguish Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
distinguished required | boolean |
{- "comment_id": 1234,
- "distinguished": true
}
{- "comment_view": {
- "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "subscribed": "Subscribed",
- "saved": true,
- "creator_blocked": true,
- "my_vote": 1
}, - "recipient_ids": [
- 1234
]
}
Resolve a comment report. Only a mod can do this.
Resolve Comment Report
report_id required | integer <int32> (CommentReportID) The identifier is local to this instance. |
resolved required | boolean |
{- "report_id": 1234,
- "resolved": true
}
{- "comment_report_view": {
- "comment_report": {
- "id": 1234,
- "creator_id": 1234,
- "comment_id": 1234,
- "original_comment_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "comment_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "creator_blocked": true,
- "subscribed": "Subscribed",
- "saved": true,
- "my_vote": 1,
- "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
List comment reports.
comment_id | integer <int32> (CommentID) Example: comment_id=1234 Specified the filter on the results to match the given comment identifier. |
unresolved_only | boolean Specified the filter on the results to return only unresolved elements. |
community_id | integer <int32> (CommunityID) Example: community_id=1234 Specified the filter on the results to match the given community identifier. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "comment_reports": [
- {
- "comment_report": {
- "id": 1234,
- "creator_id": 1234,
- "comment_id": 1234,
- "original_comment_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "comment": {
- "id": 1234,
- "creator_id": 1234,
- "post_id": 1234,
- "content": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "path": "0.219355.219732.225923",
- "distinguished": true,
- "language_id": 1234
}, - "post": {
- "id": 1234,
- "name": "string",
- "body": "string",
- "creator_id": 1234,
- "community_id": 1234,
- "removed": true,
- "locked": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "embed_title": "string",
- "embed_description": "string",
- "local": true,
- "language_id": 1234,
- "featured_community": true,
- "featured_local": true,
- "url_content_type": "string",
- "alt_text": "string"
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "comment_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "comment_id": 1234,
- "score": 0,
- "upvotes": 0,
- "downvotes": 0,
- "published": "2019-08-24T14:15:22Z",
- "child_count": 0
}, - "creator_banned_from_community": true,
- "creator_is_moderator": true,
- "creator_is_admin": true,
- "creator_blocked": true,
- "subscribed": "Subscribed",
- "saved": true,
- "my_vote": 1,
- "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Resolve a report for a private message
Resolve Private Message Report
report_id required | integer <int32> (PrivateMessageReportID) The identifer is local to this instance. |
resolved required | boolean |
{- "report_id": 1234,
- "resolved": true
}
{- "private_message_report_view": {
- "private_message_report": {
- "id": 1234,
- "creator_id": 1234,
- "private_message_id": 1234,
- "original_pm_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "private_message_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
List private message reports
unresolved_only | boolean Specified the filter on the results to return only unresolved elements. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "private_message_reports": [
- {
- "private_message_report": {
- "id": 1234,
- "creator_id": 1234,
- "private_message_id": 1234,
- "original_pm_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "private_message_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Ban a person from your site.
Ban Person
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
ban required | boolean |
remove_data | boolean Optionally remove all their data. Useful for new troll accounts. |
reason | string |
expires | integer <int64> A time that the ban will expire, in unix epoch seconds. |
{- "person_id": 1234,
- "ban": true,
- "remove_data": true,
- "reason": "string",
- "expires": 0
}
{- "person_view": {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}, - "banned": true
}
Add an admin to your site.
Add Admin
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
added required | boolean |
{- "person_id": 1234,
- "added": true
}
{- "admins": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
]
}
List the registration applications
unread_only | boolean Specified the filter on the results to return only unread elements. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "registration_applications": [
- {
- "registration_application": {
- "id": 0,
- "local_user_id": 1234,
- "answer": "string",
- "admin_id": 1234,
- "deny_reason": "string",
- "published": "2019-08-24T14:15:22Z"
}, - "creator_local_user": {
- "id": 1234,
- "person_id": 1234,
- "email": "user@example.com",
- "show_nsfw": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "show_scores": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "email_verified": true,
- "accepted_application": true,
- "open_links_in_new_tab": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "infinite_scroll_enabled": true,
- "admin": true,
- "post_listing_mode": "List",
- "totp_2fa_enabled": true,
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Approve a registration application.
Approve Registration Application
id required | integer <int32> |
approve required | boolean |
deny_reason | string |
{- "id": 0,
- "approve": true,
- "deny_reason": "string"
}
{- "registration_application": {
- "registration_application": {
- "id": 0,
- "local_user_id": 1234,
- "answer": "string",
- "admin_id": 1234,
- "deny_reason": "string",
- "published": "2019-08-24T14:15:22Z"
}, - "creator_local_user": {
- "id": 1234,
- "person_id": 1234,
- "email": "user@example.com",
- "show_nsfw": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "show_scores": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "email_verified": true,
- "accepted_application": true,
- "open_links_in_new_tab": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "infinite_scroll_enabled": true,
- "admin": true,
- "post_listing_mode": "List",
- "totp_2fa_enabled": true,
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "admin": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Purge / Delete a person from the database.
Purge Person
person_id required | integer <int32> (PersonID) The identifier is local to this instance. |
reason | string |
{- "person_id": 1234,
- "reason": "string"
}
{- "success": true
}
Purge / Delete a community from the database.
Purge Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
reason | string |
{- "community_id": 1234,
- "reason": "string"
}
{- "success": true
}
Purge / Delete a post from the database.
Purge Post
post_id required | integer <int32> (PostID) The identifier is local to this instance. |
reason | string |
{- "post_id": 1234,
- "reason": "string"
}
{- "success": true
}
Purge / Delete a comment from the database.
Purge Comment
comment_id required | integer <int32> (CommentID) The identifier is local to this instance. |
reason | string |
{- "comment_id": 1234,
- "reason": "string"
}
{- "success": true
}
List all the media known to your instance.
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "images": [
- {
- "local_image": {
- "local_user_id": 1234,
- "pictrs_alias": "string",
- "pictrs_delete_token": "0eac5362-779f-4b35-827d-73dfb244c48e",
- "published": "2019-08-24T14:15:22Z"
}, - "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Create a new custom emoji
Create Custom Emoji
category required | string |
shortcode required | string |
image_url required | string <uri> |
alt_text required | string |
keywords required | Array of strings |
{- "category": "string",
- "shortcode": "string",
- "alt_text": "string",
- "keywords": [
- "string"
]
}
{- "custom_emoji": {
- "custom_emoji": {
- "id": 1234,
- "local_site_id": 1234,
- "shortcode": "string",
- "alt_text": "string",
- "category": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "keywords": [
- {
- "custom_emoji_id": 1234,
- "keyword": "string"
}
]
}
}
Edit a new custom emoji
Edit Custom Emoji
id required | integer <int32> (CustomEmojiID) The identifier is local to this instance. |
category required | string |
image_url required | string <uri> |
alt_text required | string |
keywords required | Array of strings |
{- "id": 1234,
- "category": "string",
- "alt_text": "string",
- "keywords": [
- "string"
]
}
{- "custom_emoji": {
- "custom_emoji": {
- "id": 1234,
- "local_site_id": 1234,
- "shortcode": "string",
- "alt_text": "string",
- "category": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "keywords": [
- {
- "custom_emoji_id": 1234,
- "keyword": "string"
}
]
}
}
Delete a new custom emoji
Delete Custom Emoji
id required | integer <int32> (CustomEmojiID) The identifier is local to this instance. |
{- "id": 1234
}
{- "success": true
}
Hide a community from public / "All" view. Admins only.
Hide Community
community_id required | integer <int32> (CommunityID) The identifier is local to this instance. |
hidden required | boolean |
reason | string |
{- "community_id": 1234,
- "hidden": true,
- "reason": "string"
}
{- "success": true
}
List a post likes. Admin-only.
post_id | integer <int32> (PostID) Example: post_id=1234 The identifier is local to this instance. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "post_likes": [
- {
- "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator_banned_from_community": true,
- "score": -32768
}
]
}
List a comment likes. Admin-only.
comment_id | integer <int32> (CommentID) Example: comment_id=1234 The identifier is local to this instance. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "comment_likes": [
- {
- "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator_banned_from_community": true,
- "score": -32768
}
]
}
Create your site
Create Site
name required | string |
sidebar | string |
description | string A shorter, one line description of your site. |
icon | string A url for your site's icon. |
banner | string A url for your site's banner. |
enable_downvotes | boolean Whether to enable downvotes |
enable_nsfw | boolean Whether to enable NSFW. |
community_creation_admin_only | boolean Limits community creation to admins only. |
require_email_verification | boolean Whether to require email verification |
application_question | string Your application question form. This is in markdown, and can be many questions. |
private_instance | boolean Whether your instance is public, or private |
default_theme | string The default theme. Usually "browser" |
default_post_listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
default_sort_type | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" The default sort, usually "active" |
legal_information | string An optional page of legal information |
application_email_admins | boolean Whether to email admins when receiving a new application. |
hide_modlog_mod_names | boolean Whether to hide moderator names from the modlog. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] A list of allowed discussion languages. |
slur_filter_regex | string A regex string of items to filter. |
actor_name_max_length | integer <int32> The max length of actor names. |
rate_limit_message | integer <int32> The number of messages allowed in a given time frame |
rate_limit_message_per_second | integer <int32> The number of messages allowed in a given time frame |
rate_limit_post | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_post_per_second | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_register | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_register_per_second | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_image | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_image_per_second | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_comment | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_comment_per_second | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_search | integer <int32> The number of searches allowed in a given time frame. |
rate_limit_search_per_second | integer <int32> The number of searches allowed in a given time frame. |
federation_enabled | boolean Whether to enable federation. |
federation_debug | boolean Enables federation debugging. |
captcha_enabled | boolean Whether to enable captchas for signups. |
captcha_difficulty | string The captcha difficulty. Can be easy, medium, or hard |
allowed_instances | Array of strings A list of allowed instances. If none are set, federation is open. |
blocked_instances | Array of strings A list of blocked instances. |
taglines | Array of strings A list of taglines shown at the top of the front page. |
registration_mode | string (RegistrationMode) Enum: "Closed" "RequireApplication" "Open" |
content_warning | string If present, nsfw content is visible by default. Should be displayed by frontends/clients when the site is first opened by a user. |
default_post_listing_mode | string (PostListingMode) Enum: "List" "Card" "SmallCard" Default value for LocalUser.post_listing_mode |
{- "name": "string",
- "sidebar": "string",
- "description": "string",
- "icon": "string",
- "banner": "string",
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "default_sort_type": "Active",
- "legal_information": "string",
- "application_email_admins": true,
- "hide_modlog_mod_names": true,
- "discussion_languages": [
- 1234
], - "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "rate_limit_message": 0,
- "rate_limit_message_per_second": 0,
- "rate_limit_post": 0,
- "rate_limit_post_per_second": 0,
- "rate_limit_register": 0,
- "rate_limit_register_per_second": 0,
- "rate_limit_image": 0,
- "rate_limit_image_per_second": 0,
- "rate_limit_comment": 0,
- "rate_limit_comment_per_second": 0,
- "rate_limit_search": 0,
- "rate_limit_search_per_second": 0,
- "federation_enabled": true,
- "federation_debug": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "allowed_instances": [
- "string"
], - "blocked_instances": [
- "string"
], - "taglines": [
- "string"
], - "registration_mode": "Closed",
- "content_warning": "string",
- "default_post_listing_mode": "List"
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Edit your site
Edit Site
name | string |
sidebar | string |
description | string A shorter, one line description of your site. |
icon | string A url for your site's icon. |
banner | string A url for your site's banner. |
enable_downvotes | boolean Whether to enable downvotes. |
enable_nsfw | boolean Whether to enable NSFW. |
community_creation_admin_only | boolean Limits community creation to admins only. |
require_email_verification | boolean Whether to require email verification |
application_question | string Your application question form. This is in markdown, and can be many questions. |
private_instance | boolean Whether your instance is public, or private |
default_theme | string The default theme. Usually "browser" |
default_post_listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
default_sort_type | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" The default sort, usually "active" |
legal_information | string An optional page of legal information |
application_email_admins | boolean Whether to email admins when receiving a new application. |
hide_modlog_mod_names | boolean Whether to hide moderator names from the modlog. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] A list of allowed discussion languages. |
slur_filter_regex | string A regex string of items to filter. |
actor_name_max_length | integer <int32> The max length of actor names. |
rate_limit_message | integer <int32> The number of messages allowed in a given time frame |
rate_limit_message_per_second | integer <int32> The number of messages allowed in a given time frame |
rate_limit_post | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_post_per_second | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_register | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_register_per_second | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_image | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_image_per_second | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_comment | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_comment_per_second | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_search | integer <int32> The number of searches allowed in a given time frame. |
rate_limit_search_per_second | integer <int32> The number of searches allowed in a given time frame. |
federation_enabled | boolean Whether to enable federation. |
federation_debug | boolean Enables federation debugging. |
captcha_enabled | boolean Whether to enable captchas for signups. |
captcha_difficulty | string The captcha difficulty. Can be easy, medium, or hard |
allowed_instances | Array of strings A list of allowed instances. If none are set, federation is open. |
blocked_instances | Array of strings A list of blocked instances. |
blocked_urls | Array of strings A list of blocked URLs |
taglines | Array of strings A list of taglines shown at the top of the front page. |
registration_mode | string (RegistrationMode) Enum: "Closed" "RequireApplication" "Open" |
reports_email_admins | boolean Whether to email admins for new reports. |
content_warning | string If present, nsfw content is visible by default. Should be displayed by frontends/clients when the site is first opened by a user. |
default_post_listing_mode | string (PostListingMode) Enum: "List" "Card" "SmallCard" Default value for LocalUser.post_listing_mode |
{- "name": "string",
- "sidebar": "string",
- "description": "string",
- "icon": "string",
- "banner": "string",
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "default_sort_type": "Active",
- "legal_information": "string",
- "application_email_admins": true,
- "hide_modlog_mod_names": true,
- "discussion_languages": [
- 1234
], - "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "rate_limit_message": 0,
- "rate_limit_message_per_second": 0,
- "rate_limit_post": 0,
- "rate_limit_post_per_second": 0,
- "rate_limit_register": 0,
- "rate_limit_register_per_second": 0,
- "rate_limit_image": 0,
- "rate_limit_image_per_second": 0,
- "rate_limit_comment": 0,
- "rate_limit_comment_per_second": 0,
- "rate_limit_search": 0,
- "rate_limit_search_per_second": 0,
- "federation_enabled": true,
- "federation_debug": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "allowed_instances": [
- "string"
], - "blocked_instances": [
- "string"
], - "blocked_urls": [
- "string"
], - "taglines": [
- "string"
], - "registration_mode": "Closed",
- "reports_email_admins": true,
- "content_warning": "string",
- "default_post_listing_mode": "List"
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "admins": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}, - "is_admin": true
}
], - "version": "string",
- "my_user": {
- "local_user_view": {
- "local_user": {
- "id": 1234,
- "person_id": 1234,
- "email": "user@example.com",
- "show_nsfw": true,
- "theme": "string",
- "default_sort_type": "Active",
- "default_listing_type": "All",
- "interface_language": "string",
- "show_avatars": true,
- "send_notifications_to_email": true,
- "show_scores": true,
- "show_bot_accounts": true,
- "show_read_posts": true,
- "email_verified": true,
- "accepted_application": true,
- "open_links_in_new_tab": true,
- "blur_nsfw": true,
- "auto_expand": true,
- "infinite_scroll_enabled": true,
- "admin": true,
- "post_listing_mode": "List",
- "totp_2fa_enabled": true,
- "enable_keyboard_navigation": true,
- "enable_animated_images": true,
- "collapse_bot_comments": true
}, - "local_user_vote_display_mode": {
- "local_user_id": 1234,
- "score": true,
- "upvotes": true,
- "downvotes": true,
- "upvote_percentage": true
}, - "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "counts": {
- "person_id": 1234,
- "post_count": 0,
- "comment_count": 0
}
}, - "follows": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "follower": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "moderates": [
- {
- "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}, - "moderator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "community_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "community": {
- "id": 1234,
- "name": "mylittlepony",
- "title": "MLP: Friendship is Magic Reddit Community",
- "description": "string",
- "removed": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": true,
- "nsfw": true,
- "local": true,
- "hidden": true,
- "posting_restricted_to_mods": true,
- "instance_id": 1234,
- "visibility": "Public"
}
}
], - "person_blocks": [
- {
- "person": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "target": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
], - "discussion_languages": [
- 1234
]
}, - "all_languages": [
- {
- "id": 1234,
- "code": "sv",
- "name": "Svenska"
}
], - "discussion_languages": [
- 1234
], - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
], - "custom_emojis": [
- {
- "custom_emoji": {
- "id": 1234,
- "local_site_id": 1234,
- "shortcode": "string",
- "alt_text": "string",
- "category": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "keywords": [
- {
- "custom_emoji_id": 1234,
- "keyword": "string"
}
]
}
], - "blocked_urls": [
- {
- "id": 0,
- "url": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Create your site
Create Site
name required | string |
sidebar | string |
description | string A shorter, one line description of your site. |
icon | string A url for your site's icon. |
banner | string A url for your site's banner. |
enable_downvotes | boolean Whether to enable downvotes |
enable_nsfw | boolean Whether to enable NSFW. |
community_creation_admin_only | boolean Limits community creation to admins only. |
require_email_verification | boolean Whether to require email verification |
application_question | string Your application question form. This is in markdown, and can be many questions. |
private_instance | boolean Whether your instance is public, or private |
default_theme | string The default theme. Usually "browser" |
default_post_listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
default_sort_type | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" The default sort, usually "active" |
legal_information | string An optional page of legal information |
application_email_admins | boolean Whether to email admins when receiving a new application. |
hide_modlog_mod_names | boolean Whether to hide moderator names from the modlog. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] A list of allowed discussion languages. |
slur_filter_regex | string A regex string of items to filter. |
actor_name_max_length | integer <int32> The max length of actor names. |
rate_limit_message | integer <int32> The number of messages allowed in a given time frame |
rate_limit_message_per_second | integer <int32> The number of messages allowed in a given time frame |
rate_limit_post | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_post_per_second | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_register | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_register_per_second | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_image | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_image_per_second | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_comment | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_comment_per_second | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_search | integer <int32> The number of searches allowed in a given time frame. |
rate_limit_search_per_second | integer <int32> The number of searches allowed in a given time frame. |
federation_enabled | boolean Whether to enable federation. |
federation_debug | boolean Enables federation debugging. |
captcha_enabled | boolean Whether to enable captchas for signups. |
captcha_difficulty | string The captcha difficulty. Can be easy, medium, or hard |
allowed_instances | Array of strings A list of allowed instances. If none are set, federation is open. |
blocked_instances | Array of strings A list of blocked instances. |
taglines | Array of strings A list of taglines shown at the top of the front page. |
registration_mode | string (RegistrationMode) Enum: "Closed" "RequireApplication" "Open" |
content_warning | string If present, nsfw content is visible by default. Should be displayed by frontends/clients when the site is first opened by a user. |
default_post_listing_mode | string (PostListingMode) Enum: "List" "Card" "SmallCard" Default value for LocalUser.post_listing_mode |
{- "name": "string",
- "sidebar": "string",
- "description": "string",
- "icon": "string",
- "banner": "string",
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "default_sort_type": "Active",
- "legal_information": "string",
- "application_email_admins": true,
- "hide_modlog_mod_names": true,
- "discussion_languages": [
- 1234
], - "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "rate_limit_message": 0,
- "rate_limit_message_per_second": 0,
- "rate_limit_post": 0,
- "rate_limit_post_per_second": 0,
- "rate_limit_register": 0,
- "rate_limit_register_per_second": 0,
- "rate_limit_image": 0,
- "rate_limit_image_per_second": 0,
- "rate_limit_comment": 0,
- "rate_limit_comment_per_second": 0,
- "rate_limit_search": 0,
- "rate_limit_search_per_second": 0,
- "federation_enabled": true,
- "federation_debug": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "allowed_instances": [
- "string"
], - "blocked_instances": [
- "string"
], - "taglines": [
- "string"
], - "registration_mode": "Closed",
- "content_warning": "string",
- "default_post_listing_mode": "List"
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Edit your site
Edit Site
name | string |
sidebar | string |
description | string A shorter, one line description of your site. |
icon | string A url for your site's icon. |
banner | string A url for your site's banner. |
enable_downvotes | boolean Whether to enable downvotes. |
enable_nsfw | boolean Whether to enable NSFW. |
community_creation_admin_only | boolean Limits community creation to admins only. |
require_email_verification | boolean Whether to require email verification |
application_question | string Your application question form. This is in markdown, and can be many questions. |
private_instance | boolean Whether your instance is public, or private |
default_theme | string The default theme. Usually "browser" |
default_post_listing_type | string (ListingType) Enum: "All" "Local" "Subscribed" "ModeratorView" |
default_sort_type | string (SortType) Enum: "Active" "Hot" "New" "Old" "TopSixHour" "TopTwelveHour" "TopDay" "TopWeek" "TopMonth" "TopYear" "TopAll" "MostComments" "NewComments" "TopThreeMonths" "TopSixMonths" "TopNineMonths" "Controversial" "Scaled" The default sort, usually "active" |
legal_information | string An optional page of legal information |
application_email_admins | boolean Whether to email admins when receiving a new application. |
hide_modlog_mod_names | boolean Whether to hide moderator names from the modlog. |
discussion_languages | Array of integers <int32> (LanguageID) [ items <int32 > ] A list of allowed discussion languages. |
slur_filter_regex | string A regex string of items to filter. |
actor_name_max_length | integer <int32> The max length of actor names. |
rate_limit_message | integer <int32> The number of messages allowed in a given time frame |
rate_limit_message_per_second | integer <int32> The number of messages allowed in a given time frame |
rate_limit_post | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_post_per_second | integer <int32> The number of posts allowed in a given time frame. |
rate_limit_register | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_register_per_second | integer <int32> The number of registrations allowed in a given time frame. |
rate_limit_image | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_image_per_second | integer <int32> The number of image uploads allowed in a given time frame. |
rate_limit_comment | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_comment_per_second | integer <int32> The number of comments allowed in a given time frame. |
rate_limit_search | integer <int32> The number of searches allowed in a given time frame. |
rate_limit_search_per_second | integer <int32> The number of searches allowed in a given time frame. |
federation_enabled | boolean Whether to enable federation. |
federation_debug | boolean Enables federation debugging. |
captcha_enabled | boolean Whether to enable captchas for signups. |
captcha_difficulty | string The captcha difficulty. Can be easy, medium, or hard |
allowed_instances | Array of strings A list of allowed instances. If none are set, federation is open. |
blocked_instances | Array of strings A list of blocked instances. |
blocked_urls | Array of strings A list of blocked URLs |
taglines | Array of strings A list of taglines shown at the top of the front page. |
registration_mode | string (RegistrationMode) Enum: "Closed" "RequireApplication" "Open" |
reports_email_admins | boolean Whether to email admins for new reports. |
content_warning | string If present, nsfw content is visible by default. Should be displayed by frontends/clients when the site is first opened by a user. |
default_post_listing_mode | string (PostListingMode) Enum: "List" "Card" "SmallCard" Default value for LocalUser.post_listing_mode |
{- "name": "string",
- "sidebar": "string",
- "description": "string",
- "icon": "string",
- "banner": "string",
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "default_sort_type": "Active",
- "legal_information": "string",
- "application_email_admins": true,
- "hide_modlog_mod_names": true,
- "discussion_languages": [
- 1234
], - "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "rate_limit_message": 0,
- "rate_limit_message_per_second": 0,
- "rate_limit_post": 0,
- "rate_limit_post_per_second": 0,
- "rate_limit_register": 0,
- "rate_limit_register_per_second": 0,
- "rate_limit_image": 0,
- "rate_limit_image_per_second": 0,
- "rate_limit_comment": 0,
- "rate_limit_comment_per_second": 0,
- "rate_limit_search": 0,
- "rate_limit_search_per_second": 0,
- "federation_enabled": true,
- "federation_debug": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "allowed_instances": [
- "string"
], - "blocked_instances": [
- "string"
], - "blocked_urls": [
- "string"
], - "taglines": [
- "string"
], - "registration_mode": "Closed",
- "reports_email_admins": true,
- "content_warning": "string",
- "default_post_listing_mode": "List"
}
{- "site_view": {
- "site": {
- "id": 1234,
- "name": "string",
- "sidebar": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "description": "string",
- "last_refreshed_at": "2019-08-24T14:15:22Z",
- "instance_id": 1234,
- "content_warning": "string"
}, - "local_site": {
- "id": 1234,
- "site_id": 1234,
- "site_setup": true,
- "enable_downvotes": true,
- "enable_nsfw": true,
- "community_creation_admin_only": true,
- "require_email_verification": true,
- "application_question": "string",
- "private_instance": true,
- "default_theme": "string",
- "default_post_listing_type": "All",
- "legal_information": "string",
- "hide_modlog_mod_names": true,
- "application_email_admins": true,
- "slur_filter_regex": "string",
- "actor_name_max_length": 0,
- "federation_enabled": true,
- "captcha_enabled": true,
- "captcha_difficulty": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "registration_mode": "Closed",
- "reports_email_admins": true,
- "federation_signed_fetch": true,
- "default_post_listing_mode": "List",
- "default_sort_type": "Active"
}, - "local_site_rate_limit": {
- "local_site_id": 1234,
- "message": 0,
- "message_per_second": 0,
- "post": 0,
- "post_per_second": 0,
- "register": 0,
- "register_per_second": 0,
- "image": 0,
- "image_per_second": 0,
- "comment": 0,
- "comment_per_second": 0,
- "search": 0,
- "search_per_second": 0,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "import_user_settings": 0,
- "import_user_settings_per_second": 0
}, - "counts": {
- "site_id": 1234,
- "users": 0,
- "posts": 0,
- "comments": 0,
- "communities": 0,
- "users_active_day": 0,
- "users_active_week": 0,
- "users_active_month": 0,
- "users_active_half_year": 0
}
}, - "taglines": [
- {
- "id": 0,
- "local_site_id": 1234,
- "content": "string",
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
]
}
Get / fetch private messages
unread_only | boolean Specified the filter on the results to return only unread elements. |
creator_id | integer <int32> (PersonID) Example: creator_id=1234 The identifier is local to this instance. |
page | integer <int64> Pagination. Page number. The page number to fetch the results. This allows to fetch large data sets one page at a time. The first page is number 1. |
limit | integer <int64> Pagination. Desired number of results per page. Specifies the maximum number of results per page. Note: This is server specific but in regular Lemmy install the default value is 10 and max is 50. |
{- "private_messages": [
- {
- "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
]
}
Create a private message.
Create Private Message
content required | string |
recipient_id required | integer <int32> (PersonID) The identifier is local to this instance. |
{- "content": "string",
- "recipient_id": 1234
}
{- "private_message_view": {
- "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Edit a private message.
Edit Private Message
private_message_id required | integer <int32> (PrivateMessageID) The identifer is local to this instance. |
content required | string |
{- "private_message_id": 1234,
- "content": "string"
}
{- "private_message_view": {
- "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Delete a private message.
Delete Private Message
private_message_id required | integer <int32> (PrivateMessageID) The identifer is local to this instance. |
deleted required | boolean |
{- "private_message_id": 1234,
- "deleted": true
}
{- "private_message_view": {
- "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Mark a private message as read.
Mark Private Message as Read
private_message_id required | integer <int32> (PrivateMessageID) The identifer is local to this instance. |
read required | boolean |
{- "private_message_id": 1234,
- "read": true
}
{- "private_message_view": {
- "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "recipient": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Create a report for a private message.
Report Private Message
private_message_id required | integer <int32> (PrivateMessageID) The identifer is local to this instance. |
reason required | string |
{- "private_message_id": 1234,
- "reason": "string"
}
{- "private_message_report_view": {
- "private_message_report": {
- "id": 1234,
- "creator_id": 1234,
- "private_message_id": 1234,
- "original_pm_text": "string",
- "reason": "string",
- "resolved": true,
- "resolver_id": 1234,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}, - "private_message": {
- "id": 1234,
- "creator_id": 1234,
- "recipient_id": 1234,
- "content": "string",
- "deleted": true,
- "read": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "local": true
}, - "private_message_creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "creator": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}, - "resolver": {
- "id": 1234,
- "name": "helloworld",
- "display_name": "Hello World!",
- "banned": true,
- "published": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "bio": "string",
- "local": true,
- "deleted": true,
- "matrix_user_id": "@person:matrix.org",
- "bot_account": true,
- "ban_expires": "2019-08-24T14:15:22Z",
- "instance_id": 1234
}
}
}
Upload an image to the server.
Upload Image
images[] | Array of strings <binary> |
{- "files": [
- {
- "delete_token": "0eac5362-779f-4b35-827d-73dfb244c48e",
- "file": "lkWZDRvugm.jpg"
}
], - "msg": "ok"
}
Delete a pictrs image.
delete_token required | string Example: 0eac5362-779f-4b35-827d-73dfb244c48e The delete token as a proof of ownership of the given file. |
filename required | string Example: lkWZDRvugm.jpg The name of the image to delete. |
{- "error": "incorrect_login",
- "message": "string"
}
Get the image content.
filename required | string Example: lkWZDRvugm.jpg The name of the image to fetch. |
format | string Enum: "apng" "avif" "gif" "jpg" "jxl" "png" "webp" Example: format=png The desired image format. Note that while |
thumbnail | integer <int32> >= 1 Example: thumbnail=256 Fetch and image suitable to be used as a thumbnail of the image fitting inside an {int} by {int} square. |