mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Add follow requests API
This commit is contained in:
parent
8774c7f9f2
commit
c9c516ee92
@ -1,7 +1,43 @@
|
||||
---
|
||||
title: Follow requests API
|
||||
title: Follow requests
|
||||
menu:
|
||||
docs:
|
||||
parent: api
|
||||
parent: rest-api
|
||||
weight: 10
|
||||
---
|
||||
|
||||
## GET /api/v1/follow_requests
|
||||
|
||||
Accounts that have requested to follow the user.
|
||||
|
||||
Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||
|
||||
### Resource information
|
||||
|
||||
{{< api_method_info auth="Yes" user="Yes" scope="read read:follows follow" version="0.0.0" >}}
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name|Description|Required|Default|
|
||||
|----|-----------|:------:|:-----:|
|
||||
| `limit` | Maximum number of results | Optional | 40 |
|
||||
|
||||
### Pagination
|
||||
|
||||
{{< api_pagination >}}
|
||||
|
||||
## POST /api/v1/follow_requests/:id/authorize
|
||||
|
||||
Allow the account to follow the user.
|
||||
|
||||
### Resource information
|
||||
|
||||
{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}}
|
||||
|
||||
## POST /api/v1/follow_requests/:id/reject
|
||||
|
||||
Do not allow the account to follow the user.
|
||||
|
||||
### Resource information
|
||||
|
||||
{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user