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:idis a follow request ID, not a regular account id
-
POST /api/v1/follow_requests/:id/reject:idis 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.
:idis a follow request ID, not a regular account id- Returns a Relationship object.
Currently unimplemented endpoints
These emdpoints are planned to be implemented
PATCH /api/v1/accounts/update_credentialsGET /api/v1/conversationsDELETE /api/v1/conversations/:idPOST /api/v1/conversations/:id/readGET /api/v1/instance/activityGET /api/v1/timelines/direct
Non supportable endpoints
These endpoints won't be implemented, since they refer to functionality that doesn't exist in Friendica
POST /api/v1/accountsGET /api/v1/accounts/:id/identity_proofsPOST /api/v1/accounts/:id/pinPOST /api/v1/accounts/:id/unpinGET /api/v1/admin/accountsGET /api/v1/admin/accounts/:idPOST /api/v1/admin/accounts/:id/{action}GET /api/v1/admin/reportsGET /api/v1/admin/reports/:idPOST /api/v1/admin/reports/:id/{action}GET /api/v1/announcementsPOST /api/v1/announcements/:id/dismissPUT /api/v1/announcements/:id/reactions/{name}DELETE /api/v1/announcements/:id/reactions/{name}GET /api/v1/domain_blocksPOST /api/v1/domain_blocksDELETE /api/v1/domain_blocksGET /api/v1/endorsementsGET /api/v1/featured_tagsPOST /api/v1/featured_tagsDELETE /api/v1/featured_tags/:idGET /api/v1/featured_tags/suggestionsGET /api/v1/filtersGET /api/v1/filters/:idPOST /api/v1/filters/:idPUT /api/v1/filters/:idDELETE /api/v1/filters/:idGET /api/v1/markersPOST /api/v1/markersGET /api/v1/polls/:idPOST /api/v1/polls/:id/votesPOST /api/v1/reportsGET /api/v1/scheduled_statusesGET /api/v1/scheduled_statuses/:idPUT /api/v1/scheduled_statuses/:idDELETE /api/v1/scheduled_statuses/:idDELETE /api/v1/suggestions/:id