Perform moderation actions with accounts and reports.
Responses are not currently documented. Exact nature of parameters has not been validated.
Account methods
View accounts by criteria
GEThttps://mastodon.example/api/v1/admin/accounts
View accounts matching certain criteria for filtering, up to 100 at a time. Pagination may be done with the HTTP Link header in the response.
Returns: Admin::Account
OAuth: User token + admin:read:accountsVersion history:
2.9.1 - added
Perform an action against an account and log this action in the moderation history.
Returns: empty object
OAuth: User token + admin:write:accountsVersion history:
2.9.1 - added
Path Parameters
Name
Type
Description
:account_id
string
ID of the account
Headers
Name
Type
Description
Authorization
string
Bearer <user token>
Request Body
Name
Type
Description
type
string
Type of action to be taken. Enumerable oneOf: nonedisablesilencesuspend
report_id
string
ID of an associated report that caused this action to be taken
warning_preset_id
string
ID of a preset warning
text
string
Additional text for clarification of why this action was taken
send_email_notification
boolean
Whether an email should be sent to the user with the above information.
Approve the given local account if it is currently pending approval.
Returns: Admin::Account
OAuth: User token + admin:write:accountsVersion history:
2.9.1 - added
Reject the given local account if it is currently pending approval.
Returns: Admin::Account
OAuth: User token + admin:write:accountsVersion history:
2.9.1 - added
Re-enable a local account whose login is currently disabled.
Returns: Admin::Account
OAuth: User token + admin:write:accountsVersion history:
2.9.1 - added
Unsuspend a currently suspended account.
Returns: Admin::Account
OAuth: User token + admin:write:accountsVersion history:
2.9.1 - added
Path Parameters
Name
Type
Description
:id
string
ID of the account
Headers
Name
Type
Description
Authorization
string
Bearer <user token>
Report methods
View all reports
GEThttps://mastodon.example/api/v1/admin/reports
View all reports. Pagination may be done with HTTP Link header in the response.
Returns: Array of Admin::Report
OAuth: User token + admin:read:reportsVersion history:
2.9.1 - added