> 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.

# List country compliance configs

GET https://api.jelliu.co/api/compliance/configs

Returns the workspace's saved per-country compliance configs, sorted by `country_code` ascending. The list
is not paginated, because there is at most one config per supported country, so at most seven. A country
missing from the list uses the built-in defaults from `GET /api/compliance/defaults/{countryCode}`.

Reads are open to every role so operators can see the rules they work under. Only the owner can change them,
with `PUT /api/compliance/configs` and `DELETE /api/compliance/configs/{countryCode}`.

**Access**

* **Required scope:** `read` or `write`. Any signed-in workspace 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/get-compliance-configs

## 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).

## Response

### 200

Saved configs, sorted by country code.

- `data` (list of object, required)
  - `id` (string, optional) — Config id.
  - `tenant_id` (string, optional) — The workspace that owns the config.
  - `country_code` (enum, optional) — A country Jelliu has written compliance rules for (ISO 3166-1 alpha-2, upper case). The country of a number is resolved from its dialling prefix. Defaults shown are the built-in ones. All seven require a recording notice, run the DNC check and default the AI-disclosure notice to off. - `CO`: Colombia (`+57`). Ley 1581 de 2012 (data protection) and the Registro de Números Excluidos under Ley 2300 de 2023. Calls 08:00–20:00 America/Bogota, 3 per day, 10 total, opt-in required, 365-day retention. - `MX`: Mexico (`+52`). LFPDPPP and the Profeco REPEP registry. Calls 08:00–21:00 America/Mexico_City, 3 per day, 10 total, 365 days. - `BR`: Brazil (`+55`). LGPD and Não Me Perturbe. Calls 08:00–20:00 America/Sao_Paulo, 3 per day, 8 total, opt-in required, recording notice in Portuguese, 365 days. - `US`: United States (`+1`, which also covers Canada and the Caribbean). TCPA/TSR and the National DNC Registry. Calls 08:00–21:00 America/New_York, 3 per day, 15 total, recording notice in English, 730 days. - `AR`: Argentina (`+54`). Ley 25.326. Calls 08:00–20:00 America/Argentina/Buenos_Aires, 3 per day, 10 total, 365 days. - `CL`: Chile (`+56`). Ley 19.628. Calls 08:00–20:00 America/Santiago, 3 per day, 10 total, 365 days. - `PE`: Peru (`+51`). Ley 29733. Calls 08:00–20:00 America/Lima, 3 per day, 10 total, 365 days.
    - Allowed values: `CO`, `MX`, `BR`, `US`, `AR`, `CL`, `PE`
  - `require_recording_consent` (boolean, optional) — Whether calls to this country open with a recording notice.
  - `consent_script` (string, optional, nullable) — The recording notice text. `null` uses the country default script.
  - `require_dnc_check` (boolean, optional) — Whether numbers of contacts marked do-not-call are blocked.
  - `max_call_attempts_per_day` (integer, optional) — Maximum calls to one contact per local day.
  - `max_call_attempts_total` (integer, optional) — Maximum lifetime call attempts to one contact.
  - `allowed_call_hours` (object, optional, nullable) — Allowed local window. `null` on legacy rows means the country default window applies.
    - `start` (string, required) — Window start, `HH:MM`, 24-hour clock.
    - `end` (string, required) — Window end, `HH:MM`, 24-hour clock, exclusive.
    - `timezone` (string, required) — IANA time zone name. Unknown names fail validation with `Invalid IANA timezone`.
  - `data_retention_days` (integer, optional) — Retention for this country in days. `PUT /api/compliance/retention` overwrites it on every config.
  - `require_opt_in` (boolean, optional) — Stored flag saying the country requires prior opt-in. Not enforced by the call gate.
  - `blocked_prefixes` (list of string, optional, nullable) — Prefixes that are never contacted. `null` means the country default (none).
  - `require_ai_disclosure` (boolean, optional, nullable) — The workspace's AI-disclosure decision for this country. `null` inherits the country default (`false`).
  - `regulatory_notes` (string, optional, nullable) — Internal notes. The API cannot write this field, and it is normally `null`.
  - `created_at` (datetime, optional) — When the config was first saved.
  - `updated_at` (datetime, optional) — When the config was last changed, including by `PUT /api/compliance/retention`.

## Errors

### 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 has neither `read` nor `write`, or the workspace is suspended.

- `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).

## Examples

### Colombia configured

**Response**

```json
{
  "data": [
    {
      "id": "d41f7b2c-3e8a-4c95-b1d6-7f0e2a9c5b31",
      "tenant_id": "7a1d4e2b-9c8f-4b3a-a6e5-0d2c1f9b8e74",
      "country_code": "CO",
      "require_recording_consent": true,
      "consent_script": "Esta llamada será grabada con fines de calidad y cumplimiento según la Ley 1581 de Protección de Datos Personales. ¿Autoriza continuar?",
      "require_dnc_check": true,
      "max_call_attempts_per_day": 2,
      "max_call_attempts_total": 8,
      "allowed_call_hours": {
        "start": "09:00",
        "end": "19:00",
        "timezone": "America/Bogota"
      },
      "data_retention_days": 365,
      "require_opt_in": true,
      "blocked_prefixes": [
        "+57601"
      ],
      "require_ai_disclosure": null,
      "regulatory_notes": null,
      "created_at": "2026-08-20T15:02:11.000Z",
      "updated_at": "2026-09-11T10:45:37.000Z"
    }
  ]
}
```

**SDK Code**

```python Colombia configured
import requests

url = "https://api.jelliu.co/api/compliance/configs"

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

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

print(response.json())
```

```javascript Colombia configured
const url = 'https://api.jelliu.co/api/compliance/configs';
const options = {method: 'GET', 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 Colombia configured
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/configs"

	req, _ := http.NewRequest("GET", 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 Colombia configured
require 'uri'
require 'net/http'

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

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

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

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

```java Colombia configured
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php Colombia configured
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Colombia configured
using RestSharp;

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

```swift Colombia configured
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/configs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```

### No configs saved (defaults apply everywhere)

**Response**

```json
{
  "data": []
}
```

**SDK Code**

```python No configs saved (defaults apply everywhere)
import requests

url = "https://api.jelliu.co/api/compliance/configs"

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

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

print(response.json())
```

```javascript No configs saved (defaults apply everywhere)
const url = 'https://api.jelliu.co/api/compliance/configs';
const options = {method: 'GET', 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 No configs saved (defaults apply everywhere)
package main

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

func main() {

	url := "https://api.jelliu.co/api/compliance/configs"

	req, _ := http.NewRequest("GET", 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 No configs saved (defaults apply everywhere)
require 'uri'
require 'net/http'

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

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

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

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

```java No configs saved (defaults apply everywhere)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

```php No configs saved (defaults apply everywhere)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp No configs saved (defaults apply everywhere)
using RestSharp;

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

```swift No configs saved (defaults apply everywhere)
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/compliance/configs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```