]> git.mxchange.org Git - friendica.git/blob - doc/API-Mastodon.md
546aca2431117ddf40b96296e8d447f714ec2a4c
[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/api/entities/).
15
16 ## Implemented endpoints
17
18 - [GET /api/v1/follow_requests](https://docs.joinmastodon.org/api/rest/follow-requests/#get-api-v1-follow-requests)
19 - [POST /api/v1/follow_requests/:id/authorize](https://docs.joinmastodon.org/api/rest/follow-requests/#post-api-v1-follow-requests-id-authorize)
20     - Returns a [Relationship](https://docs.joinmastodon.org/api/entities/#relationship) object.
21 - [POST /api/v1/follow_requests/:id/reject](https://docs.joinmastodon.org/api/rest/follow-requests/#post-api-v1-follow-requests-id-reject)
22     - Returns a [Relationship](https://docs.joinmastodon.org/api/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/api/entities/#relationship) object.
26     
27
28 - [GET /api/v1/instance](https://docs.joinmastodon.org/api/rest/instances)
29 - GET /api/v1/instance/peers - undocumented, but implemented by Mastodon and Pleroma
30
31
32
33 ## Non-implemented endpoints