Merge branch 'develop' into feature/reports-groups-and-multiple-state-update
[akkoma] / docs / API / admin_api.md
1 # Admin API
2
3 Authentication is required and the user must be an admin.
4
5 ## `GET /api/pleroma/admin/users`
6
7 ### List users
8
9 - Query Params:
10 - *optional* `query`: **string** search term (e.g. nickname, domain, nickname@domain)
11 - *optional* `filters`: **string** comma-separated string of filters:
12 - `local`: only local users
13 - `external`: only external users
14 - `active`: only active users
15 - `deactivated`: only deactivated users
16 - `is_admin`: users with admin role
17 - `is_moderator`: users with moderator role
18 - *optional* `page`: **integer** page number
19 - *optional* `page_size`: **integer** number of users per page (default is `50`)
20 - *optional* `tags`: **[string]** tags list
21 - *optional* `name`: **string** user display name
22 - *optional* `email`: **string** user email
23 - 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`
24 - Response:
25
26 ```json
27 {
28 "page_size": integer,
29 "count": integer,
30 "users": [
31 {
32 "deactivated": bool,
33 "id": integer,
34 "nickname": string,
35 "roles": {
36 "admin": bool,
37 "moderator": bool
38 },
39 "local": bool,
40 "tags": array,
41 "avatar": string,
42 "display_name": string
43 },
44 ...
45 ]
46 }
47 ```
48
49 ## DEPRECATED `DELETE /api/pleroma/admin/users`
50
51 ### Remove a user
52
53 - Params:
54 - `nickname`
55 - Response: User’s nickname
56
57 ## `DELETE /api/pleroma/admin/users`
58
59 ### Remove a user
60
61 - Method `DELETE`
62 - Params:
63 - `nicknames`
64 - Response: Array of user nicknames
65
66 ### Create a user
67
68 - Method: `POST`
69 - Params:
70 `users`: [
71 {
72 `nickname`,
73 `email`,
74 `password`
75 }
76 ]
77 - Response: User’s nickname
78
79 ## `POST /api/pleroma/admin/users/follow`
80
81 ### Make a user follow another user
82
83 - Params:
84 - `follower`: The nickname of the follower
85 - `followed`: The nickname of the followed
86 - Response:
87 - "ok"
88
89 ## `POST /api/pleroma/admin/users/unfollow`
90
91 ### Make a user unfollow another user
92
93 - Params:
94 - `follower`: The nickname of the follower
95 - `followed`: The nickname of the followed
96 - Response:
97 - "ok"
98
99 ## `PATCH /api/pleroma/admin/users/:nickname/toggle_activation`
100
101 ### Toggle user activation
102
103 - Params:
104 - `nickname`
105 - Response: User’s object
106
107 ```json
108 {
109 "deactivated": bool,
110 "id": integer,
111 "nickname": string
112 }
113 ```
114
115 ## `PUT /api/pleroma/admin/users/tag`
116
117 ### Tag a list of users
118
119 - Params:
120 - `nicknames` (array)
121 - `tags` (array)
122
123 ## `DELETE /api/pleroma/admin/users/tag`
124
125 ### Untag a list of users
126
127 - Params:
128 - `nicknames` (array)
129 - `tags` (array)
130
131 ## `GET /api/pleroma/admin/users/:nickname/permission_group`
132
133 ### Get user user permission groups membership
134
135 - Params: none
136 - Response:
137
138 ```json
139 {
140 "is_moderator": bool,
141 "is_admin": bool
142 }
143 ```
144
145 ## `GET /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
146
147 Note: Available `:permission_group` is currently moderator and admin. 404 is returned when the permission group doesn’t exist.
148
149 ### Get user user permission groups membership per permission group
150
151 - Params: none
152 - Response:
153
154 ```json
155 {
156 "is_moderator": bool,
157 "is_admin": bool
158 }
159 ```
160
161 ## DEPRECATED `POST /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
162
163 ### Add user to permission group
164
165 - Params: none
166 - Response:
167 - On failure: `{"error": "…"}`
168 - On success: JSON of the user
169
170 ## `POST /api/pleroma/admin/users/permission_group/:permission_group`
171
172 ### Add users to permission group
173
174 - Params:
175 - `nicknames`: nicknames array
176 - Response:
177 - On failure: `{"error": "…"}`
178 - On success: JSON of the user
179
180 ## DEPRECATED `DELETE /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
181
182 ## `DELETE /api/pleroma/admin/users/:nickname/permission_group/:permission_group`
183
184 ### Remove user from permission group
185
186 - Params: none
187 - Response:
188 - On failure: `{"error": "…"}`
189 - On success: JSON of the user
190 - Note: An admin cannot revoke their own admin status.
191
192 ## `DELETE /api/pleroma/admin/users/permission_group/:permission_group`
193
194 ### Remove users from permission group
195
196 - Params:
197 - `nicknames`: nicknames array
198 - Response:
199 - On failure: `{"error": "…"}`
200 - On success: JSON of the user
201 - Note: An admin cannot revoke their own admin status.
202
203 ## `PATCH /api/pleroma/admin/users/activate`
204
205 ### Activate user
206
207 - Params:
208 - `nicknames`: nicknames array
209 - Response:
210
211 ```json
212 {
213 users: [
214 {
215 // user object
216 }
217 ]
218 }
219 ```
220
221 ## `PATCH /api/pleroma/admin/users/deactivate`
222
223 ### Deactivate user
224
225 - Params:
226 - `nicknames`: nicknames array
227 - Response:
228
229 ```json
230 {
231 users: [
232 {
233 // user object
234 }
235 ]
236 }
237 ```
238
239 ## DEPRECATED `PATCH /api/pleroma/admin/users/:nickname/activation_status`
240
241 ### Active or deactivate a user
242
243 - Params:
244 - `nickname`
245 - `status` BOOLEAN field, false value means deactivation.
246
247 ## `GET /api/pleroma/admin/users/:nickname_or_id`
248
249 ### Retrive the details of a user
250
251 - Params:
252 - `nickname` or `id`
253 - Response:
254 - On failure: `Not found`
255 - On success: JSON of the user
256
257 ## `GET /api/pleroma/admin/users/:nickname_or_id/statuses`
258
259 ### Retrive user's latest statuses
260
261 - Params:
262 - `nickname` or `id`
263 - *optional* `page_size`: number of statuses to return (default is `20`)
264 - *optional* `godmode`: `true`/`false` – allows to see private statuses
265 - Response:
266 - On failure: `Not found`
267 - On success: JSON array of user's latest statuses
268
269 ## `POST /api/pleroma/admin/relay`
270
271 ### Follow a Relay
272
273 - Params:
274 - `relay_url`
275 - Response:
276 - On success: URL of the followed relay
277
278 ## `DELETE /api/pleroma/admin/relay`
279
280 ### Unfollow a Relay
281
282 - Params:
283 - `relay_url`
284 - Response:
285 - On success: URL of the unfollowed relay
286
287 ## `GET /api/pleroma/admin/relay`
288
289 ### List Relays
290
291 - Params: none
292 - Response:
293 - On success: JSON array of relays
294
295 ## `POST /api/pleroma/admin/users/invite_token`
296
297 ### Create an account registration invite token
298
299 - Params:
300 - *optional* `max_use` (integer)
301 - *optional* `expires_at` (date string e.g. "2019-04-07")
302 - Response:
303
304 ```json
305 {
306 "id": integer,
307 "token": string,
308 "used": boolean,
309 "expires_at": date,
310 "uses": integer,
311 "max_use": integer,
312 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
313 }
314 ```
315
316 ## `GET /api/pleroma/admin/users/invites`
317
318 ### Get a list of generated invites
319
320 - Params: none
321 - Response:
322
323 ```json
324 {
325
326 "invites": [
327 {
328 "id": integer,
329 "token": string,
330 "used": boolean,
331 "expires_at": date,
332 "uses": integer,
333 "max_use": integer,
334 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
335 },
336 ...
337 ]
338 }
339 ```
340
341 ## `POST /api/pleroma/admin/users/revoke_invite`
342
343 ### Revoke invite by token
344
345 - Params:
346 - `token`
347 - Response:
348
349 ```json
350 {
351 "id": integer,
352 "token": string,
353 "used": boolean,
354 "expires_at": date,
355 "uses": integer,
356 "max_use": integer,
357 "invite_type": string (possible values: `one_time`, `reusable`, `date_limited`, `reusable_date_limited`)
358
359 }
360 ```
361
362 ## `POST /api/pleroma/admin/users/email_invite`
363
364 ### Sends registration invite via email
365
366 - Params:
367 - `email`
368 - `name`, optional
369
370 ## `GET /api/pleroma/admin/users/:nickname/password_reset`
371
372 ### Get a password reset token for a given nickname
373
374 - Params: none
375 - Response:
376
377 ```json
378 {
379 "token": "base64 reset token",
380 "link": "https://pleroma.social/api/pleroma/password_reset/url-encoded-base64-token"
381 }
382 ```
383
384 ## `PATCH /api/pleroma/admin/users/:nickname/force_password_reset`
385
386 ### Force passord reset for a user with a given nickname
387
388 - Params: none
389 - Response: none (code `204`)
390
391 ## `GET /api/pleroma/admin/reports`
392
393 ### Get a list of reports
394
395 - Params:
396 - *optional* `state`: **string** the state of reports. Valid values are `open`, `closed` and `resolved`
397 - *optional* `limit`: **integer** the number of records to retrieve
398 - *optional* `page`: **integer** page number
399 - *optional* `page_size`: **integer** number of log entries per page (default is `50`)
400 - Response:
401 - On failure: 403 Forbidden error `{"error": "error_msg"}` when requested by anonymous or non-admin
402 - On success: JSON, returns a list of reports, where:
403 - `account`: the user who has been reported
404 - `actor`: the user who has sent the report
405 - `statuses`: list of statuses that have been included to the report
406
407 ```json
408 {
409 "totalReports" : 1,
410 "reports": [
411 {
412 "account": {
413 "acct": "user",
414 "avatar": "https://pleroma.example.org/images/avi.png",
415 "avatar_static": "https://pleroma.example.org/images/avi.png",
416 "bot": false,
417 "created_at": "2019-04-23T17:32:04.000Z",
418 "display_name": "User",
419 "emojis": [],
420 "fields": [],
421 "followers_count": 1,
422 "following_count": 1,
423 "header": "https://pleroma.example.org/images/banner.png",
424 "header_static": "https://pleroma.example.org/images/banner.png",
425 "id": "9i6dAJqSGSKMzLG2Lo",
426 "locked": false,
427 "note": "",
428 "pleroma": {
429 "confirmation_pending": false,
430 "hide_favorites": true,
431 "hide_followers": false,
432 "hide_follows": false,
433 "is_admin": false,
434 "is_moderator": false,
435 "relationship": {},
436 "tags": []
437 },
438 "source": {
439 "note": "",
440 "pleroma": {},
441 "sensitive": false
442 },
443 "tags": ["force_unlisted"],
444 "statuses_count": 3,
445 "url": "https://pleroma.example.org/users/user",
446 "username": "user"
447 },
448 "actor": {
449 "acct": "lain",
450 "avatar": "https://pleroma.example.org/images/avi.png",
451 "avatar_static": "https://pleroma.example.org/images/avi.png",
452 "bot": false,
453 "created_at": "2019-03-28T17:36:03.000Z",
454 "display_name": "Roger Braun",
455 "emojis": [],
456 "fields": [],
457 "followers_count": 1,
458 "following_count": 1,
459 "header": "https://pleroma.example.org/images/banner.png",
460 "header_static": "https://pleroma.example.org/images/banner.png",
461 "id": "9hEkA5JsvAdlSrocam",
462 "locked": false,
463 "note": "",
464 "pleroma": {
465 "confirmation_pending": false,
466 "hide_favorites": false,
467 "hide_followers": false,
468 "hide_follows": false,
469 "is_admin": false,
470 "is_moderator": false,
471 "relationship": {},
472 "tags": []
473 },
474 "source": {
475 "note": "",
476 "pleroma": {},
477 "sensitive": false
478 },
479 "tags": ["force_unlisted"],
480 "statuses_count": 1,
481 "url": "https://pleroma.example.org/users/lain",
482 "username": "lain"
483 },
484 "content": "Please delete it",
485 "created_at": "2019-04-29T19:48:15.000Z",
486 "id": "9iJGOv1j8hxuw19bcm",
487 "state": "open",
488 "statuses": [
489 {
490 "account": { ... },
491 "application": {
492 "name": "Web",
493 "website": null
494 },
495 "bookmarked": false,
496 "card": null,
497 "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>",
498 "created_at": "2019-04-23T19:15:47.000Z",
499 "emojis": [],
500 "favourited": false,
501 "favourites_count": 0,
502 "id": "9i6mQ9uVrrOmOime8m",
503 "in_reply_to_account_id": null,
504 "in_reply_to_id": null,
505 "language": null,
506 "media_attachments": [],
507 "mentions": [
508 {
509 "acct": "lain",
510 "id": "9hEkA5JsvAdlSrocam",
511 "url": "https://pleroma.example.org/users/lain",
512 "username": "lain"
513 },
514 {
515 "acct": "user",
516 "id": "9i6dAJqSGSKMzLG2Lo",
517 "url": "https://pleroma.example.org/users/user",
518 "username": "user"
519 }
520 ],
521 "muted": false,
522 "pinned": false,
523 "pleroma": {
524 "content": {
525 "text/plain": "@lain click on my link https://www.google.com/"
526 },
527 "conversation_id": 28,
528 "in_reply_to_account_acct": null,
529 "local": true,
530 "spoiler_text": {
531 "text/plain": ""
532 }
533 },
534 "reblog": null,
535 "reblogged": false,
536 "reblogs_count": 0,
537 "replies_count": 0,
538 "sensitive": false,
539 "spoiler_text": "",
540 "tags": [],
541 "uri": "https://pleroma.example.org/objects/8717b90f-8e09-4b58-97b0-e3305472b396",
542 "url": "https://pleroma.example.org/notice/9i6mQ9uVrrOmOime8m",
543 "visibility": "direct"
544 }
545 ]
546 }
547 ]
548 }
549 ```
550
551 ## `GET /api/pleroma/admin/grouped_reports`
552
553 ### Get a list of reports, grouped by status
554
555 - Params: none
556 - On success: JSON, returns a list of reports, where:
557 - `date`: date of the latest report
558 - `account`: the user who has been reported (see `/api/pleroma/admin/reports` for reference)
559 - `status`: reported status (see `/api/pleroma/admin/reports` for reference)
560 - `actors`: users who had reported this status (see `/api/pleroma/admin/reports` for reference)
561 - `reports`: reports (see `/api/pleroma/admin/reports` for reference)
562
563 ```json
564 "reports": [
565 {
566 "date": "2019-10-07T12:31:39.615149Z",
567 "account": { ... },
568 "status": { ... },
569 "actors": [{ ... }, { ... }],
570 "reports": [{ ... }]
571 }
572 ]
573 ```
574
575 ## `GET /api/pleroma/admin/reports/:id`
576
577 ### Get an individual report
578
579 - Params:
580 - `id`
581 - Response:
582 - On failure:
583 - 403 Forbidden `{"error": "error_msg"}`
584 - 404 Not Found `"Not found"`
585 - On success: JSON, Report object (see above)
586
587 ## `PATCH /api/pleroma/admin/reports`
588
589 ### Change the state of one or multiple reports
590
591 - Params:
592
593 ```json
594 `reports`: [
595 {
596 `id`, // required, report id
597 `state` // required, the new state. Valid values are `open`, `closed` and `resolved`
598 },
599 ...
600 ]
601 ```
602
603 - Response:
604 - On failure:
605 - 400 Bad Request, JSON:
606
607 ```json
608 [
609 {
610 `id`, // report id
611 `error` // error message
612 }
613 ]
614 ```
615
616 - On success: `204`, empty response
617
618 ## `POST /api/pleroma/admin/reports/:id/respond`
619
620 ### Respond to a report
621
622 - Params:
623 - `id`
624 - `status`: required, the message
625 - Response:
626 - On failure:
627 - 400 Bad Request `"Invalid parameters"` when `status` is missing
628 - 403 Forbidden `{"error": "error_msg"}`
629 - 404 Not Found `"Not found"`
630 - On success: JSON, created Mastodon Status entity
631
632 ```json
633 {
634 "account": { ... },
635 "application": {
636 "name": "Web",
637 "website": null
638 },
639 "bookmarked": false,
640 "card": null,
641 "content": "Your claim is going to be closed",
642 "created_at": "2019-05-11T17:13:03.000Z",
643 "emojis": [],
644 "favourited": false,
645 "favourites_count": 0,
646 "id": "9ihuiSL1405I65TmEq",
647 "in_reply_to_account_id": null,
648 "in_reply_to_id": null,
649 "language": null,
650 "media_attachments": [],
651 "mentions": [
652 {
653 "acct": "user",
654 "id": "9i6dAJqSGSKMzLG2Lo",
655 "url": "https://pleroma.example.org/users/user",
656 "username": "user"
657 },
658 {
659 "acct": "admin",
660 "id": "9hEkA5JsvAdlSrocam",
661 "url": "https://pleroma.example.org/users/admin",
662 "username": "admin"
663 }
664 ],
665 "muted": false,
666 "pinned": false,
667 "pleroma": {
668 "content": {
669 "text/plain": "Your claim is going to be closed"
670 },
671 "conversation_id": 35,
672 "in_reply_to_account_acct": null,
673 "local": true,
674 "spoiler_text": {
675 "text/plain": ""
676 }
677 },
678 "reblog": null,
679 "reblogged": false,
680 "reblogs_count": 0,
681 "replies_count": 0,
682 "sensitive": false,
683 "spoiler_text": "",
684 "tags": [],
685 "uri": "https://pleroma.example.org/objects/cab0836d-9814-46cd-a0ea-529da9db5fcb",
686 "url": "https://pleroma.example.org/notice/9ihuiSL1405I65TmEq",
687 "visibility": "direct"
688 }
689 ```
690
691 ## `PUT /api/pleroma/admin/statuses/:id`
692
693 ### Change the scope of an individual reported status
694
695 - Params:
696 - `id`
697 - `sensitive`: optional, valid values are `true` or `false`
698 - `visibility`: optional, valid values are `public`, `private` and `unlisted`
699 - Response:
700 - On failure:
701 - 400 Bad Request `"Unsupported visibility"`
702 - 403 Forbidden `{"error": "error_msg"}`
703 - 404 Not Found `"Not found"`
704 - On success: JSON, Mastodon Status entity
705
706 ## `DELETE /api/pleroma/admin/statuses/:id`
707
708 ### Delete an individual reported status
709
710 - Params:
711 - `id`
712 - Response:
713 - On failure:
714 - 403 Forbidden `{"error": "error_msg"}`
715 - 404 Not Found `"Not found"`
716 - On success: 200 OK `{}`
717
718 ## `GET /api/pleroma/admin/config/migrate_to_db`
719
720 ### Run mix task pleroma.config migrate_to_db
721
722 Copy settings on key `:pleroma` to DB.
723
724 - Params: none
725 - Response:
726
727 ```json
728 {}
729 ```
730
731 ## `GET /api/pleroma/admin/config/migrate_from_db`
732
733 ### Run mix task pleroma.config migrate_from_db
734
735 Copy all settings from DB to `config/prod.exported_from_db.secret.exs` with deletion from DB.
736
737 - Method `GET`
738 - Params: none
739 - Response:
740
741 ```json
742 {}
743 ```
744
745 ## `GET /api/pleroma/admin/config`
746
747 ### List config settings
748
749 List config settings only works with `:pleroma => :instance => :dynamic_configuration` setting to `true`.
750
751 - Params: none
752 - Response:
753
754 ```json
755 {
756 configs: [
757 {
758 "group": string,
759 "key": string or string with leading `:` for atoms,
760 "value": string or {} or [] or {"tuple": []}
761 }
762 ]
763 }
764 ```
765
766 ## `POST /api/pleroma/admin/config`
767
768 ### Update config settings
769
770 Updating config settings only works with `:pleroma => :instance => :dynamic_configuration` setting to `true`.
771 Module name can be passed as string, which starts with `Pleroma`, e.g. `"Pleroma.Upload"`.
772 Atom keys and values can be passed with `:` in the beginning, e.g. `":upload"`.
773 Tuples can be passed as `{"tuple": ["first_val", Pleroma.Module, []]}`.
774 `{"tuple": ["some_string", "Pleroma.Some.Module", []]}` will be converted to `{"some_string", Pleroma.Some.Module, []}`.
775 Keywords can be passed as lists with 2 child tuples, e.g.
776 `[{"tuple": ["first_val", Pleroma.Module]}, {"tuple": ["second_val", true]}]`.
777
778 If value contains list of settings `[subkey: val1, subkey2: val2, subkey3: val3]`, it's possible to remove only subkeys instead of all settings passing `subkeys` parameter. E.g.:
779 {"group": "pleroma", "key": "some_key", "delete": "true", "subkeys": [":subkey", ":subkey3"]}.
780
781 Compile time settings (need instance reboot):
782 - all settings by this keys:
783 - `:hackney_pools`
784 - `:chat`
785 - `Pleroma.Web.Endpoint`
786 - `Pleroma.Repo`
787 - part settings:
788 - `Pleroma.Captcha` -> `:seconds_valid`
789 - `Pleroma.Upload` -> `:proxy_remote`
790 - `:instance` -> `:upload_limit`
791
792 - Params:
793 - `configs` => [
794 - `group` (string)
795 - `key` (string or string with leading `:` for atoms)
796 - `value` (string, [], {} or {"tuple": []})
797 - `delete` = true (optional, if parameter must be deleted)
798 - `subkeys` [(string with leading `:` for atoms)] (optional, works only if `delete=true` parameter is passed, otherwise will be ignored)
799 ]
800
801 - Request (example):
802
803 ```json
804 {
805 configs: [
806 {
807 "group": "pleroma",
808 "key": "Pleroma.Upload",
809 "value": [
810 {"tuple": [":uploader", "Pleroma.Uploaders.Local"]},
811 {"tuple": [":filters", ["Pleroma.Upload.Filter.Dedupe"]]},
812 {"tuple": [":link_name", true]},
813 {"tuple": [":proxy_remote", false]},
814 {"tuple": [":proxy_opts", [
815 {"tuple": [":redirect_on_failure", false]},
816 {"tuple": [":max_body_length", 1048576]},
817 {"tuple": [":http": [
818 {"tuple": [":follow_redirect", true]},
819 {"tuple": [":pool", ":upload"]},
820 ]]}
821 ]
822 ]},
823 {"tuple": [":dispatch", {
824 "tuple": ["/api/v1/streaming", "Pleroma.Web.MastodonAPI.WebsocketHandler", []]
825 }]}
826 ]
827 }
828 ]
829 }
830 ```
831
832 - Response:
833
834 ```json
835 {
836 configs: [
837 {
838 "group": string,
839 "key": string or string with leading `:` for atoms,
840 "value": string or {} or [] or {"tuple": []}
841 }
842 ]
843 }
844 ```
845
846 ## `GET /api/pleroma/admin/moderation_log`
847
848 ### Get moderation log
849
850 - Params:
851 - *optional* `page`: **integer** page number
852 - *optional* `page_size`: **integer** number of log entries per page (default is `50`)
853 - *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`
854 - *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
855 - *optional* `user_id`: **integer** filter logs by actor's id
856 - *optional* `search`: **string** search logs by the log message
857 - Response:
858
859 ```json
860 [
861 {
862 "data": {
863 "actor": {
864 "id": 1,
865 "nickname": "lain"
866 },
867 "action": "relay_follow"
868 },
869 "time": 1502812026, // timestamp
870 "message": "[2017-08-15 15:47:06] @nick0 followed relay: https://example.org/relay" // log message
871 }
872 ]
873 ```
874
875 ## `POST /api/pleroma/admin/reload_emoji`
876
877 ### Reload the instance's custom emoji
878
879 - Authentication: required
880 - Params: None
881 - Response: JSON, "ok" and 200 status