-
-
Couldn't load subscription status.
- Fork 988
Add API Versions page #1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add API Versions page #1631
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| title: API Versions | ||
| description: How to detect new features within the Mastodon API. | ||
| menu: | ||
| docs: | ||
| weight: 40 | ||
| parent: api | ||
| --- | ||
|
|
||
| Since Mastodon version 4.3.0, the [Instance Details]({{< relref "methods/instance#v2" >}}) endpoint has returned a property indicating the Mastodon API Version, which is separate from the release number, and is just an integer that can be used to detect the presence of new methods or properties on the Mastodon API. | ||
|
|
||
| ```json | ||
| // GET /api/v2/instance | ||
| { | ||
| // ... | ||
| "api_versions": { | ||
| "mastodon": 5, | ||
| }, | ||
| // ... | ||
| } | ||
| ``` | ||
|
|
||
| ## Changelog | ||
| ### Version 1 | ||
|
|
||
| - *None* | ||
|
|
||
| ### Version 2 | ||
|
|
||
| - Grouped notifications API: https://github.com/mastodon/mastodon/pull/31840 | ||
|
|
||
| ### Version 3 | ||
|
|
||
| - API for updating attribution domains: https://github.com/mastodon/mastodon/pull/32730 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is documented in |
||
|
|
||
| ### Version 4 | ||
|
|
||
| - Media deletion methods: https://github.com/mastodon/mastodon/pull/34035 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mastodon/mastodon#33988 is documented in |
||
|
|
||
| ### Version 5 | ||
|
|
||
| - `blur` filter for media attachments: | ||
| https://github.com/mastodon/mastodon/pull/34256 | ||
|
Comment on lines
+42
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is documented in |
||
|
|
||
| --- | ||
|
|
||
| When the Mastodon API gains new features in the future, this version number will be updated, and this page updated accordingly. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is documented in
content/en/methods/grouped_notifications.md