# Allow or block a sender (by email address) for the guard

`POST /crm/submissions/senders` · Rivier · contacts

Allow or block a sender (by email address) for the guard.

- Scope: contacts:admin
- Sdk: contacts.submission.sender
- Cli: contacts submission sender

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "maxLength": 320
    },
    "rule": {
      "type": "string",
      "enum": [
        "allow",
        "block"
      ]
    }
  },
  "required": [
    "email",
    "rule"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/crm/submissions/senders' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "string",
  "rule": "allow"
}'
```
