]> git.mxchange.org Git - friendica.git/blob - doc/API-Mastodon.md
Merge pull request #7973 from tobiasd/2019.12-CHANGELOG
[friendica.git] / doc / API-Mastodon.md
1 # Mastodon API
2
3 * [Home](help)
4   * [Using the APIs](help/api)
5
6 ## Overview
7
8 Friendica provides the following endpoints defined in [the official Mastodon API reference](https://docs.joinmastodon.org/api/).
9
10 Authentication is the same as described in [Using the APIs](help/api#Authentication).
11
12 ## Entities
13
14 These endpoints use the [Mastodon API entities](https://docs.joinmastodon.org/entities/).
15
16 ## Implemented endpoints
17
18 - [`GET /api/v1/follow_requests`](https://docs.joinmastodon.org/methods/accounts/follow_requests#pending-follows)
19     - Returned IDs are specific to follow requests
20 - [`POST /api/v1/follow_requests/:id/authorize`](https://docs.joinmastodon.org/methods/accounts/follow_requests#accept-follow)
21     - `:id` is a follow request ID, not a regular account id
22 - [`POST /api/v1/follow_requests/:id/reject`](https://docs.joinmastodon.org/methods/accounts/follow_requests#reject-follow)
23     - `:id` is a follow request ID, not a regular account id
24 - `POST /api/v1/follow_requests/:id/ignore`
25     - Friendica-specific, hides the follow request from the list and prevents the remote contact from retrying.
26     - `:id` is a follow request ID, not a regular account id
27     - Returns a [Relationship](https://docs.joinmastodon.org/entities/relationship) object.
28
29
30 - [`GET /api/v1/instance`](https://docs.joinmastodon.org/methods/instance#fetch-instance)
31 - [`GET /api/v1/instance/peers`](https://docs.joinmastodon.org/methods/instance#list-of-connected-domains)
32
33 ## Non-implemented endpoints
34
35 - [`GET /api/v1/instance/activity`](https://docs.joinmastodon.org/methods/instance#weekly-activity)