> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# Import numbers into the suppression list

POST https://api.jelliu.co/api/compliance/suppressions/import
Content-Type: application/json

Loads a national do-not-call registry export or your own opt-out list into the workspace suppression
list. Every outbound call, WhatsApp send and campaign email checks this list first, whatever the country
config says. None of the registries offers a per-number lookup API, so importing the file is how you
meet the duty to consult them. The main one is Colombia's Registro de Números Excluidos under
Ley 2300 de 2023.

**Format.** `numbers` is a JSON array of strings, 1 to 200,000 entries, each 5 to 32 characters. An entry
outside that length fails the **whole request** with 400. Each entry has spaces, non-breaking spaces,
dashes, dots and parentheses stripped, and must then be E.164 (`+` followed by 2 to 15 digits). Entries
that are not are skipped and counted in `rejected`, with up to 10 shown in `rejectedSample`. Local-format
numbers such as `3001234567` are **not** given a country code; fix the file first. Duplicates in the
request are collapsed.

**Size.** Request bodies are limited to 1 MB, roughly 50,000 to 60,000 numbers. Split larger registries
across several requests. The import is one-way: numbers already on the list keep their original reason,
source and date.

**Side effects.** Inserts suppression rows in batches of 1,000. Those numbers immediately become
uncontactable on every channel. Writes an audit entry (`import_suppressions`) with the source and counts,
never the numbers.

**Idempotency.** Safe to retry, including with the same file. Existing numbers are left unchanged, and the
response counts them as `suppressed` again.

**Access**
- **Required scope:** `full`. Signed-in users need the `owner` or `admin` role.
- **Rate limit:** General API — 120 (Starter), 200 (Growth), 300 (Business) or 600 (Enterprise) requests/min per workspace. See [Rate limits](/rate-limits).
- **Plan:** Available on every plan.


Reference: https://developer.jelliu.co/api-reference/compliance/post-compliance-suppressions-import

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Request

### Body (application/json)

This endpoint expects an object.

- `numbers` (list of string, required) — Phone numbers to suppress. Formatting characters are stripped. Each must then be E.164.
- `source` (enum, required) — Where the list came from. It is stored on every new row and drives the `stale` report. - `registry:rne_co`: Colombia, Registro de Números Excluidos (CRC), Ley 2300 de 2023. - `registry:dnc_us`: United States National Do Not Call Registry. The scrub must be under 31 days old. - `registry:repep_mx`: Mexico, Registro Público para Evitar Publicidad (Profeco). - `registry:nmp_br`: Brazil, Não Me Perturbe. - `customer_list`: your own opt-out list. It is never reported as stale.
  - Allowed values: `registry:rne_co`, `registry:dnc_us`, `registry:repep_mx`, `registry:nmp_br`, `customer_list`
- `reason` (string, optional) — Free-text note stored on each new row. It defaults to `imported:<source>` when omitted or blank.

## Response

### 201

Import result.

- `data` (object, required) — Counts from one suppression import.
  - `received` (integer, optional) — Valid, de-duplicated E.164 numbers in the request.
  - `suppressed` (integer, optional) — Same as `received`. Numbers already on the list count as suppressed and keep their original source and date.
  - `rejected` (integer, optional) — Entries that were not valid E.164 after stripping spaces, dashes, dots and parentheses.
  - `rejectedSample` (list of string, optional) — Up to 10 rejected entries as sent (each cut to 32 characters), to help spot a format problem.

## Errors

### 400 Bad Request Error

The body failed validation (an unknown `source`, an empty array, more than 200,000 entries, or an entry outside 5 to 32 characters). `details` is the flattened Zod error.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 401 Unauthorized Error

No usable credential. Either the `Authorization` header is missing or is not a well-formed `Bearer jl_…` key, or the key is unknown, revoked or expired. Do not retry with the same key. See [Authentication](/authentication#401-unauthorized).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 403 Forbidden Error

The API key lacks the `full` scope, or the signed-in user is not an owner or admin.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 429 Too Many Requests Error

Rate limit exceeded for the current 60-second window (`RATE_LIMIT_EXCEEDED`). Wait `Retry-After` seconds, then retry. The `message` differs per limiter; the code does not. See [Rate limits](/rate-limits).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 500 Internal Server Error

The body exceeds the 1 MB request limit, or the insert failed. Batches already written stay written, so retrying is safe.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

## Examples

### All entries valid

**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "received": 3,
    "suppressed": 3,
    "rejected": 0,
    "rejectedSample": []
  }
}
```

**SDK Code**

```python All entries valid
import requests

url = "https://api.jelliu.co/api/compliance/suppressions/import"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript All entries valid
const url = 'https://api.jelliu.co/api/compliance/suppressions/import';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go All entries valid
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/suppressions/import"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby All entries valid
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/compliance/suppressions/import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java All entries valid
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/compliance/suppressions/import")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php All entries valid
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/compliance/suppressions/import', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp All entries valid
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/suppressions/import");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift All entries valid
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/suppressions/import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Some entries lacked a country code

**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "received": 2,
    "suppressed": 2,
    "rejected": 2,
    "rejectedSample": [
      "3001234567",
      "(601) 555-0101"
    ]
  }
}
```

**SDK Code**

```python Some entries lacked a country code
import requests

url = "https://api.jelliu.co/api/compliance/suppressions/import"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Some entries lacked a country code
const url = 'https://api.jelliu.co/api/compliance/suppressions/import';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Some entries lacked a country code
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/suppressions/import"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Some entries lacked a country code
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/compliance/suppressions/import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Some entries lacked a country code
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/compliance/suppressions/import")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Some entries lacked a country code
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/compliance/suppressions/import', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Some entries lacked a country code
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/suppressions/import");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Some entries lacked a country code
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/suppressions/import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Colombian RNE export

**Request**

```json
{
  "numbers": [
    "+573001234567",
    "+57 300 765-4321",
    "+573154448899"
  ],
  "source": "registry:rne_co",
  "reason": "Exportación RNE 2026-09-01"
}
```

**Response**

```json
{
  "data": {
    "received": 3,
    "suppressed": 3,
    "rejected": 0,
    "rejectedSample": []
  }
}
```

**SDK Code**

```python Colombian RNE export
import requests

url = "https://api.jelliu.co/api/compliance/suppressions/import"

payload = {
    "numbers": ["+573001234567", "+57 300 765-4321", "+573154448899"],
    "source": "registry:rne_co",
    "reason": "Exportación RNE 2026-09-01"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Colombian RNE export
const url = 'https://api.jelliu.co/api/compliance/suppressions/import';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"numbers":["+573001234567","+57 300 765-4321","+573154448899"],"source":"registry:rne_co","reason":"Exportación RNE 2026-09-01"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Colombian RNE export
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/suppressions/import"

	payload := strings.NewReader("{\n  \"numbers\": [\n    \"+573001234567\",\n    \"+57 300 765-4321\",\n    \"+573154448899\"\n  ],\n  \"source\": \"registry:rne_co\",\n  \"reason\": \"Exportación RNE 2026-09-01\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Colombian RNE export
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/compliance/suppressions/import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"numbers\": [\n    \"+573001234567\",\n    \"+57 300 765-4321\",\n    \"+573154448899\"\n  ],\n  \"source\": \"registry:rne_co\",\n  \"reason\": \"Exportación RNE 2026-09-01\"\n}"

response = http.request(request)
puts response.read_body
```

```java Colombian RNE export
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/compliance/suppressions/import")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"numbers\": [\n    \"+573001234567\",\n    \"+57 300 765-4321\",\n    \"+573154448899\"\n  ],\n  \"source\": \"registry:rne_co\",\n  \"reason\": \"Exportación RNE 2026-09-01\"\n}")
  .asString();
```

```php Colombian RNE export
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/compliance/suppressions/import', [
  'body' => '{
  "numbers": [
    "+573001234567",
    "+57 300 765-4321",
    "+573154448899"
  ],
  "source": "registry:rne_co",
  "reason": "Exportación RNE 2026-09-01"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Colombian RNE export
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/suppressions/import");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"numbers\": [\n    \"+573001234567\",\n    \"+57 300 765-4321\",\n    \"+573154448899\"\n  ],\n  \"source\": \"registry:rne_co\",\n  \"reason\": \"Exportación RNE 2026-09-01\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Colombian RNE export
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "numbers": ["+573001234567", "+57 300 765-4321", "+573154448899"],
  "source": "registry:rne_co",
  "reason": "Exportación RNE 2026-09-01"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/suppressions/import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Your own opt-out list

**Request**

```json
{
  "numbers": [
    "+13055550142",
    "+525512345678"
  ],
  "source": "customer_list"
}
```

**Response**

```json
{
  "data": {
    "received": 3,
    "suppressed": 3,
    "rejected": 0,
    "rejectedSample": []
  }
}
```

**SDK Code**

```python Your own opt-out list
import requests

url = "https://api.jelliu.co/api/compliance/suppressions/import"

payload = {
    "numbers": ["+13055550142", "+525512345678"],
    "source": "customer_list"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Your own opt-out list
const url = 'https://api.jelliu.co/api/compliance/suppressions/import';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"numbers":["+13055550142","+525512345678"],"source":"customer_list"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Your own opt-out list
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/suppressions/import"

	payload := strings.NewReader("{\n  \"numbers\": [\n    \"+13055550142\",\n    \"+525512345678\"\n  ],\n  \"source\": \"customer_list\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Your own opt-out list
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/compliance/suppressions/import")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"numbers\": [\n    \"+13055550142\",\n    \"+525512345678\"\n  ],\n  \"source\": \"customer_list\"\n}"

response = http.request(request)
puts response.read_body
```

```java Your own opt-out list
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/compliance/suppressions/import")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"numbers\": [\n    \"+13055550142\",\n    \"+525512345678\"\n  ],\n  \"source\": \"customer_list\"\n}")
  .asString();
```

```php Your own opt-out list
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/compliance/suppressions/import', [
  'body' => '{
  "numbers": [
    "+13055550142",
    "+525512345678"
  ],
  "source": "customer_list"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Your own opt-out list
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/suppressions/import");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"numbers\": [\n    \"+13055550142\",\n    \"+525512345678\"\n  ],\n  \"source\": \"customer_list\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Your own opt-out list
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "numbers": ["+13055550142", "+525512345678"],
  "source": "customer_list"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/suppressions/import")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```