# Add Suppression

> POST /suppressions — stop all mail to one address.

`POST /suppressions`

Puts one address on your account's [suppression list](https://www.senddart.com/docs/emails/suppressions). SendDart skips any later send to it (the send is reported as `suppressed`). The new row has `origin: "manual"` and fires a `suppression.added` webhook.

Adding an address that is already listed changes nothing: you get the existing row back with status `200` instead of `201`, and no webhook fires.

> **Note:** Needs a full-access API key. A sending-only key gets `401 restricted_api_key`.

**Body parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string | Yes | The address to suppress. |

**Node.js**

```js
const res = await fetch('https://www.senddart.com/api/suppressions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer mb_xxxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "email": "pat@example.com"
}),
});
const data = await res.json();
console.log(data);
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://www.senddart.com/api/suppressions')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
req = Net::HTTP::Post.new(uri)
req['Authorization'] = 'Bearer mb_xxxxxxxxx'
req['Content-Type'] = 'application/json'
req.body = <<~JSON
{
  "email": "pat@example.com"
}
JSON
res = http.request(req)
puts res.body
```

**PHP**

```php
<?php
$ch = curl_init('https://www.senddart.com/api/suppressions');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer mb_xxxxxxxxx',
        'User-Agent: my-app/1.0',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "email": "pat@example.com"
}
JSON,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Python**

```python
import requests

res = requests.post(
    "https://www.senddart.com/api/suppressions",
    headers={"Authorization": "Bearer mb_xxxxxxxxx", "Content-Type": "application/json"},
    json={
  "email": "pat@example.com"
},
)
print(res.json())
```

**Go**

```go
package main

import (
    "fmt"
    "io"
    "net/http"
    "strings"
)

func main() {
    req, _ := http.NewRequest("POST", "https://www.senddart.com/api/suppressions", strings.NewReader(`{
  "email": "pat@example.com"
}`))
    req.Header.Set("Authorization", "Bearer mb_xxxxxxxxx")
    req.Header.Set("Content-Type", "application/json")
    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    out, _ := io.ReadAll(res.Body)
    fmt.Println(string(out))
}
```

**Rust**

```rust
use reqwest::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let res = Client::new()
        .post("https://www.senddart.com/api/suppressions")
        .header("Authorization", "Bearer mb_xxxxxxxxx")
        .header("User-Agent", "my-app/1.0")
        .header("Content-Type", "application/json")
        .body(r#"{
  "email": "pat@example.com"
}"#)
        .send()
        .await?;
    println!("{}", res.text().await?);
    Ok(())
}
```

**Java**

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
    .uri(URI.create("https://www.senddart.com/api/suppressions"))
    .header("Authorization", "Bearer mb_xxxxxxxxx")
    .header("User-Agent", "my-app/1.0")
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "email": "pat@example.com"
}
"""))
    .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

**.NET**

```csharp
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://www.senddart.com/api/suppressions");
request.Headers.Add("Authorization", "Bearer mb_xxxxxxxxx");
request.Headers.Add("User-Agent", "my-app/1.0");
request.Content = new StringContent(@"{
  ""email"": ""pat@example.com""
}", Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

**cURL**

```bash
curl -X POST 'https://www.senddart.com/api/suppressions' \
  -H 'Authorization: Bearer mb_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "pat@example.com"
}'
```

### Response (201)

```json
{
  "object": "suppression",
  "id": "48213",
  "email": "pat@example.com",
  "origin": "manual",
  "domain": null,
  "created_at": "2026-11-20T09:14:02.000Z"
}
```

**The suppression object**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | The suppression's id: a number, sent as text. |
| `email` | string | No | The suppressed address, in lower case. |
| `origin` | string | No | How the address got on the list: `bounce` (a hard bounce), `complaint` (marked as spam), `manual` (added by you, in the dashboard or with this API) or `unsubscribe` (the recipient opted out). |
| `domain` | string | null | No | `null` when the address is blocked for the whole account. A sending domain when the opt-out only applies to mail from that domain. |
| `created_at` | string | No | When the address was added (ISO 8601). |

A missing or invalid `email` returns `422 validation_error`.
