Mastodon API Specification (https://github.com/mastodon/mastodon)
- Homepage
- https://api.apis.guru/v2/specs/mastodon.local/1.0.json
- Provider
- mastodon.local
- OpenAPI version
- 3.0.3
- Spec (JSON)
- https://api.apis.guru/v2/specs/mastodon.local/1.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/mastodon.local/1.0/openapi.yaml
Tools (129)
Extracted live via the executor SDK.
-
accounts.getApiV1AccountsIdGET /api/v1/accounts/{id}
-
accounts.getApiV1AccountsIdFeaturedTagsTags featured by this account.
-
accounts.getApiV1AccountsIdFollowersAccounts which follow the given account, if network is not hidden by the account owner.
-
accounts.getApiV1AccountsIdFollowingAccounts which the given account is following, if network is not hidden by the account owner.
-
accounts.getApiV1AccountsIdIdentityProofsArray of IdentityProof
-
accounts.getApiV1AccountsIdListsUser lists that you have added this account to.
-
accounts.getApiV1AccountsIdStatusesStatuses posted to the given account.
-
accounts.getApiV1AccountsRelationshipsSets a private note on a user.
-
accounts.getApiV1AccountsSearchSearch for matching accounts by username or display name.
-
accounts.getApiV1AccountsVerifyCredentialsTest to make sure that the user token works.
-
accounts.patchApiV1AccountsUpdateCredentialsUpdate the user's display and preferences.
-
accounts.postApiV1AccountsIdBlockBlock the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline).
-
accounts.postApiV1AccountsIdFollowFollow the given account. Can also be used to update whether to show reblogs or enable notifications.
-
accounts.postApiV1AccountsIdMuteMute the given account. Clients should filter statuses and notifications from this account, if received (e.g. due to a boost in the Home timeline).
-
accounts.postApiV1AccountsIdNoteSets a private note on a user.
-
accounts.postApiV1AccountsIdPinAdd the given account to the user's featured profiles. (Featured profiles are currently shown on the user's own public profile.)
-
accounts.postApiV1AccountsIdUnblockBlock the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline).
-
accounts.postApiV1AccountsIdUnfollowUnfollow the given account.
-
accounts.postApiV1AccountsIdUnmuteUnmute the given account.
-
accounts.postApiV1AccountsIdUnpinRemove the given account from the user's featured profiles.
-
admin.getApiV1AdminAccountsView accounts matching certain criteria for filtering, up to 100 at a time. Pagination may be done with the HTTP Link header in the response.
-
admin.getApiV1AdminAccountsIdView admin-level information about the given account.
-
admin.getApiV1AdminReportsView all reports. Pagination may be done with HTTP Link header in the response.
-
admin.getApiV1AdminReportsIdView information about the report with the given ID.
-
admin.postApiV1AdminAccountsIdActionPerform an action against an account and log this action in the moderation history.
-
admin.postApiV1AdminAccountsIdApproveApprove the given local account if it is currently pending approval.
-
admin.postApiV1AdminAccountsIdEnableRe-enable a local account whose login is currently disabled.
-
admin.postApiV1AdminAccountsIdRejectReject the given local account if it is currently pending approval.
-
admin.postApiV1AdminAccountsIdUnsilenceUnsilence a currently silenced account.
-
admin.postApiV1AdminAccountsIdUnsuspendUnsuspend a currently suspended account.
-
admin.postApiV1AdminReportsIdAssignToSelfClaim the handling of this report to yourself.
-
admin.postApiV1AdminReportsIdReopenMark a report as resolved with no further action taken.
-
admin.postApiV1AdminReportsIdResolveMark a report as resolved with no further action taken.
-
admin.postApiV1AdminReportsIdUnassignUnassign a report so that someone else can claim it.
-
announcements.deleteApiV1AnnouncementsIdReactionsNameUndo a react emoji to an announcement.
-
announcements.getApiV1AnnouncementsSee all currently active announcements set by admins.
-
announcements.postApiV1AnnouncementsIdDismissAllows a user to mark the announcement as read.
-
announcements.putApiV1AnnouncementsIdReactionsNameAllows a user to mark the announcement as read.
-
apps.getApiV1AppsVerifyCredentialsConfirm that the app's OAuth2 credentials work.
-
apps.postApiV1AppsCreate a new application to obtain OAuth2 credentials.
-
blocks.getApiV1BlocksGet blocked users.
-
bookmarks.getApiV1BookmarksStatuses the user has bookmarked.
-
conversations.deleteApiV1ConversationsIdRemove converstation
-
conversations.getApiV1ConversationsShow conversation.
-
conversations.postApiV1ConversationsIdReadRemove converstation
-
customEmojis.getApiV1CustomEmojisReturns custom emojis that are available on the server.
-
directory.getApiV1DirectoryList accounts visible in the directory.
-
domainBlocks.deleteApiV1DomainBlocksRemove a domain block, if it exists in the user's array of blocked domains.
-
domainBlocks.getApiV1DomainBlocksView domains the user has blocked.
-
domainBlocks.postApiV1DomainBlocks"Block a domain to:
- hide all public posts from it
- hide all notifications from it
- remove all followers from it
- prevent following new users from it (but does not remove existing follows)"
-
endorsements.getApiV1EndorsementsAccounts that the user is currently featuring on their profile.
-
favourites.getApiV1FavouritesStatuses the user has favourited.
-
featuredTags.deleteApiV1FeaturedTagsIdUnfeature a tag
-
featuredTags.getApiV1FeaturedTagsView your featured tags.
-
featuredTags.getApiV1FeaturedTagsSuggestionsShows your 10 most-used tags, with usage history for the past week.
-
featuredTags.postApiV1FeaturedTagsCreate a feature a tag.
-
filters.deleteApiV1FiltersIdDelete a filter.
-
filters.getApiV1FiltersGET /api/v1/filters
-
filters.getApiV1FiltersIdGet one filter.
-
filters.postApiV1FiltersPOST /api/v1/filters
-
filters.putApiV1FiltersIdUpdate a filter.
-
followRequests.getApiV1FollowRequestsPending Follows
-
followRequests.postApiV1FollowRequestsIdAuthorizeAccept Follow
-
followRequests.postApiV1FollowRequestsIdRejectAccept Follow
-
instance.getApiV1InstanceInformation about the server.
-
instance.getApiV1InstanceActivityInstance activity over the last 3 months, binned weekly.
-
instance.getApiV1InstancePeersInformation about the server.
-
lists.deleteApiV1ListsDelete a list
-
lists.deleteApiV1ListsIdAccountsRemove accounts from the given list.
-
lists.getApiV1ListsFetch all lists that the user owns.
-
lists.getApiV1ListsIdRemove converstation
-
lists.getApiV1ListsIdAccountsView accounts in List
-
lists.postApiV1ListsCreate a new list.
-
lists.postApiV1ListsIdAccountsAdd accounts to the given list. Note that the user must be following these accounts.
-
lists.putApiV1ListsChange the title of a list, or which replies to show.
-
markers.getApiV1MarkersGet saved timeline position
-
markers.postApiV1MarkersGet saved timeline position
-
media.getApiV1MediaIdGet an attachement.
-
media.postApiV1MediaCreates an attachment to be used with a new status.
-
media.postApiV1MediaIdUpdate an Attachment, before it is attached to a status and posted.
-
mutes.getApiV1MutesAccounts the user has muted.
-
notifications.getApiV1NotificationsNotifications concerning the user. This API returns Link headers containing links to the next/previous page. However, the links can also be constructed dynamically using query params and id values.
-
notifications.getApiV1NotificationsIdView information about a notification with a given ID.
-
notifications.postApiV1NotificationsClearClear all notifications from the server.
-
notifications.postApiV1NotificationsIdDismissClear a single notification from the server.
-
oauth.getOauthAuthorizeDisplays an authorization form to the user. If approved, it will create and return an authorization code, then redirect to the desired redirect_uri, or show the authorization code if urn:ietf:wg:oauth:2.0:oob was requested. The authorization code can be used while requesting a token to obtain access to user-level methods.
-
oauth.postOauthRevokeRevoke an access token to make it no longer valid for use.
-
oauth.postOauthTokenReturns an access token, to be used during API calls that are not public.
-
oembed.getApiOembedOEmbed as JSON
-
polls.getApiV1PollsIdView a poll.
-
polls.postApiV1PollsIdVote on a poll.
-
preferences.getApiV1PreferencesShows your 10 most-used tags, with usage history for the past week.
-
proofs.getApiProofsView identity proof
-
push.deleteApiV1PushSubscriptionUpdates the current push subscription. Only the data part can be updated. To change fundamentals, a new subscription must be created instead.
-
push.getApiV1PushSubscriptionView the PushSubscription currently associated with this access token.
-
push.postApiV1PushSubscriptionAdd a Web Push API subscription to receive notifications. Each access token can have one push subscription. If you create a new subscription, the old subscription is deleted.
-
push.putApiV1PushSubscriptionUpdates the current push subscription. Only the data part can be updated. To change fundamentals, a new subscription must be created instead.
-
reports.postApiV1ReportsFile a report.
-
scheduledStatuses.deleteApiV1ScheduledStatusesIdCancel a scheduled status
-
scheduledStatuses.getApiV1ScheduledStatusesView scheduled statuses
-
scheduledStatuses.getApiV1ScheduledStatusesIdView a single scheduled status
-
scheduledStatuses.putApiV1ScheduledStatusesIdView a single scheduled status
-
search.getApiV2SearchSearch results
-
statuses.deleteApiV1StatusesIdDELETE /api/v1/statuses/{id}
-
statuses.getApiV1StatusesIdGET /api/v1/statuses/{id}
-
statuses.getApiV1StatusesIdContextGET /api/v1/statuses/{id}/context
-
statuses.getApiV1StatusesIdFavouritedByView who favourited a given status.
-
statuses.getApiV1StatusesIdRebloggedByView who boosted a given status.
-
statuses.postApiV1StatusesPOST /api/v1/statuses
-
statuses.postApiV1StatusesIdBookmarkPrivately bookmark a status.
-
statuses.postApiV1StatusesIdFavouriteAdd a status to your favourites list.
-
statuses.postApiV1StatusesIdMuteDo not receive notifications for the thread that this status is part of. Must be a thread in which you are a participant.
-
statuses.postApiV1StatusesIdPinFeature one of your own public statuses at the top of your profile.
-
statuses.postApiV1StatusesIdReblogReshare a status.
-
statuses.postApiV1StatusesIdUnbookmarkRemove a status from your private bookmarks.
-
statuses.postApiV1StatusesIdUnfavouriteRemove a status from your favourites list.
-
statuses.postApiV1StatusesIdUnmuteStatus's conversation unmuted, or was already unmuted
-
statuses.postApiV1StatusesIdUnpinUnfeature a status from the top of your profile.
-
statuses.postApiV1StatusesIdUnreblogUndo a reshare of a status.
-
suggestions.deleteApiV1SuggestionsIdDelete user suggestion
-
suggestions.getApiV1SuggestionsAccounts the user has had past positive interactions with, but is not yet following.
-
timelines.getApiV1TimelinesHomeView statuses from followed users.
-
timelines.getApiV1TimelinesListListIdView statuses in the given list timeline.
-
timelines.getApiV1TimelinesPublicPublic timeline
-
timelines.getApiV1TimelinesTagHashtagView public statuses containing the given hashtag.
-
todoSecurity.postApiV1AccountsCreates a user and account records. Returns an account access token for the app that initiated the request. The app should save this token for later, and should wait for the user to confirm their account by clicking a link in their email inbox.
-
trends.getApiV1TrendsTags that are being used more frequently within the past week.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools