follow_requests
View and manage follow requests.
Pending Follows
GET
https://mastodon.example/api/v1/follow_requests
Returns: Array of Account
OAuth: User token + read:follows
or follow
Version history:
0.0.0 - added
Query Parameters
limit
string
Maximum number of results to return. Defaults to 40. Paginate using the HTTP Link header.
Headers
Authorization
string
Bearer <user token>
Link: <https://mastodon.social/api/v1/follow_requests?max_id=23716836>; rel="next", <https://mastodon.social/api/v1/follow_requests?min_id=23716978>; rel="prev"
[
{
"id": "8889777",
"username": "example",
"acct": "example@social.example",
...
}
]
Accept Follow
POST
https://mastodon.example/api/v1/follow_requests/:id/authorize
Returns: Relationship
OAuth: User token + write:follows
or follow
Version history:
0.0.0 - added
3.0.0 - now returns Relationship instead of nothing
Path Parameters
:id
string
ID of the account in the database
Headers
Authorization
string
Bearer <user token>
{
"id": "8889777",
"following": false,
"showing_reblogs": false,
"followed_by": true,
"blocking": false,
"blocked_by": false,
"muting": false,
"muting_notifications": false,
"requested": false,
"domain_blocking": false,
"endorsed": false
}
Reject Follow
POST
https://mastodon.example/api/v1/follow_requests/:id/reject
Returns: Relationship
OAuth: User token + write:follows
or follow
Version history:
0.0.0 - added
3.0.0 - now returns Relationship instead of nothing
Path Parameters
:id
string
ID of the account in the database
Headers
Authorization
string
Bearer <user token>
{
"id": "8889777",
"following": false,
"showing_reblogs": false,
"followed_by": false,
"blocking": false,
"blocked_by": false,
"muting": false,
"muting_notifications": false,
"requested": false,
"domain_blocking": false,
"endorsed": false
}
Last updated
Was this helpful?