12 KiB
12 KiB
Mastodon API
Overview
Friendica provides the following endpoints defined in the official Mastodon API reference.
Authentication is the same as described in Using the APIs.
Clients
Supported mobile apps:
Unsupported mobile apps:
- Fedilab Automatically uses the legacy API, see issue: https://framagit.org/tom79/fedilab/-/issues/520
- Mammut There are problems with the token request, see issue https://github.com/jamiesanson/Mammut/issues/19
Entities
These endpoints use the Mastodon API entities.
Implemented endpoints
-
- Doesn't return unicode emojis since they aren't using an image URL
-
- Returned IDs are specific to follow requests
-
POST /api/v1/follow_requests/:id/authorize
:id
is a follow request ID, not a regular account id
-
POST /api/v1/follow_requests/:id/reject
:id
is a follow request ID, not a regular account id
-
POST /api/v1/follow_requests/:id/ignore
- Friendica-specific, hides the follow request from the list and prevents the remote contact from retrying.
:id
is a follow request ID, not a regular account id- Returns a Relationship object.
Currently unimplemented endpoints
These emdpoints are planned to be implemented somewhere in the future.
Dummy endpoints
These endpoints are returning empty data to avoid error messages with (for example) mobile clients. They belong to a functionality that doesn't exist in Friendica yet.
GET /api/v1/accounts/:id/identity_proofs
GET /api/v1/announcements
GET /api/v1/endorsements
GET /api/v1/filters
GET /api/v1/markers
GET /api/v1/scheduled_statuses
Non supportable endpoints
These endpoints won't be implemented at the moment. They belong to a functionality that doesn't exist in Friendica yet.
POST /api/v1/accounts
POST /api/v1/accounts/:id/pin
POST /api/v1/accounts/:id/unpin
GET /api/v1/admin/accounts
GET /api/v1/admin/accounts/:id
POST /api/v1/admin/accounts/:id/{action}
GET /api/v1/admin/reports
GET /api/v1/admin/reports/:id
POST /api/v1/admin/reports/:id/{action}
POST /api/v1/announcements/:id/dismiss
PUT /api/v1/announcements/:id/reactions/{name}
DELETE /api/v1/announcements/:id/reactions/{name}
GET /api/v1/domain_blocks
POST /api/v1/domain_blocks
DELETE /api/v1/domain_blocks
GET /api/v1/featured_tags
POST /api/v1/featured_tags
DELETE /api/v1/featured_tags/:id
GET /api/v1/featured_tags/suggestions
GET /api/v1/filters/:id
POST /api/v1/filters/:id
PUT /api/v1/filters/:id
DELETE /api/v1/filters/:id
POST /api/v1/markers
GET /api/v1/polls/:id
POST /api/v1/polls/:id/votes
POST /api/v1/reports
GET /api/v1/scheduled_statuses/:id
PUT /api/v1/scheduled_statuses/:id
DELETE /api/v1/scheduled_statuses/:id
DELETE /api/v1/suggestions/:id