3 Requests that require it can be authenticated with [an OAuth token](https://tools.ietf.org/html/rfc6749), the `_pleroma_key` cookie, or [HTTP Basic Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization).
5 Request parameters can be passed via [query strings](https://en.wikipedia.org/wiki/Query_string) or as [form data](https://www.w3.org/TR/html401/interact/forms.html). Files must be uploaded as `multipart/form-data`.
7 ## `/api/pleroma/emoji`
8 ### Lists the custom emoji on that server.
10 * Authentication: not required
20 "image_url": "/finmoji/128px/girlpower-128.png"
26 "image_url": "/finmoji/128px/education-128.png"
32 "image_url": "/finmoji/128px/finnishlove-128.png"
36 * Note: Same data as Mastodon API’s `/api/v1/custom_emojis` but in a different format
38 ## `/api/pleroma/follow_import`
39 ### Imports your follows, for example from a Mastodon CSV file.
41 * Authentication: required
43 * `list`: STRING or FILE containing a whitespace-separated list of accounts to follow
44 * Response: HTTP 200 on success, 500 on error
45 * Note: Users that can't be followed are silently skipped.
47 ## `/api/pleroma/captcha`
50 * Authentication: not required
52 * Response: Provider specific JSON, the only guaranteed parameter is `type`
53 * Example response: `{"type": "kocaptcha", "token": "whatever", "url": "https://captcha.kotobank.ch/endpoint"}`
55 ## `/api/pleroma/delete_account`
58 * Authentication: required
60 * `password`: user's password
61 * Response: JSON. Returns `{"status": "success"}` if the deletion was successful, `{"error": "[error message]"}` otherwise
62 * Example response: `{"error": "Invalid password."}`
64 ## `/api/account/register`
65 ### Register a new user
67 * Authentication: not required
75 * `captcha_solution`: optional, contains provider-specific captcha solution,
76 * `captcha_token`: optional, contains provider-specific captcha token
77 * `token`: invite token required when the registrations aren't public.
78 * Response: JSON. Returns a user object on success, otherwise returns `{"error": "error_msg"}`
82 "background_image": null,
83 "cover_photo": "https://pleroma.soykaf.com/images/banner.png",
84 "created_at": "Tue Dec 18 16:55:56 +0000 2018",
85 "default_scope": "public",
86 "description": "blushy-crushy fediverse idol + pleroma dev\nlet's be friends \nぷれろまの生徒会長。謎の外人。日本語OK. \n公主病.",
87 "description_html": "blushy-crushy fediverse idol + pleroma dev.<br />let's be friends <br />ぷれろまの生徒会長。謎の外人。日本語OK. <br />公主病.",
88 "favourites_count": 0,
99 "no_rich_text": false,
103 "profile_image_url": "https://pleroma.soykaf.com/images/avi.png",
104 "profile_image_url_https": "https://pleroma.soykaf.com/images/avi.png",
105 "profile_image_url_original": "https://pleroma.soykaf.com/images/avi.png",
106 "profile_image_url_profile_size": "https://pleroma.soykaf.com/images/avi.png",
108 "delete_others_notice": false
110 "screen_name": "lain",
112 "statusnet_blocking": false,
113 "statusnet_profile_url": "https://pleroma.soykaf.com/users/lain"
117 ## `/api/pleroma/admin/`…
118 See [Admin-API](Admin-API.md)
120 ## `/api/v1/pleroma/flavour/:flavour`
122 * Authentication: required
123 * Response: JSON string. Returns the user flavour or the default one on success, otherwise returns `{"error": "error_msg"}`
124 * Example response: "glitch"
125 * Note: This is intended to be used only by mastofe
127 ## `/api/v1/pleroma/flavour`
129 * Authentication: required
130 * Response: JSON string. Returns the user flavour or the default one.
131 * Example response: "glitch"
132 * Note: This is intended to be used only by mastofe
134 ## `/api/pleroma/notifications/read`
135 ### Mark a single notification as read
137 * Authentication: required
139 * `id`: notification's id
140 * Response: JSON. Returns `{"status": "success"}` if the reading was successful, otherwise returns `{"error": "error_msg"}`
142 ## `/api/v1/pleroma/accounts/:id/subscribe`
143 ### Subscribe to receive notifications for all statuses posted by a user
145 * Authentication: required
147 * `id`: account id to subscribe to
148 * Response: JSON, returns a mastodon relationship object on success, otherwise returns `{"error": "error_msg"}`
154 "followed_by": false,
157 "muting_notifications": false,
160 "domain_blocking": false,
161 "showing_reblogs": true,
166 ## `/api/v1/pleroma/accounts/:id/unsubscribe`
167 ### Unsubscribe to stop receiving notifications from user statuses
169 * Authentication: required
171 * `id`: account id to unsubscribe from
172 * Response: JSON, returns a mastodon relationship object on success, otherwise returns `{"error": "error_msg"}`
178 "followed_by": false,
181 "muting_notifications": false,
182 "subscribing": false,
184 "domain_blocking": false,
185 "showing_reblogs": true,
190 ## `/api/v1/pleroma/accounts/:id/favourites`
191 ### Returns favorites timeline of any user
193 * Authentication: not required
195 * `id`: the id of the account for whom to return results
196 * `limit`: optional, the number of records to retrieve
197 * `since_id`: optional, returns results that are more recent than the specified id
198 * `max_id`: optional, returns results that are older than the specified id
199 * Response: JSON, returns a list of Mastodon Status entities on success, otherwise returns `{"error": "error_msg"}`
205 "id": "9hptFmUF3ztxYh3Svg",
206 "url": "https://pleroma.example.org/users/nick2",
210 "application": {"name": "Web", "website": null},
213 "content": "This is :moominmamma: note 0",
214 "created_at": "2019-04-15T15:42:15.000Z",
217 "favourites_count": 1,
218 "id": "9hptFmVJ02khbzYJaS",
219 "in_reply_to_account_id": null,
220 "in_reply_to_id": null,
222 "media_attachments": [],
227 "content": {"text/plain": "This is :moominmamma: note 0"},
228 "conversation_id": 13679,
230 "spoiler_text": {"text/plain": "2hu"}
237 "spoiler_text": "2hu",
238 "tags": [{"name": "2hu", "url": "/tag/2hu"}],
239 "uri": "https://pleroma.example.org/objects/198ed2a1-7912-4482-b559-244a0369e984",
240 "url": "https://pleroma.example.org/notice/9hptFmVJ02khbzYJaS",
241 "visibility": "public"
246 ## `/api/pleroma/notification_settings`
247 ### Updates user notification settings
249 * Authentication: required
251 * `followers`: BOOLEAN field, receives notifications from followers
252 * `follows`: BOOLEAN field, receives notifications from people the user follows
253 * `remote`: BOOLEAN field, receives notifications from people on remote instances
254 * `local`: BOOLEAN field, receives notifications from people on the local instance
255 * Response: JSON. Returns `{"status": "success"}` if the update was successful, otherwise returns `{"error": "error_msg"}`
257 ## `/api/pleroma/healthcheck`
258 ### Healthcheck endpoint with additional system data.
260 * Authentication: not required
262 * Response: JSON, statuses (200 - healthy, 503 unhealthy).
266 "pool_size": 0, # database connection pool
267 "active": 0, # active processes
268 "idle": 0, # idle processes
269 "memory_used": 0.00, # Memory used
270 "healthy": true # Instance state