title: "{{ replace .Name "-" " " | title }}" description: menu: docs:
parent: methods
aliases: [ "/api/methods/SOMETHING", "/api/methods/something",
GET /api/v1/example HTTP/1.1
Returns: SOMETHING\
OAuth: User token + oauth:scope
\
Permissions: Manage ???\
Version history:\
x.x.x - added
:id : {{}} String. The ID of the SOMETHING in the database.
Authorization
: {{}} Provide this header with Bearer <user token>
to gain authorized access to this API method.
Internal parameter. Use HTTP Link
header for pagination.
max_id : String. All results returned will be lesser than this ID. In effect, sets an upper bound on results.
since_id : String. All results returned will be greater than this ID. In effect, sets a lower bound on results.
min_id : String. Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward.
limit : Integer. Maximum number of results to return. Defaults to 20 statuses or 40 accounts. Max twice the default limit.
Because SOMETHING IDs are generally not exposed via any API responses, you will have to parse the HTTP Link
header to load older or newer results. See Paginating through API responses for more information.
Link: <https://mastodon.example/api/v1/SOMETHING?max_id=441449>; rel="next", <https://mastodon.example/api/v1/SOMETHING?since_id=444808>; rel="prev"
Invalid or missing Authorization header.
{
"error": "The access token is invalid"
}
Authorized user is missing a permission, or invalid or missing Authorization header
{
"error": "This action is not allowed"
}
SOMETHING is not owned by you or does not exist
{
"error": "Record not found"
}
{
"error": "Too many requests"
}
{
"error": "There was a temporary problem serving your request, please try again"
}
{{< page-relref ref="methods/SOMETHING#anchor" caption="POST /api/v1/something/" >}}
{{< page-ref page="client/authorized" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/SOMETHING_controller.rb" caption="app/controllers/api/v1/SOMETHING_controller.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/SOMETHING" caption="app/controllers/api/v1/SOMETHING/" >}}