← Back to catalog

Social

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

auto-generated
swirls add mastodon
actionGETv1.0.0

get_api_v1_accounts_id_followers

Accounts which follow the given account, if network is not hidden by the account owner.

Source
actionGETv1.0.0

get_api_v1_accounts_id_following

Accounts which the given account is following, if network is not hidden by the account owner.

Source
actionGETv1.0.0

get_api_v1_admin_reports

View all reports. Pagination may be done with HTTP Link header in the response.

Source
actionGETv1.0.0

get_api_v1_endorsements

Accounts that the user is currently featuring on their profile.

Source
actionGETv1.0.0

get_api_v1_notifications

Notifications 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.

Source
actionGETv1.0.0

get_api_v1_preferences

Shows your 10 most-used tags, with usage history for the past week.

Source
actionGETv1.0.0

get_api_v1_suggestions

Accounts the user has had past positive interactions with, but is not yet following.

Source
actionGETv1.0.0

get_api_v1_trends

Tags that are being used more frequently within the past week.

Source
actionPOSTv1.0.0

post_api_v1_accounts

Creates 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.

Source
actionPOSTv1.0.0

post_api_v1_accounts_id_block

Block the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline).

Source
actionPOSTv1.0.0

post_api_v1_accounts_id_follow

Follow the given account. Can also be used to update whether to show reblogs or enable notifications.

Source
actionPOSTv1.0.0

post_api_v1_accounts_id_mute

Mute the given account. Clients should filter statuses and notifications from this account, if received (e.g. due to a boost in the Home timeline).

Source
actionPOSTv1.0.0

post_api_v1_accounts_id_pin

Add the given account to the user's featured profiles. (Featured profiles are currently shown on the user's own public profile.)

Source
actionPOSTv1.0.0

post_api_v1_accounts_id_unblock

Block the given account. Clients should filter statuses from this account if received (e.g. due to a boost in the Home timeline).

Source
actionPOSTv1.0.0

post_api_v1_apps

Create a new application to obtain OAuth2 credentials.

Source
actionPOSTv1.0.0

post_api_v1_domain_blocks

"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)"

Source
actionPOSTv1.0.0

post_api_v1_lists_id_accounts

Add accounts to the given list. Note that the user must be following these accounts.

Source
actionPOSTv1.0.0

post_api_v1_media

Creates an attachment to be used with a new status.

Source
actionPOSTv1.0.0

post_api_v1_media_id

Update an Attachment, before it is attached to a status and posted.

Source
actionPOSTv1.0.0

post_api_v1_push_subscription

Add 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.

Source
actionPOSTv1.0.0

post_api_v1_statuses_id_mute

Do not receive notifications for the thread that this status is part of. Must be a thread in which you are a participant.

Source
Beyond the catalog

Any provider, on request.

01

Request it

Tell us which provider you need, and we will ship it in the registry.

02

Generate it

Point swirls add at an OpenAPI or GraphQL spec. Typed actions for any API you hold credentials for, today.

acme · integrations
terminal
~/acme $swirls add linear
✓ 12 typed actions · scopes and schemas included
 
~/acme $swirls add https://api.acme.dev/openapi.json
◆ Fetched spec · 38 operations
✓ 6 typed actions · generated from spec