Because AccountDomainBlock 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]({{<relref "api/guidelines#pagination">}}) for more information.
- prevent following new users from it (but does not remove existing follows)
**Returns:** empty object\
**OAuth:** User token + `write:blocks` or `follow`\
**Version:**\
1.4.0 - added
#### Request
##### Headers
Authorization
: {{<required>}} Provide this header with `Bearer <user token>` to gain authorized access to this API method.
##### Form data parameters
domain
: {{<required>}} String. Domain to block.
#### Response
##### 200: OK
If the call was successful, an empty object will be returned. Note that the call will be successful even if the domain is already blocked, or if the domain does not exist, or if the domain is not a domain.
```json
{}
```
##### 401: Unauthorized
Invalid or missing Authorization header.
```json
{
"error": "The access token is invalid"
}
```
##### 422: Unprocessable entity
If `domain` is not provided, the request will fail.
```json
{
"error": "Validation failed: Domain can't be blank"
}
```
If `domain` contains spaces, the request will fail.
```json
{
"error": "Validation failed: Domain is not a valid domain name"