{"@context": "https://schema.org", "@type": "WebAPI", "name": "Mastodon API Specification (https://github.com/mastodon/mastodon) API", "description": "Mastodon API Specification (https://github.com/mastodon/mastodon), an HTTP API described by an OpenAPI document.", "provider": {"@type": "Organization", "name": "mastodon.local"}, "documentation": "https://raw.githubusercontent.com/oneslash/mastodon/feat/add-open-api-spec/api-specification.yml"}
Index / APIs / mastodon.local

Mastodon API Specification (https://github.com/mastodon/mastodon) API

Mastodon API Specification (https://github.com/mastodon/mastodon), an HTTP API described by an OpenAPI document.

Every row below was read from the vendor's own OpenAPI document. The summary text is theirs. What this registry adds is that each operation is indexed with its method, path, base URL and auth scheme, so a search for a capability can answer with a call rather than a name, and that the endpoint is probed on a schedule.

Specifications as held by the APIs.guru corpus, whose newest record is 2023-04-21. Operations the vendor has added since are not listed here; the origin links above are the vendor's own current documents.

base URLs: http://mastodon.local https://mastodon.social

auth: b e a r ,

find it by capability: POST /search {"query":{"text":"..."}} returns these operations with their invocation detail. Connect any agent client.

Mastodon API Specification (https://github.com/mastodon/mastodon) v1.0

Mastodon API Specification (https://github.com/mastodon/mastodon), an HTTP API described by an OpenAPI document.

methodpathwhat the vendor says it does
GET/api/oembedOEmbed as JSON
GET/api/proofsView identity proof
POST/api/v1/accountsCreates a user and account records. Returns an account access token for the app that initiated the request. Th
GET/api/v1/accounts/relationshipsSets a private note on a user. accounts
GET/api/v1/accounts/searchSearch for matching accounts by username or display name. accounts
PATCH/api/v1/accounts/update_credentialsUpdate the user's display and preferences. accounts
GET/api/v1/accounts/verify_credentialsTest to make sure that the user token works. accounts
POST/api/v1/accounts/{id}/blockBlock the given account. Clients should filter statuses from this account if received (e.g. due to a boost in
GET/api/v1/accounts/{id}/featured_tagsTags featured by this account. accounts
POST/api/v1/accounts/{id}/followFollow the given account. Can also be used to update whether to show reblogs or enable notifications. accounts
GET/api/v1/accounts/{id}/followersAccounts which follow the given account, if network is not hidden by the account owner. accounts
GET/api/v1/accounts/{id}/followingAccounts which the given account is following, if network is not hidden by the account owner. accounts
GET/api/v1/accounts/{id}/identity_proofsArray of IdentityProof accounts
GET/api/v1/accounts/{id}/listsUser lists that you have added this account to. accounts
POST/api/v1/accounts/{id}/muteMute the given account. Clients should filter statuses and notifications from this account, if received (e.g.
POST/api/v1/accounts/{id}/noteSets a private note on a user. accounts
POST/api/v1/accounts/{id}/pinAdd the given account to the user's featured profiles. (Featured profiles are currently shown on the user's ow
GET/api/v1/accounts/{id}/statusesStatuses posted to the given account. accounts
POST/api/v1/accounts/{id}/unblockBlock the given account. Clients should filter statuses from this account if received (e.g. due to a boost in
POST/api/v1/accounts/{id}/unfollowUnfollow the given account. accounts
POST/api/v1/accounts/{id}/unmuteUnmute the given account. accounts
POST/api/v1/accounts/{id}/unpinRemove the given account from the user's featured profiles. accounts
GET/api/v1/admin/accountsView accounts matching certain criteria for filtering, up to 100 at a time. Pagination may be done with the HT
GET/api/v1/admin/accounts/{id}View admin-level information about the given account.
POST/api/v1/admin/accounts/{id}/actionPerform an action against an account and log this action in the moderation history.
POST/api/v1/admin/accounts/{id}/approveApprove the given local account if it is currently pending approval.
POST/api/v1/admin/accounts/{id}/enableRe-enable a local account whose login is currently disabled.
POST/api/v1/admin/accounts/{id}/rejectReject the given local account if it is currently pending approval.
POST/api/v1/admin/accounts/{id}/unsilenceUnsilence a currently silenced account.
POST/api/v1/admin/accounts/{id}/unsuspendUnsuspend a currently suspended account.
GET/api/v1/admin/reportsView all reports. Pagination may be done with HTTP Link header in the response.
GET/api/v1/admin/reports/{id}View information about the report with the given ID.
POST/api/v1/admin/reports/{id}/assign_to_selfClaim the handling of this report to yourself.
POST/api/v1/admin/reports/{id}/reopenMark a report as resolved with no further action taken.
POST/api/v1/admin/reports/{id}/resolveMark a report as resolved with no further action taken.
POST/api/v1/admin/reports/{id}/unassignUnassign a report so that someone else can claim it.
GET/api/v1/announcementsSee all currently active announcements set by admins.
POST/api/v1/announcements/{id}/dismissAllows a user to mark the announcement as read.
PUT/api/v1/announcements/{id}/reactions/{name}Allows a user to mark the announcement as read.
DELETE/api/v1/announcements/{id}/reactions/{name}Undo a react emoji to an announcement.

and 80 more operation(s) in this specification, all searchable.

specification origin: https://raw.githubusercontent.com/oneslash/mastodon/feat/add-open-api-spec/api-specificati

nothing on this page is a rating, an endorsement or a claim about quality. Reachability is what our probes observed from one network; answering is a floor under usefulness, not a measure of it.