3 Authentication is required and the user must be an admin.
7 * `[:auth, :enforce_oauth_admin_scope_usage]` — OAuth admin scope requirement toggle.
8 If `true`, admin actions explicitly demand admin OAuth scope(s) presence in OAuth token (client app must support admin scopes).
9 If `false` and token doesn't have admin scope(s), `is_admin` user flag grants access to admin-specific actions.
10 Note that client app needs to explicitly support admin scopes and request them when obtaining auth token.
12 ## `GET /api/pleroma/admin/users`
17 - *optional* `query`: **string** search term (e.g. nickname, domain, nickname@domain)
18 - *optional* `filters`: **string** comma-separated string of filters:
19 - `local`: only local users
20 - `external`: only external users
21 - `active`: only active users
22 - `need_approval`: only unapproved users
23 - `deactivated`: only deactivated users
24 - `is_admin`: users with admin role
25 - `is_moderator`: users with moderator role
26 - *optional* `page`: **integer** page number
27 - *optional* `page_size`: **integer** number of users per page (default is `50`)
28 - *optional* `tags`: **[string]** tags list
29 - *optional* `name`: **string** user display name
30 - *optional* `email`: **string** user email
31 - Example: `https://mypleroma.org/api/pleroma/admin/users?query=john&filters=local,active&page=1&page_size=10&tags[]=some_tag&tags[]=another_tag&name=display_name&email=email@example.com`
50 "display_name": string,
51 "confirmation_pending": bool,
52 "approval_pending": bool,
53 "registration_reason": string,
60 ## DEPRECATED `DELETE /api/pleroma/admin/users`
66 - Response: User’s nickname
68 ## `DELETE /api/pleroma/admin/users`
74 - Response: Array of user nicknames
87 - Response: User’s nickname
89 ## `POST /api/pleroma/admin/users/follow`
91 ### Make a user follow another user
94 - `follower`: The nickname of the follower
95 - `followed`: The nickname of the followed
99 ## `POST /api/pleroma/admin/users/unfollow`
101 ### Make a user unfollow another user
104 - `follower`: The nickname of the follower
105 - `followed`: The nickname of the followed
109 ## `PATCH /api/pleroma/admin/users/:nickname/toggle_activation`
111 ### Toggle user activation
115 - Response: User’s object
125 ## `PUT /api/pleroma/admin/users/tag`
127 ### Tag a list of users
130 - `nicknames` (array)
133 ## `DELETE /api/pleroma/admin/users/tag`
135 ### Untag a list of users
138 - `nicknames` (array)
141 ## `GET /api/pleroma/admin/users/:nickname/permission_group`
143 ### Get user user permission groups membership
150 "is_moderator": bool,
155 ## `GET /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
157 Note: Available `:permission_group` is currently moderator and admin. 404 is returned when the permission group doesn’t exist.
159 ### Get user user permission groups membership per permission group
166 "is_moderator": bool,
171 ## DEPRECATED `POST /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
173 ### Add user to permission group
177 - On failure: `{"error": "…"}`
178 - On success: JSON of the user
180 ## `POST /api/pleroma/admin/users/permission_group/:permission_group`
182 ### Add users to permission group
185 - `nicknames`: nicknames array
187 - On failure: `{"error": "…"}`
188 - On success: JSON of the user
190 ## DEPRECATED `DELETE /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
192 ## `DELETE /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
194 ### Remove user from permission group
198 - On failure: `{"error": "…"}`
199 - On success: JSON of the user
200 - Note: An admin cannot revoke their own admin status.
202 ## `DELETE /api/pleroma/admin/users/permission_group/:permission_group`
204 ### Remove users from permission group
207 - `nicknames`: nicknames array
209 - On failure: `{"error": "…"}`
210 - On success: JSON of the user
211 - Note: An admin cannot revoke their own admin status.
213 ## `PATCH /api/pleroma/admin/users/activate`
218 - `nicknames`: nicknames array
231 ## `PATCH /api/pleroma/admin/users/deactivate`
236 - `nicknames`: nicknames array
249 ## `PATCH /api/pleroma/admin/users/approve`
254 - `nicknames`: nicknames array
267 ## `GET /api/pleroma/admin/users/:nickname_or_id`
269 ### Retrive the details of a user
274 - On failure: `Not found`
275 - On success: JSON of the user
277 ## `GET /api/pleroma/admin/users/:nickname_or_id/statuses`
279 ### Retrive user's latest statuses
283 - *optional* `page_size`: number of statuses to return (default is `20`)
284 - *optional* `godmode`: `true`/`false` – allows to see private statuses
285 - *optional* `with_reblogs`: `true`/`false` – allows to see reblogs (default is false)
287 - On failure: `Not found`
288 - On success: JSON array of user's latest statuses
290 ## `GET /api/pleroma/admin/instances/:instance/statuses`
292 ### Retrive instance's latest statuses
295 - `instance`: instance name
296 - *optional* `page_size`: number of statuses to return (default is `20`)
297 - *optional* `godmode`: `true`/`false` – allows to see private statuses
298 - *optional* `with_reblogs`: `true`/`false` – allows to see reblogs (default is false)
300 - On failure: `Not found`
301 - On success: JSON array of instance's latest statuses
303 ## `GET /api/pleroma/admin/statuses`
305 ### Retrives all latest statuses
308 - *optional* `page_size`: number of statuses to return (default is `20`)
309 - *optional* `local_only`: excludes remote statuses
310 - *optional* `godmode`: `true`/`false` – allows to see private statuses
311 - *optional* `with_reblogs`: `true`/`false` – allows to see reblogs (default is false)
313 - On failure: `Not found`
314 - On success: JSON array of user's latest statuses
316 ## `GET /api/pleroma/admin/relay`
323 * On success: JSON array of relays
327 {"actor": "https://example.com/relay", "followed_back": true},
328 {"actor": "https://example2.com/relay", "followed_back": false}
332 ## `POST /api/pleroma/admin/relay`
342 * On success: relay json object
345 {"actor": "https://example.com/relay", "followed_back": true}
348 ## `DELETE /api/pleroma/admin/relay`
358 * On success: URL of the unfollowed relay
361 {"https://example.com/relay"}
364 ## `POST /api/pleroma/admin/users/invite_token`
366 ### Create an account registration invite token
369 - *optional* `max_use` (integer)
370 - *optional* `expires_at` (date string e.g. "2019-04-07")
381 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
385 ## `GET /api/pleroma/admin/users/invites`
387 ### Get a list of generated invites
403 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
410 ## `POST /api/pleroma/admin/users/revoke_invite`
412 ### Revoke invite by token
426 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
431 ## `POST /api/pleroma/admin/users/email_invite`
433 ### Sends registration invite via email
440 - On success: `204`, empty response
442 - 400 Bad Request, JSON:
447 "error": "Appropriate error message here"
452 ## `GET /api/pleroma/admin/users/:nickname/password_reset`
454 ### Get a password reset token for a given nickname
462 "token": "base64 reset token",
463 "link": "https://pleroma.social/api/pleroma/password_reset/url-encoded-base64-token"
467 ## `PATCH /api/pleroma/admin/users/force_password_reset`
469 ### Force passord reset for a user with a given nickname
473 - Response: none (code `204`)
475 ## PUT `/api/pleroma/admin/users/disable_mfa`
477 ### Disable mfa for user's account.
481 - Response: User’s nickname
483 ## `GET /api/pleroma/admin/users/:nickname/credentials`
485 ### Get the user's email, password, display and settings-related fields
494 "actor_type": "Person",
495 "allow_following_move": true,
496 "avatar": "https://pleroma.social/media/7e8e7508fd545ef580549b6881d80ec0ff2c81ed9ad37b9bdbbdf0e0d030159d.jpg",
497 "background": "https://pleroma.social/media/4de34c0bd10970d02cbdef8972bef0ebbf55f43cadc449554d4396156162fe9a.jpg",
498 "banner": "https://pleroma.social/media/8d92ba2bd244b613520abf557dd448adcd30f5587022813ee9dd068945986946.jpg",
500 "default_scope": "public",
501 "discoverable": false,
502 "email": "user@example.com",
506 "value": "<a href=\"https://example.com\" rel=\"ugc\">https://example.com</a>"
509 "hide_favorites": false,
510 "hide_followers": false,
511 "hide_followers_count": false,
512 "hide_follows": false,
513 "hide_follows_count": false,
514 "id": "9oouHaEEUR54hls968",
517 "no_rich_text": true,
518 "pleroma_settings_store": {},
523 "value": "https://example.com"
527 "skip_thread_containment": false
531 ## `PATCH /api/pleroma/admin/users/:nickname/credentials`
533 ### Change the user's email, password, display and settings-related fields
547 * `hide_followers_count`
548 * `hide_follows_count`
550 * `allow_following_move`
553 * `skip_thread_containment`
563 {"status": "success"}
570 {"actor_type": "is invalid"},
571 {"email": "has invalid format"},
579 {"error": "Not found"}
582 ## `GET /api/pleroma/admin/reports`
584 ### Get a list of reports
587 - *optional* `state`: **string** the state of reports. Valid values are `open`, `closed` and `resolved`
588 - *optional* `limit`: **integer** the number of records to retrieve
589 - *optional* `page`: **integer** page number
590 - *optional* `page_size`: **integer** number of log entries per page (default is `50`)
592 - On failure: 403 Forbidden error `{"error": "error_msg"}` when requested by anonymous or non-admin
593 - On success: JSON, returns a list of reports, where:
594 - `account`: the user who has been reported
595 - `actor`: the user who has sent the report
596 - `statuses`: list of statuses that have been included to the report
605 "avatar": "https://pleroma.example.org/images/avi.png",
606 "avatar_static": "https://pleroma.example.org/images/avi.png",
608 "created_at": "2019-04-23T17:32:04.000Z",
609 "display_name": "User",
612 "followers_count": 1,
613 "following_count": 1,
614 "header": "https://pleroma.example.org/images/banner.png",
615 "header_static": "https://pleroma.example.org/images/banner.png",
616 "id": "9i6dAJqSGSKMzLG2Lo",
620 "confirmation_pending": false,
621 "hide_favorites": true,
622 "hide_followers": false,
623 "hide_follows": false,
625 "is_moderator": false,
634 "tags": ["force_unlisted"],
636 "url": "https://pleroma.example.org/users/user",
641 "avatar": "https://pleroma.example.org/images/avi.png",
642 "avatar_static": "https://pleroma.example.org/images/avi.png",
644 "created_at": "2019-03-28T17:36:03.000Z",
645 "display_name": "Roger Braun",
648 "followers_count": 1,
649 "following_count": 1,
650 "header": "https://pleroma.example.org/images/banner.png",
651 "header_static": "https://pleroma.example.org/images/banner.png",
652 "id": "9hEkA5JsvAdlSrocam",
656 "confirmation_pending": false,
657 "hide_favorites": false,
658 "hide_followers": false,
659 "hide_follows": false,
661 "is_moderator": false,
670 "tags": ["force_unlisted"],
672 "url": "https://pleroma.example.org/users/lain",
675 "content": "Please delete it",
676 "created_at": "2019-04-29T19:48:15.000Z",
677 "id": "9iJGOv1j8hxuw19bcm",
688 "content": "<span class=\"h-card\"><a data-user=\"9hEkA5JsvAdlSrocam\" class=\"u-url mention\" href=\"https://pleroma.example.org/users/lain\">@<span>lain</span></a></span> click on my link <a href=\"https://www.google.com/\">https://www.google.com/</a>",
689 "created_at": "2019-04-23T19:15:47.000Z",
692 "favourites_count": 0,
693 "id": "9i6mQ9uVrrOmOime8m",
694 "in_reply_to_account_id": null,
695 "in_reply_to_id": null,
697 "media_attachments": [],
701 "id": "9hEkA5JsvAdlSrocam",
702 "url": "https://pleroma.example.org/users/lain",
707 "id": "9i6dAJqSGSKMzLG2Lo",
708 "url": "https://pleroma.example.org/users/user",
716 "text/plain": "@lain click on my link https://www.google.com/"
718 "conversation_id": 28,
719 "in_reply_to_account_acct": null,
732 "uri": "https://pleroma.example.org/objects/8717b90f-8e09-4b58-97b0-e3305472b396",
733 "url": "https://pleroma.example.org/notice/9i6mQ9uVrrOmOime8m",
734 "visibility": "direct"
742 ## `GET /api/pleroma/admin/grouped_reports`
744 ### Get a list of reports, grouped by status
747 - On success: JSON, returns a list of reports, where:
748 - `date`: date of the latest report
749 - `account`: the user who has been reported (see `/api/pleroma/admin/reports` for reference)
750 - `status`: reported status (see `/api/pleroma/admin/reports` for reference)
751 - `actors`: users who had reported this status (see `/api/pleroma/admin/reports` for reference)
752 - `reports`: reports (see `/api/pleroma/admin/reports` for reference)
757 "date": "2019-10-07T12:31:39.615149Z",
760 "actors": [{ ... }, { ... }],
766 ## `GET /api/pleroma/admin/reports/:id`
768 ### Get an individual report
774 - 403 Forbidden `{"error": "error_msg"}`
775 - 404 Not Found `"Not found"`
776 - On success: JSON, Report object (see above)
778 ## `PATCH /api/pleroma/admin/reports`
780 ### Change the state of one or multiple reports
787 `id`, // required, report id
788 `state` // required, the new state. Valid values are `open`, `closed` and `resolved`
796 - 400 Bad Request, JSON:
802 `error` // error message
807 - On success: `204`, empty response
809 ## `POST /api/pleroma/admin/reports/:id/notes`
811 ### Create report note
814 - `id`: required, report id
815 - `content`: required, the message
818 - 400 Bad Request `"Invalid parameters"` when `status` is missing
819 - On success: `204`, empty response
821 ## `DELETE /api/pleroma/admin/reports/:report_id/notes/:id`
823 ### Delete report note
826 - `report_id`: required, report id
827 - `id`: required, note id
830 - 400 Bad Request `"Invalid parameters"` when `status` is missing
831 - On success: `204`, empty response
833 ## `GET /api/pleroma/admin/statuses/:id`
835 ### Show status by id
838 - `id`: required, status id
841 - 404 Not Found `"Not Found"`
842 - On success: JSON, Mastodon Status entity
844 ## `PUT /api/pleroma/admin/statuses/:id`
846 ### Change the scope of an individual reported status
850 - `sensitive`: optional, valid values are `true` or `false`
851 - `visibility`: optional, valid values are `public`, `private` and `unlisted`
854 - 400 Bad Request `"Unsupported visibility"`
855 - 403 Forbidden `{"error": "error_msg"}`
856 - 404 Not Found `"Not found"`
857 - On success: JSON, Mastodon Status entity
859 ## `DELETE /api/pleroma/admin/statuses/:id`
861 ### Delete an individual reported status
867 - 403 Forbidden `{"error": "error_msg"}`
868 - 404 Not Found `"Not found"`
869 - On success: 200 OK `{}`
871 ## `GET /api/pleroma/admin/restart`
873 ### Restarts pleroma application
875 **Only works when configuration from database is enabled.**
880 - 400 Bad Request `"To use this endpoint you need to enable configuration from database."`
886 ## `GET /api/pleroma/admin/need_reboot`
888 ### Returns the flag whether the pleroma should be restarted
892 - `need_reboot` - boolean
899 ## `GET /api/pleroma/admin/config`
901 ### Get list of merged default settings with saved in database.
903 *If `need_reboot` is `true`, instance must be restarted, so reboot time settings can take effect.*
905 **Only works when configuration from database is enabled.**
908 - `only_db`: true (*optional*, get only saved in database settings)
911 - 400 Bad Request `"To use this endpoint you need to enable configuration from database."`
918 "key": "Pleroma.Upload",
926 ## `POST /api/pleroma/admin/config`
928 ### Update config settings
930 *If `need_reboot` is `true`, instance must be restarted, so reboot time settings can take effect.*
932 **Only works when configuration from database is enabled.**
934 Some modifications are necessary to save the config settings correctly:
936 - strings which start with `Pleroma.`, `Phoenix.`, `Tesla.` or strings like `Oban`, `Ueberauth` will be converted to modules;
938 "Pleroma.Upload" -> Pleroma.Upload
941 - strings starting with `:` will be converted to atoms;
943 ":pleroma" -> :pleroma
945 - objects with `tuple` key and array value will be converted to tuples;
947 {"tuple": ["string", "Pleroma.Upload", []]} -> {"string", Pleroma.Upload, []}
949 - arrays with *tuple objects* will be converted to keywords;
951 [{"tuple": [":key1", "value"]}, {"tuple": [":key2", "value"]}] -> [key1: "value", key2: "value"]
954 Most of the settings will be applied in `runtime`, this means that you don't need to restart the instance. But some settings are applied in `compile time` and require a reboot of the instance, such as:
955 - all settings inside these keys:
957 - `:connections_pool`
960 - partially settings inside these keys:
961 - `:seconds_valid` in `Pleroma.Captcha`
962 - `:proxy_remote` in `Pleroma.Upload`
963 - `:upload_limit` in `:instance`
966 - `configs` - array of config objects
967 - config object params:
968 - `group` - string (**required**)
969 - `key` - string (**required**)
970 - `value` - string, [], {} or {"tuple": []} (**required**)
971 - `delete` - true (*optional*, if setting must be deleted)
972 - `subkeys` - array of strings (*optional*, only works when `delete=true` parameter is passed, otherwise will be ignored)
974 *When a value have several nested settings, you can delete only some nested settings by passing a parameter `subkeys`, without deleting all settings by key.*
976 [subkey: val1, subkey2: val2, subkey3: val3] \\ initial value
977 {"group": ":pleroma", "key": "some_key", "delete": true, "subkeys": [":subkey", ":subkey3"]} \\ passing json for deletion
978 [subkey2: val2] \\ value after deletion
981 *Most of the settings can be partially updated through merge old values with new values, except settings value of which is list or is not keyword.*
983 Example of setting without keyword in value:
985 config :tesla, :adapter, Tesla.Adapter.Hackney
988 List of settings which support only full update by key:
991 {:pleroma, :ecto_repos},
994 {:cors_plug, [:max_age, :methods, :expose, :headers]},
995 {:auto_linker, :opts},
996 {:swarm, :node_blacklist},
1001 List of settings which support only full update by subkey:
1003 @full_subkey_update [
1004 {:pleroma, :assets, :mascots},
1005 {:pleroma, :emoji, :groups},
1006 {:pleroma, :workers, :retries},
1007 {:pleroma, :mrf_subchain, :match_actor},
1008 {:pleroma, :mrf_keyword, :replace}
1012 *Settings without explicit key must be sended in separate config object params.*
1022 {"group": ":quack", "key": ":level", "value": ":debug"},
1023 {"group": ":quack", "key": ":meta", "value": [":all"]},
1034 "group": ":pleroma",
1035 "key": "Pleroma.Upload",
1037 {"tuple": [":uploader", "Pleroma.Uploaders.Local"]},
1038 {"tuple": [":filters", ["Pleroma.Upload.Filter.Dedupe"]]},
1039 {"tuple": [":link_name", true]},
1040 {"tuple": [":proxy_remote", false]},
1041 {"tuple": [":proxy_opts", [
1042 {"tuple": [":redirect_on_failure", false]},
1043 {"tuple": [":max_body_length", 1048576]},
1044 {"tuple": [":http", [
1045 {"tuple": [":follow_redirect", true]},
1046 {"tuple": [":pool", ":upload"]},
1050 {"tuple": [":dispatch", {
1051 "tuple": ["/api/v1/streaming", "Pleroma.Web.MastodonAPI.WebsocketHandler", []]
1061 - 400 Bad Request `"To use this endpoint you need to enable configuration from database."`
1066 "group": ":pleroma",
1067 "key": "Pleroma.Upload",
1075 ## ` GET /api/pleroma/admin/config/descriptions`
1077 ### Get JSON with config descriptions.
1078 Loads json generated from `config/descriptions.exs`.
1085 "group": ":pleroma", // string
1086 "key": "ModuleName", // string
1087 "type": "group", // string or list with possible values,
1088 "description": "Upload general settings", // string
1091 "key": ":uploader", // string or module name `Pleroma.Upload`
1093 "description": "Module which will be used for uploads",
1094 "suggestions": ["module1", "module2"]
1098 "type": ["list", "module"],
1099 "description": "List of filter modules for uploads",
1101 "module1", "module2", "module3"
1108 ## `GET /api/pleroma/admin/moderation_log`
1110 ### Get moderation log
1113 - *optional* `page`: **integer** page number
1114 - *optional* `page_size`: **integer** number of log entries per page (default is `50`)
1115 - *optional* `start_date`: **datetime (ISO 8601)** filter logs by creation date, start from `start_date`. Accepts datetime in ISO 8601 format (YYYY-MM-DDThh:mm:ss), e.g. `2005-08-09T18:31:42`
1116 - *optional* `end_date`: **datetime (ISO 8601)** filter logs by creation date, end by from `end_date`. Accepts datetime in ISO 8601 format (YYYY-MM-DDThh:mm:ss), e.g. 2005-08-09T18:31:42
1117 - *optional* `user_id`: **integer** filter logs by actor's id
1118 - *optional* `search`: **string** search logs by the log message
1129 "action": "relay_follow"
1131 "time": 1502812026, // timestamp
1132 "message": "[2017-08-15 15:47:06] @nick0 followed relay: https://example.org/relay" // log message
1137 ## `POST /api/pleroma/admin/reload_emoji`
1139 ### Reload the instance's custom emoji
1141 - Authentication: required
1143 - Response: JSON, "ok" and 200 status
1145 ## `PATCH /api/pleroma/admin/users/confirm_email`
1147 ### Confirm users' emails
1151 - Response: Array of user nicknames
1153 ## `PATCH /api/pleroma/admin/users/resend_confirmation_email`
1155 ### Resend confirmation email
1159 - Response: Array of user nicknames
1161 ## `GET /api/pleroma/admin/stats`
1166 - *optional* `instance`: **string** instance hostname (without protocol) to get stats for
1167 - Example: `https://mypleroma.org/api/pleroma/admin/stats?instance=lain.com`
1173 "status_visibility": {
1182 ## `GET /api/pleroma/admin/oauth_app`
1188 - *optional* `client_id`
1190 - *optional* `page_size`
1191 - *optional* `trusted`
1201 "client_id": "yHoDSiWYp5mPV6AfsaVOWjdOyt5PhWRiafi6MRd1lSk",
1202 "client_secret": "nLmis486Vqrv2o65eM9mLQx_m_4gH-Q6PcDpGIMl6FY",
1203 "redirect_uri": "https://example.com/oauth-callback",
1204 "website": "https://example.com",
1214 ## `POST /api/pleroma/admin/oauth_app`
1216 ### Create OAuth App
1222 - *optional* `website`
1223 - *optional* `trusted`
1231 "client_id": "yHoDSiWYp5mPV6AfsaVOWjdOyt5PhWRiafi6MRd1lSk",
1232 "client_secret": "nLmis486Vqrv2o65eM9mLQx_m_4gH-Q6PcDpGIMl6FY",
1233 "redirect_uri": "https://example.com/oauth-callback",
1234 "website": "https://example.com",
1242 "redirect_uris": "can't be blank",
1243 "name": "can't be blank"
1247 ## `PATCH /api/pleroma/admin/oauth_app/:id`
1249 ### Update OAuth App
1253 - *optional* `redirect_uris`
1254 - *optional* `scopes`
1255 - *optional* `website`
1256 - *optional* `trusted`
1264 "client_id": "yHoDSiWYp5mPV6AfsaVOWjdOyt5PhWRiafi6MRd1lSk",
1265 "client_secret": "nLmis486Vqrv2o65eM9mLQx_m_4gH-Q6PcDpGIMl6FY",
1266 "redirect_uri": "https://example.com/oauth-callback",
1267 "website": "https://example.com",
1272 ## `DELETE /api/pleroma/admin/oauth_app/:id`
1274 ### Delete OAuth App
1279 - On success: `204`, empty response
1281 - 400 Bad Request `"Invalid parameters"` when `status` is missing
1283 ## `GET /api/pleroma/admin/media_proxy_caches`
1285 ### Get a list of all banned MediaProxy URLs in Cachex
1287 - Authentication: required
1289 - *optional* `page`: **integer** page number
1290 - *optional* `page_size`: **integer** number of log entries per page (default is `50`)
1291 - *optional* `query`: **string** search term
1297 "page_size": integer,
1300 "http://example.com/media/a688346.jpg",
1301 "http://example.com/media/fb1f4d.jpg"
1307 ## `POST /api/pleroma/admin/media_proxy_caches/delete`
1309 ### Remove a banned MediaProxy URL from Cachex
1311 - Authentication: required
1322 ## `POST /api/pleroma/admin/media_proxy_caches/purge`
1324 ### Purge a MediaProxy URL
1326 - Authentication: required
1338 ## GET /api/pleroma/admin/users/:nickname/chats
1340 ### List a user's chats
1350 "id": "someflakeid",
1351 "username": "somenick",
1356 "last_message" : {...}, // The last message in that chat
1357 "updated_at": "2020-04-21T15:11:46.000Z"
1362 ## GET /api/pleroma/admin/chats/:chat_id
1364 ### View a single chat
1373 "id": "someflakeid",
1374 "username": "somenick",
1379 "last_message" : {...}, // The last message in that chat
1380 "updated_at": "2020-04-21T15:11:46.000Z"
1384 ## GET /api/pleroma/admin/chats/:chat_id/messages
1386 ### List the messages in a chat
1395 "account_id": "someflakeid",
1397 "content": "Check this out :firefox:",
1398 "created_at": "2020-04-21T15:11:46.000Z",
1401 "shortcode": "firefox",
1402 "static_url": "https://dontbulling.me/emoji/Firefox.gif",
1403 "url": "https://dontbulling.me/emoji/Firefox.gif",
1404 "visible_in_picker": false
1411 "account_id": "someflakeid",
1413 "content": "Whats' up?",
1414 "created_at": "2020-04-21T15:06:45.000Z",
1422 ## DELETE /api/pleroma/admin/chats/:chat_id/messages/:message_id
1424 ### Delete a single message
1432 "account_id": "someflakeid",
1434 "content": "Check this out :firefox:",
1435 "created_at": "2020-04-21T15:11:46.000Z",
1438 "shortcode": "firefox",
1439 "static_url": "https://dontbulling.me/emoji/Firefox.gif",
1440 "url": "https://dontbulling.me/emoji/Firefox.gif",
1441 "visible_in_picker": false