2019-12-10 03:36:52 +00:00
|
|
|
# Mastodon API
|
|
|
|
|
|
|
|
* [Home](help)
|
|
|
|
* [Using the APIs](help/api)
|
|
|
|
|
|
|
|
## Overview
|
|
|
|
|
|
|
|
Friendica provides the following endpoints defined in [the official Mastodon API reference](https://docs.joinmastodon.org/api/).
|
|
|
|
|
|
|
|
Authentication is the same as described in [Using the APIs](help/api#Authentication).
|
|
|
|
|
|
|
|
## Entities
|
|
|
|
|
|
|
|
These endpoints use the [Mastodon API entities](https://docs.joinmastodon.org/api/entities/).
|
|
|
|
|
|
|
|
## Implemented endpoints
|
|
|
|
|
|
|
|
- [GET /api/v1/follow_requests](https://docs.joinmastodon.org/api/rest/follow-requests/#get-api-v1-follow-requests)
|
2019-12-11 08:50:09 +00:00
|
|
|
- [POST /api/v1/follow_requests/:id/authorize](https://docs.joinmastodon.org/api/rest/follow-requests/#post-api-v1-follow-requests-id-authorize)
|
|
|
|
- Returns a [Relationship](https://docs.joinmastodon.org/api/entities/#relationship) object.
|
|
|
|
- [POST /api/v1/follow_requests/:id/reject](https://docs.joinmastodon.org/api/rest/follow-requests/#post-api-v1-follow-requests-id-reject)
|
|
|
|
- Returns a [Relationship](https://docs.joinmastodon.org/api/entities/#relationship) object.
|
|
|
|
- POST /api/v1/follow_requests/:id/ignore
|
|
|
|
- Friendica-specific, hides the follow request from the list and prevents the remote contact from retrying.
|
|
|
|
- Returns a [Relationship](https://docs.joinmastodon.org/api/entities/#relationship) object.
|
|
|
|
|
|
|
|
|
2019-12-10 21:27:09 +00:00
|
|
|
- [GET /api/v1/instance](https://docs.joinmastodon.org/api/rest/instances)
|
|
|
|
- GET /api/v1/instance/peers - undocumented, but implemented by Mastodon and Pleroma
|
2019-12-10 03:36:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-11 08:50:09 +00:00
|
|
|
## Non-implemented endpoints
|