Mbin API (1.0.0)
Download OpenAPI specification:Download
Documentation for interacting with content on Mbin through the API
Purges an entry from the instance, deleting it completely. This action is irreversible.
Authorizations:
path Parameters
entry_id required | integer The entry to purge |
Responses
Response samples
- 401
- 403
- 404
- 429
{- "title": "An error occurred",
- "status": 401,
- "detail": "Unauthorized"
}
Changes the magazine of the entry to target
Authorizations:
path Parameters
entry_id required | integer The entry to move |
target_id required | integer The magazine to move the entry to |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
Purges a comment from the instance, deleting it completely. This action is irreversible.
Authorizations:
path Parameters
comment_id required | integer The comment to purge |
Responses
Response samples
- 401
- 403
- 404
- 429
{- "title": "An error occurred",
- "status": 401,
- "detail": "Unauthorized"
}
Purges a post comment from the instance, deleting it completely. This action is irreversible.
Authorizations:
path Parameters
comment_id required | integer The comment to purge |
Responses
Response samples
- 401
- 403
- 404
- 429
{- "title": "An error occurred",
- "status": 401,
- "detail": "Unauthorized"
}
Retrieves a list of users currently banned from the instance
Authorizations:
query Parameters
p | integer >= 1 Default: 1 Page of users to retrieve |
perPage | integer [ 1 .. 100 ] Default: 48 Number of users per page |
group | string Default: "all" Enum: "all" "local" "remote" What group of users to retrieve |
Responses
Response samples
- 200
- 401
- 403
- 429
{- "items": [
- {
- "isBanned": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "cover": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "username": "string",
- "followersCount": 0,
- "about": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "apProfileId": "string",
- "apId": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "userId": 0,
- "serverSoftware": "string",
- "serverSoftwareVersion": "string"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
Bans a user from the instance
Authorizations:
path Parameters
user_id required | integer The user to ban |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "isBanned": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "cover": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "username": "string",
- "followersCount": 0,
- "about": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "apProfileId": "string",
- "apId": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "userId": 0,
- "serverSoftware": "string",
- "serverSoftwareVersion": "string"
}
Unbans a user from the instance
Authorizations:
path Parameters
user_id required | integer The user to unban |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "isBanned": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "cover": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "username": "string",
- "followersCount": 0,
- "about": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "apProfileId": "string",
- "apId": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "userId": 0,
- "serverSoftware": "string",
- "serverSoftwareVersion": "string"
}
Marks the user for deletion in 30 days.
Authorizations:
path Parameters
user_id required | integer The user to delete |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "cover": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "username": "string",
- "followersCount": 0,
- "about": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "apProfileId": "string",
- "apId": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "userId": 0,
- "serverSoftware": "string",
- "serverSoftwareVersion": "string"
}
Forcibly verifies a user on the instance, with no regard for the email confirmation
Authorizations:
path Parameters
user_id required | integer The user to verify |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "cover": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "username": "string",
- "followersCount": 0,
- "about": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "apProfileId": "string",
- "apId": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "userId": 0,
- "serverSoftware": "string",
- "serverSoftwareVersion": "string"
}
Response samples
- 200
- 401
- 403
- 429
{- "KBIN_DOMAIN": "string",
- "KBIN_TITLE": "string",
- "KBIN_META_TITLE": "string",
- "KBIN_META_KEYWORDS": "string",
- "KBIN_META_DESCRIPTION": "string",
- "KBIN_DEFAULT_LANG": "string",
- "KBIN_CONTACT_EMAIL": "string",
- "KBIN_SENDER_EMAIL": "string",
- "MBIN_DEFAULT_THEME": "string",
- "KBIN_JS_ENABLED": true,
- "KBIN_FEDERATION_ENABLED": true,
- "KBIN_REGISTRATIONS_ENABLED": true,
- "KBIN_BANNED_INSTANCES": [
- "string"
], - "KBIN_HEADER_LOGO": true,
- "KBIN_CAPTCHA_ENABLED": true,
- "KBIN_MERCURE_ENABLED": true,
- "KBIN_FEDERATION_PAGE_ENABLED": true,
- "KBIN_ADMIN_ONLY_OAUTH_CLIENTS": true,
- "MBIN_SSO_ONLY_MODE": true,
- "MBIN_PRIVATE_INSTANCE": true,
- "KBIN_FEDERATED_SEARCH_ONLY_LOGGEDIN": true,
- "MBIN_SIDEBAR_SECTIONS_LOCAL_ONLY": true,
- "MBIN_SSO_REGISTRATIONS_ENABLED": true,
- "MBIN_RESTRICT_MAGAZINE_CREATION": true,
- "MBIN_SSO_SHOW_FIRST": true,
- "MAX_IMAGE_BYTES": 0,
- "MBIN_DOWNVOTES_MODE": "string"
}
put_api_admin_update_settings
Authorizations:
Request Body schema: application/json
KBIN_DOMAIN required | string |
KBIN_TITLE required | string |
KBIN_META_TITLE required | string |
KBIN_META_KEYWORDS required | string |
KBIN_META_DESCRIPTION required | string |
KBIN_DEFAULT_LANG required | string |
KBIN_CONTACT_EMAIL required | string |
KBIN_SENDER_EMAIL required | string |
MBIN_DEFAULT_THEME required | string |
KBIN_JS_ENABLED required | boolean |
KBIN_FEDERATION_ENABLED required | boolean |
KBIN_REGISTRATIONS_ENABLED required | boolean |
KBIN_BANNED_INSTANCES | Array of strings |
KBIN_HEADER_LOGO required | boolean |
KBIN_CAPTCHA_ENABLED required | boolean |
KBIN_MERCURE_ENABLED required | boolean |
KBIN_FEDERATION_PAGE_ENABLED required | boolean |
KBIN_ADMIN_ONLY_OAUTH_CLIENTS required | boolean |
MBIN_SSO_ONLY_MODE required | boolean |
MBIN_PRIVATE_INSTANCE required | boolean |
KBIN_FEDERATED_SEARCH_ONLY_LOGGEDIN required | boolean |
MBIN_SIDEBAR_SECTIONS_LOCAL_ONLY required | boolean |
MBIN_SSO_REGISTRATIONS_ENABLED required | boolean |
MBIN_RESTRICT_MAGAZINE_CREATION required | boolean |
MBIN_SSO_SHOW_FIRST required | boolean |
MAX_IMAGE_BYTES required | integer |
MBIN_DOWNVOTES_MODE required | string |
Responses
Request samples
- Payload
{- "KBIN_DOMAIN": "string",
- "KBIN_TITLE": "string",
- "KBIN_META_TITLE": "string",
- "KBIN_META_KEYWORDS": "string",
- "KBIN_META_DESCRIPTION": "string",
- "KBIN_DEFAULT_LANG": "string",
- "KBIN_CONTACT_EMAIL": "string",
- "KBIN_SENDER_EMAIL": "string",
- "MBIN_DEFAULT_THEME": "string",
- "KBIN_JS_ENABLED": true,
- "KBIN_FEDERATION_ENABLED": true,
- "KBIN_REGISTRATIONS_ENABLED": true,
- "KBIN_BANNED_INSTANCES": [
- "string"
], - "KBIN_HEADER_LOGO": true,
- "KBIN_CAPTCHA_ENABLED": true,
- "KBIN_MERCURE_ENABLED": true,
- "KBIN_FEDERATION_PAGE_ENABLED": true,
- "KBIN_ADMIN_ONLY_OAUTH_CLIENTS": true,
- "MBIN_SSO_ONLY_MODE": true,
- "MBIN_PRIVATE_INSTANCE": true,
- "KBIN_FEDERATED_SEARCH_ONLY_LOGGEDIN": true,
- "MBIN_SIDEBAR_SECTIONS_LOCAL_ONLY": true,
- "MBIN_SSO_REGISTRATIONS_ENABLED": true,
- "MBIN_RESTRICT_MAGAZINE_CREATION": true,
- "MBIN_SSO_SHOW_FIRST": true,
- "MAX_IMAGE_BYTES": 0,
- "MBIN_DOWNVOTES_MODE": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 429
{- "KBIN_DOMAIN": "string",
- "KBIN_TITLE": "string",
- "KBIN_META_TITLE": "string",
- "KBIN_META_KEYWORDS": "string",
- "KBIN_META_DESCRIPTION": "string",
- "KBIN_DEFAULT_LANG": "string",
- "KBIN_CONTACT_EMAIL": "string",
- "KBIN_SENDER_EMAIL": "string",
- "MBIN_DEFAULT_THEME": "string",
- "KBIN_JS_ENABLED": true,
- "KBIN_FEDERATION_ENABLED": true,
- "KBIN_REGISTRATIONS_ENABLED": true,
- "KBIN_BANNED_INSTANCES": [
- "string"
], - "KBIN_HEADER_LOGO": true,
- "KBIN_CAPTCHA_ENABLED": true,
- "KBIN_MERCURE_ENABLED": true,
- "KBIN_FEDERATION_PAGE_ENABLED": true,
- "KBIN_ADMIN_ONLY_OAUTH_CLIENTS": true,
- "MBIN_SSO_ONLY_MODE": true,
- "MBIN_PRIVATE_INSTANCE": true,
- "KBIN_FEDERATED_SEARCH_ONLY_LOGGEDIN": true,
- "MBIN_SIDEBAR_SECTIONS_LOCAL_ONLY": true,
- "MBIN_SSO_REGISTRATIONS_ENABLED": true,
- "MBIN_RESTRICT_MAGAZINE_CREATION": true,
- "MBIN_SSO_SHOW_FIRST": true,
- "MAX_IMAGE_BYTES": 0,
- "MBIN_DOWNVOTES_MODE": "string"
}
put_api_admin_update_pages
Authorizations:
path Parameters
page required | string Enum: "about" "contact" "faq" "privacyPolicy" "terms" |
Request Body schema: application/json
body required | string |
Responses
Request samples
- Payload
{- "body": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 429
{- "about": "string",
- "contact": "string",
- "faq": "string",
- "privacyPolicy": "string",
- "terms": "string",
- "downvotesMode": "disabled"
}
Retrieve oauth2 client access stats in a particular interval.
Authorizations:
query Parameters
start | string <date> The start date of the window to retrieve views in. If not provided defaults to 1 |
end | string <date> The end date of the window to retrieve views in. If not provided defaults to today |
resolution required | string Enum: "all" "year" "month" "day" "hour" "second" "milliseconds" The size of chunks to aggregate views in |
Responses
Response samples
- 200
- 400
- 401
- 403
- 429
{- "data": [
- {
- "client": "string",
- "datetime": "string",
- "count": 0
}
]
}
get_api_admin_retrieve_client
Authorizations:
path Parameters
client_identifier required | string The OAuth2 client to retrieve |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "identifier": "string",
- "name": "string",
- "contactEmail": "string",
- "description": "string",
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "grants": [
- "string"
], - "scopes": [
- "string"
]
}
get_api_admin_retrieve_client_collection
Authorizations:
query Parameters
p | integer >= 1 Default: 1 Page of clients to retrieve |
perPage | integer [ 1 .. 100 ] Default: 15 Number of clients per page |
Responses
Response samples
- 200
- 401
- 403
- 404
- 429
{- "items": [
- {
- "identifier": "string",
- "name": "string",
- "contactEmail": "string",
- "description": "string",
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "active": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "grants": [
- "string"
], - "scopes": [
- "string"
]
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
put_api_admin_update_defederated_instances
Authorizations:
Request Body schema: application/json
instances | Array of strings <url> [ items <url > ] |
Responses
Request samples
- Payload
{- "instances": [
- "string"
]
}
Response samples
- 200
- 400
- 401
- 403
- 429
{- "instances": [
- "string"
]
}
get_api_domain_entries_retrieve
path Parameters
domain_id required | integer The domain to retrieve entries from |
query Parameters
sort | any Default: "hot" Enum: "active" "hot" "newest" "oldest" "top" "commented" The sorting method to use during entry fetch |
time | any Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of entries to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of entries to retrieve per page |
lang[] | Array of strings[ items [ 2 .. 3 ] characters ] Language(s) of entries to return |
usePreferredLangs | boolean Default: false Filter by a user's preferred languages? (Requires authentication and takes precedence over lang[]) |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "items": [
- {
- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_domain_entry_comments_retrieve
path Parameters
domain_id required | integer The domain to retrieve comments from |
query Parameters
sort | string Default: "hot" Enum: "newest" "top" "hot" "newest" "oldest" The sorting method to use during comment fetch |
time | string Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of comments to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of comments to retrieve per page |
d | integer [ 0 .. 25 ] Default: 10 Depth of comment children to retrieve |
lang[] | Array of strings[ items [ 2 .. 3 ] characters ] Language(s) of entries to return |
usePreferredLangs | boolean Default: false Filter by a user's preferred languages? (Requires authentication and takes precedence over lang[]) |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "items": [
- {
- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_domains_retrieve
query Parameters
p | integer >= 1 Default: 1 Page of domains to retrieve |
perPage | integer [ 1 .. 100 ] Default: 100 Number of domains per page |
q | string Domain search term |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_domains_retrieve_subscribed
Authorizations:
query Parameters
p | integer >= 1 Default: 1 Page of domains to retrieve |
perPage | integer [ 1 .. 100 ] Default: 100 Number of domains per page |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_domains_retrieve_blocked
Authorizations:
query Parameters
p | integer >= 1 Default: 1 Page of domains to retrieve |
perPage | integer [ 1 .. 100 ] Default: 100 Number of domains per page |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
put_api_domain_subscribe
Authorizations:
path Parameters
domain_id required | integer The domain to subscribe to |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}
put_api_domain_unsubscribe
Authorizations:
path Parameters
domain_id required | integer The domain to unsubscribe from |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}
Response samples
- 200
- 401
- 404
- 429
{- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
put_api_entry_update
Authorizations:
path Parameters
entry_id required | integer The id of the entry to update |
Request Body schema: application/json
title | string or null |
tags | Array of strings |
isOc | boolean Default: false |
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
Responses
Request samples
- Payload
{- "title": "Posted from the API!",
- "tags": [
- "cat",
- "blep",
- "cute"
], - "isOc": false,
- "body": "We can post cat pics from the API now! What are you going to do with this power?",
- "lang": "en",
- "isAdult": false
}
Response samples
- 200
- 401
- 403
- 404
- 429
{- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
post_api_entry_report
Authorizations:
path Parameters
entry_id required | integer The entry to report |
Request Body schema: application/json
reason | string or null |
Responses
Request samples
- Payload
{- "reason": "string"
}
Response samples
- 401
- 403
- 404
- 429
{- "title": "An error occurred",
- "status": 401,
- "detail": "Unauthorized"
}
put_api_entry_vote
Authorizations:
path Parameters
entry_id required | integer The entry to vote upon |
choice required | integer Enum: -1 0 1 The user's voting choice. 0 clears the user's vote. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 429
{- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
put_api_entry_favourite
Authorizations:
path Parameters
entry_id required | integer The entry to favourite |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
get_api_entries_subscribed
Authorizations:
query Parameters
sort | any Default: "hot" Enum: "active" "hot" "newest" "oldest" "top" "commented" The sorting method to use during entry fetch |
time | any Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of entries to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of entries to retrieve per page |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_entries_moderated
Authorizations:
query Parameters
sort | any Default: "newest" Enum: "active" "hot" "newest" "oldest" "top" "commented" The sorting method to use during entry fetch |
time | any Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of entries to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of entries to retrieve per page |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_entries_favourited
Authorizations:
query Parameters
sort | any Default: "top" Enum: "active" "hot" "newest" "oldest" "top" "commented" The sorting method to use during entry fetch |
time | any Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of entries to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of entries to retrieve per page |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_entries_collection
query Parameters
sort | any Default: "hot" Enum: "active" "hot" "newest" "oldest" "top" "commented" The sorting method to use during entry fetch |
time | any Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved entries |
p | integer >= 1 Default: 1 Page of entries to retrieve |
perPage | integer [ 1 .. 100 ] Default: 25 Number of entries to retrieve per page |
lang[] | Array of strings Language(s) of entries to return |
usePreferredLangs | boolean Default: false Filter by a user's preferred languages? (Requires authentication and takes precedence over lang[]) |
Responses
Response samples
- 200
- 401
- 429
{- "items": [
- {
- "entryId": 0,
- "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "domain": {
- "name": "string",
- "entryCount": 0,
- "subscriptionsCount": 0,
- "isUserSubscribed": true,
- "isBlockedByUser": true,
- "domainId": 0
}, - "title": "string",
- "url": "string",
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "tags": [
- "string"
], - "badges": [
- {
- "magazineId": 0,
- "name": "string",
- "badgeId": 0
}
], - "numComments": 0,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isOc": false,
- "isAdult": false,
- "isPinned": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "type": "article",
- "slug": "string",
- "apId": "string",
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
get_api_entry_comments
path Parameters
entry_id required | integer The entry to retrieve comments from |
query Parameters
sortBy | string Default: "hot" Enum: "newest" "top" "hot" "newest" "oldest" The order to retrieve comments by |
time | string Default: "∞" Enum: "3h" "6h" "12h" "1d" "1w" "1m" "1y" "∞" "all" The maximum age of retrieved comments |
p | integer Default: 1 The page of comments to retrieve |
perPage | integer [ 1 .. 100 ] Default: 15 The number of top level comments per page |
d | integer [ 0 .. 25 ] Default: 10 The depth of comment trees retrieved |
lang[] | Array of strings Language(s) of comments to return |
usePreferredLangs | boolean Default: false Filter by a user's preferred languages? (Requires authentication and takes precedence over lang[]) |
Responses
Response samples
- 200
- 401
- 404
- 429
{- "items": [
- {
- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
], - "pagination": {
- "count": 0,
- "currentPage": 0,
- "maxPage": 0,
- "perPage": 0
}
}
post_api_entry_comment_new
Authorizations:
path Parameters
entry_id required | integer Entry to which the new comment will belong |
Request Body schema: application/json
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
Responses
Request samples
- Payload
{- "body": "We can post cat pics from the API now! What are you going to do with this power?",
- "lang": "en",
- "isAdult": false
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
post_api_entry_comment_new_image
Authorizations:
path Parameters
entry_id required | integer Entry to which the new comment will belong |
Request Body schema: multipart/form-data
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
alt | string or null |
uploadImage | string <binary> |
Responses
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
post_api_entry_comment_reply
Authorizations:
path Parameters
entry_id required | integer Entry to which the new comment will belong |
comment_id required | string |
Request Body schema: application/json
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
Responses
Request samples
- Payload
{- "body": "We can post cat pics from the API now! What are you going to do with this power?",
- "lang": "en",
- "isAdult": false
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
post_api_entry_comment_reply_image
Authorizations:
path Parameters
entry_id required | integer Entry to which the new comment will belong |
comment_id required | string |
Request Body schema: multipart/form-data
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
alt | string or null |
uploadImage | string <binary> |
Responses
Response samples
- 201
- 400
- 401
- 403
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
get_api_comment_retrieve
path Parameters
comment_id required | integer The comment to retrieve |
query Parameters
d | integer [ 0 .. 25 ] Default: 10 Comment tree depth to retrieve |
Responses
Response samples
- 200
- 401
- 404
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
put_api_comment_update
Authorizations:
path Parameters
comment_id required | integer The id of the comment to update |
query Parameters
d | integer Default: -1 Comment tree depth to retrieve (-1 for unlimited depth) |
Request Body schema: application/json
body | string or null |
lang | string or null [ 2 .. 3 ] characters |
isAdult | boolean Default: false |
Responses
Request samples
- Payload
{- "body": "We can post cat pics from the API now! What are you going to do with this power?",
- "lang": "en",
- "isAdult": false
}
Response samples
- 200
- 401
- 403
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}
post_api_comment_report
Authorizations:
path Parameters
comment_id required | integer The comment to report |
Request Body schema: application/json
reason | string or null |
Responses
Request samples
- Payload
{- "reason": "string"
}
Response samples
- 401
- 403
- 404
- 429
{- "title": "An error occurred",
- "status": 401,
- "detail": "Unauthorized"
}
put_api_comment_vote
Authorizations:
path Parameters
comment_id required | integer The comment to vote upon |
choice required | integer Enum: -1 0 1 The user's voting choice. 0 clears the user's vote. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 429
{- "commentId": 0,
- "user": {
- "userId": 0,
- "username": "string",
- "isBot": true,
- "isFollowedByUser": true,
- "isFollowerOfUser": true,
- "isBlockedByUser": true,
- "isAdmin": true,
- "isGlobalModerator": true,
- "avatar": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "apId": "string",
- "apProfileId": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "magazine": {
- "name": "string",
- "magazineId": 0,
- "icon": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "isUserSubscribed": true,
- "isBlockedByUser": true,
- "apId": "string",
- "apProfileId": "string"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "string",
- "sourceUrl": "string",
- "storageUrl": "string",
- "altText": "string",
- "width": 0,
- "height": 0,
- "blurHash": "string"
}, - "body": "string",
- "lang": "en",
- "mentions": [
- "string"
], - "tags": [
- "string"
], - "uv": 0,
- "dv": 0,
- "favourites": 0,
- "isFavourited": true,
- "userVote": 0,
- "isAdult": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z",
- "lastActive": "2019-08-24T14:15:22Z",
- "apId": "string",
- "children": [
- {
- "commentid": 0,
- "user": {
- "userId": 0,
- "username": "test"
}, - "magazine": {
- "magazineId": 0,
- "name": "test"
}, - "entryId": 0,
- "parentId": 0,
- "rootId": 0,
- "image": {
- "filePath": "x/y/z.png",
- "width": 3000,
- "height": 4000
}, - "body": "string",
- "lang": "en",
- "isAdult": false,
- "uv": 0,
- "dv": 0,
- "favourites": 0,
- "visibility": "visible",
- "apId": "string",
- "mentions": [
- "@user@instance"
], - "tags": [
- "string"
], - "createdAt": "2023-06-18 11:59:41-07:00",
- "editedAt": "2023-06-18 11:59:41-07:00",
- "lastActive": "2023-06-18 12:00:45-07:00",
- "childCount": 0,
- "children": [ ]
}
], - "childCount": 0,
- "canAuthUserModerate": true,
- "visibility": "private"
}