1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
2018-10-06 00:10:53 +02:00

976 B

title menu
Blocks
docs
parent weight
rest-api 10

GET /api/v1/blocks

Accounts the user has blocked.

Returns array of [Account]({{< relref "entities.md#account" >}})

Resource information

{{< api_method_info auth="Yes" user="Yes" scope="read:blocks follow" version="0.0.0" >}}

Parameters

Name Description Required Default
limit Maximum number of results Optional 40

Pagination

{{< api_pagination >}}

POST /api/v1/accounts/:id/block

Block an account.

Returns [Relationship]({{< relref "entities.md#relationship" >}})

Resource information

{{< api_method_info auth="Yes" user="Yes" scope="write:blocks follow" version="0.0.0" >}}

POST /api/v1/accounts/:id/unblock

Unblock an account.

Returns [Relationship]({{< relref "entities.md#relationship" >}})

Resource information

{{< api_method_info auth="Yes" user="Yes" scope="write:blocks follow" version="0.0.0" >}}