Download OpenAPI specification:Download
commentID required | integer |
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "id": 0,
- "remote_url": "string",
- "content_text": "string",
- "content_html": "string",
- "sensitive": true,
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "deleted": true,
- "replies": {
- "items": [ ],
- "next_page": "string"
}, - "your_vote": { },
- "parent": {
- "id": 0
}, - "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "sensitive": true
}
}
commentID required | integer |
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
depth | integer Number of levels to expand replies for. Defaults to 3. |
limit | integer |
sort | string (SortType) Enum: "hot" "new" |
page | string |
{- "items": [
- {
- "id": 0,
- "remote_url": "string",
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string",
- "sensitive": true,
- "attachments": [
- {
- "url": "string"
}
], - "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "replies": {
- "items": [
- { }
], - "next_page": "string"
}, - "your_vote": { }
}
], - "next_page": "string"
}
commentID required | integer |
content_text | string |
content_markdown | string |
attachment | string Must be a |
sensitive | boolean |
{- "content_text": "string",
- "content_markdown": "string",
- "attachment": "string",
- "sensitive": true
}
{- "id": 0,
- "post": {
- "id": 0
}
}
commentID required | integer |
page required | string |
{- "items": [
- {
- "user": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}
}
], - "next_page": "string"
}
include_your | boolean If true, will include |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
search | string |
your_follow.accepted | boolean Filter to either communities you are following or waiting to follow. Requires login. |
you_are_moderator | boolean Filter based on whether you are a moderator of the community. Requires login. |
local | boolean Filter to either local or remote communities. |
limit | integer |
page | string |
sort | string Enum: "old_local" "alphabetic" |
{- "items": [
- {
- "description": {
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string"
}, - "feeds": {
- "atom": {
- "new": "string"
}
}, - "you_are_moderator": true,
- "your_follow": {
- "accepted": true
}, - "pending_moderation_actions": 0,
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "deleted": true
}
], - "next_page": "string"
}
communityID required | integer |
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "description": {
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string"
}, - "feeds": {
- "atom": {
- "new": "string"
}
}, - "you_are_moderator": true,
- "your_follow": {
- "accepted": true
}, - "pending_moderation_actions": 0,
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "deleted": true
}
communityID required | integer |
description_text | string |
description_markdown | string |
description_html | string |
{- "description_text": "string",
- "description_markdown": "string",
- "description_html": "string"
}
communityID required | integer |
try_wait_for_accept | boolean If true, will wait before responding to give the remote server time to accept the follow |
{- "try_wait_for_accept": true
}
{- "accepted": true
}
communityID required | integer |
limit | integer |
page | string |
{- "items": [
- {
- "time": "2019-08-24T14:15:22Z",
- "type": "reject_post",
- "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "sensitive": true
}
}
], - "next_page": "string"
}
to_community | integer |
to_this_site_admin | boolean |
dismissed | boolean Filter by whether the flag is dismissed for the target. Requires exactly one target filter. |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "items": [
- {
- "id": 0,
- "flagger": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created_local": "2019-08-24T14:15:22Z",
- "content": {
- "content_text": "string"
}, - "type": "post",
- "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "href": "string",
- "content_text": "string",
- "content_html": "string",
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "community": {
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string"
}, - "score": 0,
- "sticky": true,
- "your_vote": { },
- "content_markdown": "string",
- "sensitive": true,
- "replies_count_total": 0
}
}
], - "next_page": "string"
}
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "software": {
- "name": "lotide",
- "version": "0.5.0-pre"
}, - "description": {
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string"
}, - "web_push_vapid_key": "string",
- "signup_allowed": true,
- "invitations_enabled": true,
- "community_creation_requirement": "site_admin",
- "invitation_creation_requirement": "site_admin"
}
description_text | string |
description_markdown | string |
description_html | string |
signup_allowed | boolean |
invitations_enabled | boolean |
community_creation_requirement | string or null Value: "site_admin" |
invitation_creation_requirement | string or null Value: "site_admin" |
{- "description_text": "string",
- "description_markdown": "string",
- "description_html": "string",
- "signup_allowed": true,
- "invitations_enabled": true,
- "community_creation_requirement": "site_admin",
- "invitation_creation_requirement": "site_admin"
}
{- "items": [
- {
- "time": "2019-08-24T14:15:22Z",
- "type": "unsuspend_user",
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "community": {
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "deleted": true
}, - "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "sensitive": true
}, - "user": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}
}
], - "next_page": "string"
}
{- "items": [
- {
- "id": 0,
- "key": "string",
- "created_by": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created_at": "2019-08-24T14:15:22Z",
- "used": true
}
], - "next_page": "string"
}
username required | string |
password required | string |
{- "username": "string",
- "password": "string"
}
{- "token": "string",
- "user": {
- "id": 0,
- "username": "string",
- "is_site_admin": true,
- "has_unread_notifications": true,
- "has_pending_moderation_actions": true
}, - "permissions": {
- "create_community": {
- "allowed": true
}, - "create_invitation": {
- "allowed": true
}
}
}
{- "user": {
- "id": 0,
- "username": "string",
- "is_site_admin": true,
- "has_unread_notifications": true,
- "has_pending_moderation_actions": true
}, - "permissions": {
- "create_community": {
- "allowed": true
}, - "create_invitation": {
- "allowed": true
}
}
}
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
SortType (string) or string | |
search | string |
in_any_local_community | boolean Filter by whether the post is approved in a local community |
use_aggregate_filters | boolean If true, will omit posts from communities marked as hide_posts_from_aggregates |
community | integer If present, will filter to posts approved in the specified community |
in_your_follows | boolean Filter by whether the post is approved in one of the communities you follow |
created_within | string Example: created_within=P6M How far into the past to include posts from, as an ISO8601 duration. |
sort_sticky | boolean If true, will sort sticky posts to the top |
limit | integer |
page | string |
{- "items": [
- {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "href": "string",
- "content_text": "string",
- "content_html": "string",
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "community": {
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string"
}, - "score": 0,
- "sticky": true,
- "your_vote": { },
- "content_markdown": "string",
- "sensitive": true,
- "replies_count_total": 0
}
], - "next_page": "string"
}
community required | integer |
href | string URL target for the post. Can be set to a hosted media file by specifying |
content_markdown | string |
content_text | string |
title required | string |
object | |
sensitive | boolean |
{- "community": 0,
- "href": "string",
- "content_markdown": "string",
- "content_text": "string",
- "title": "string",
- "poll": {
- "multiple": true,
- "options": [
- "string"
], - "closed_in": "PT10M"
}, - "sensitive": true
}
{- "id": 0
}
postID required | integer |
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "approved": true,
- "local": true,
- "rejected": true,
- "poll": {
- "multiple": true,
- "options": [
- {
- "id": 0,
- "name": "string",
- "votes": 0
}
], - "closed_at": "2019-08-24T14:15:22Z",
- "is_closed": true,
- "your_vote": {
- "options": [
- {
- "id": 0
}
]
}
}, - "id": 0,
- "title": "string",
- "remote_url": "string",
- "href": "string",
- "content_text": "string",
- "content_html": "string",
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "community": {
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string"
}, - "score": 0,
- "sticky": true,
- "your_vote": { },
- "content_markdown": "string",
- "sensitive": true
}
postID required | integer |
content_text | string |
to_community required | boolean |
to_site_admin required | boolean |
to_remote_site_admin | boolean |
{- "content_text": "string",
- "to_community": true,
- "to_site_admin": true,
- "to_remote_site_admin": true
}
{ }
postID required | integer |
include_your | boolean |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
limit | integer |
sort | string (SortType) Enum: "hot" "new" |
page | string |
{- "items": [
- {
- "id": 0,
- "remote_url": "string",
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string",
- "sensitive": true,
- "attachments": [
- {
- "url": "string"
}
], - "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "replies": {
- "items": [
- { }
], - "next_page": "string"
}, - "your_vote": { }
}
], - "next_page": "string"
}
postID required | integer |
content_text | string |
content_markdown | string |
attachment | string Must be a |
sensitive | boolean |
{- "content_text": "string",
- "content_markdown": "string",
- "attachment": "string",
- "sensitive": true
}
{- "id": 0
}
postID required | integer |
page required | string |
{- "items": [
- {
- "user": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}
}
], - "next_page": "string"
}
local required | boolean Filter by whether the user is local. Currently required to be true. |
username required | string Filter by the user's name |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "items": [
- {
- "description": {
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string"
}, - "your_note": "string",
- "suspended": true,
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}
], - "next_page": "string"
}
username required | string |
password required | string |
email_address | string <email> |
invitation_key | string |
login | boolean If true, will also create a login token for the new user |
{- "username": "string",
- "password": "string",
- "email_address": "user@example.com",
- "invitation_key": "string",
- "login": true
}
{- "user": {
- "id": 0,
- "username": "string",
- "is_site_admin": true,
- "has_unread_notifications": true,
- "has_pending_moderation_actions": true
}, - "permissions": {
- "create_community": {
- "allowed": true
}, - "create_invitation": {
- "allowed": true
}
}, - "token": "string"
}
required | string or integer (PathUserID) |
include_your | boolean If true, will fetch your_note |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "description": {
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string"
}, - "your_note": "string",
- "suspended": true,
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}
required | string or integer (PathUserID) |
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
limit | integer |
page | string |
{- "items": [
- {
- "type": "comment",
- "id": 0,
- "content_text": "string",
- "content_html": "string",
- "sensitive": true,
- "created": "2019-08-24T14:15:22Z",
- "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "sensitive": true
}
}
], - "next_page": "string"
}
description_text | string |
description_markdown | string |
description_html | string |
email_address | string <email> |
password | string <password> |
avatar | string User profile image. Must be a |
{- "description_text": "string",
- "description_markdown": "string",
- "description_html": "string",
- "email_address": "user@example.com",
- "password": "pa$$word",
- "avatar": "string"
}
image_handling | string Enum: "remove" "preserve" "convert_to_links" What to do with inline images in HTML content. Defaults to |
{- "items": [
- {
- "unseen": true,
- "type": "post_reply",
- "reply": {
- "id": 0,
- "remote_url": "string",
- "content_text": "string",
- "content_markdown": "string",
- "content_html": "string",
- "sensitive": true,
- "attachments": [
- {
- "url": "string"
}
], - "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "deleted": true,
- "local": true,
- "replies": {
- "items": [
- { }
], - "next_page": "string"
}, - "your_vote": { }
}, - "post": {
- "id": 0,
- "title": "string",
- "remote_url": "string",
- "href": "string",
- "content_text": "string",
- "content_html": "string",
- "author": {
- "id": 0,
- "username": "string",
- "local": true,
- "host": "string",
- "remote_url": "string",
- "is_bot": true,
- "avatar": {
- "url": "string"
}
}, - "created": "2019-08-24T14:15:22Z",
- "community": {
- "id": 0,
- "name": "string",
- "local": true,
- "host": "string",
- "remote_url": "string"
}, - "score": 0,
- "sticky": true,
- "your_vote": { },
- "content_markdown": "string",
- "sensitive": true,
- "replies_count_total": 0
}
}
], - "next_page": "string"
}
type required | string Value: "web_push" |
endpoint required | string |
p256dh_key required | string |
auth_key required | string |
{- "type": "web_push",
- "endpoint": "string",
- "p256dh_key": "string",
- "auth_key": "string"
}
{- "id": 0
}