]> git.mxchange.org Git - friendica.git/blob - doc/API-Mastodon.md
Merge pull request #7983 from annando/nodeinfo-dfrn
[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 - [POST /api/v1/follow_requests/:id/authorize](https://docs.joinmastodon.org/methods/accounts/follow_requests#accept-follow)
20     - Returns a [Relationship](https://docs.joinmastodon.org/entities/relationship) object.
21 - [POST /api/v1/follow_requests/:id/reject](https://docs.joinmastodon.org/methods/accounts/follow_requests#reject-follow)
22     - Returns a [Relationship](https://docs.joinmastodon.org/entities/relationship) object.
23 - POST /api/v1/follow_requests/:id/ignore
24     - Friendica-specific, hides the follow request from the list and prevents the remote contact from retrying.
25     - Returns a [Relationship](https://docs.joinmastodon.org/entities/relationship) object.
26     
27
28 - [GET /api/v1/instance](https://docs.joinmastodon.org/methods/instance#fetch-instance)
29 - GET /api/v1/instance/peers - undocumented, but implemented by Mastodon and Pleroma
30
31
32
33 ## Non-implemented endpoints