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

# Create or replace a country compliance config

PUT https://api.jelliu.co/api/compliance/configs
Content-Type: application/json

Creates the config for `country_code` or **fully replaces** the existing one. Omitted optional fields go
back to their defaults: `require_dnc_check` becomes `true`, `require_opt_in` becomes `false`,
`blocked_prefixes` becomes `[]`, and `consent_script` and `require_ai_disclosure` become `null`. The change
takes effect on the next call, message or email to that country.

Loosening a config (longer hours, more attempts, DNC off) places your outreach outside the country's
defaults. That is a legal decision, which is why only the workspace owner can make it.

**Retention coupling.** After saving, the workspace retention window (`GET /api/compliance/retention`) is set
to the **smallest** `data_retention_days` across all country configs. Saving a Colombia config with 30 days
therefore shortens retention for the whole workspace, and the next daily sweep deletes accordingly.

**Side effects.** Writes the config and updates the workspace retention window. Writes an audit entry.
Future call greetings use the new recording and AI-disclosure notices.

**Idempotency.** Safe to retry. This is a full replace keyed by country.

**Access**
- **Required scope:** `full`. Signed-in users need the `owner` role; admins are refused.
- **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. The route passes through a compliance plan gate, but the feature is enabled on every tier, so the gate does not refuse today.


Reference: https://developer.jelliu.co/api-reference/compliance/put-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).

## Request

### Body (application/json)

This endpoint expects an object.

- `country_code` (enum, required) — 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, required) — Open every call to this country with a recording notice (`consent_script`, or a generic notice when it is `null`).
- `max_call_attempts_per_day` (integer, required) — Maximum calls to one contact per local day (midnight in the call-hours time zone).
- `max_call_attempts_total` (integer, required) — Maximum lifetime call attempts to one contact.
- `allowed_call_hours` (object, required) — The local window in which outreach is allowed. `start` is inclusive and `end` is exclusive. When `start` is later than `end`, the window wraps past midnight. At check time, the workspace's own time zone setting, when present, replaces `timezone`.
  - `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, required) — Retention for this country, in days (minimum 30 here, although the workspace window accepts values from 1). The smallest value across configs becomes the workspace retention window.
- `consent_script` (string, optional, nullable) — The recording notice the agent reads at the start of the call, in the callee's language. `null` uses the country default script.
- `require_dnc_check` (boolean, optional, default: true) — Block numbers that belong to any workspace contact marked do-not-call. The suppression list is checked regardless.
- `require_opt_in` (boolean, optional, default: false) — Records that this country requires prior opt-in. It is stored and shown, but not enforced by the call gate. The dialer's consent requirement is a separate workspace setting.
- `blocked_prefixes` (list of string, optional, default: []) — E.164 prefixes that are never contacted (plain string prefix match), e.g. premium-rate or landline ranges.
- `require_ai_disclosure` (boolean, optional, nullable) — Open calls to this country by saying the caller is an AI. `true` or `false` is this workspace's decision. `null` or omitted inherits the country default, which is `false` for every supported country. An agent's own `disclose_ai` setting overrides this.

## Response

### 200

The saved config.

- `data` (object, required) — A saved per-country compliance config. Fields left `null` fall back to the country default when a call is placed.
  - `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

### 400 Bad Request Error

The body failed validation. `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 the workspace owner.

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

### Compliance_putComplianceConfigs_example

**Request**

```json
undefined
```

**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-15T13:20:04.000Z"
  }
}
```

**SDK Code**

```python Compliance_putComplianceConfigs_example
import requests

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

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

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

print(response.json())
```

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

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

func main() {

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

	req, _ := http.NewRequest("PUT", 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 Compliance_putComplianceConfigs_example
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::Put.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java Compliance_putComplianceConfigs_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Compliance_putComplianceConfigs_example
using RestSharp;

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

```swift Compliance_putComplianceConfigs_example
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 = "PUT"
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()
```

### Colombia, tightened hours and attempts

**Request**

```json
{
  "country_code": "CO",
  "require_recording_consent": 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,
  "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,
  "require_opt_in": true,
  "blocked_prefixes": [
    "+57601"
  ]
}
```

**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-15T13:20:04.000Z"
  }
}
```

**SDK Code**

```python Colombia, tightened hours and attempts
import requests

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

payload = {
    "country_code": "CO",
    "require_recording_consent": 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,
    "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,
    "require_opt_in": True,
    "blocked_prefixes": ["+57601"]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Colombia, tightened hours and attempts
const url = 'https://api.jelliu.co/api/compliance/configs';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"country_code":"CO","require_recording_consent":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,"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,"require_opt_in":true,"blocked_prefixes":["+57601"]}'
};

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

```go Colombia, tightened hours and attempts
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"country_code\": \"CO\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 2,\n  \"max_call_attempts_total\": 8,\n  \"allowed_call_hours\": {\n    \"start\": \"09:00\",\n    \"end\": \"19:00\",\n    \"timezone\": \"America/Bogota\"\n  },\n  \"data_retention_days\": 365,\n  \"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?\",\n  \"require_dnc_check\": true,\n  \"require_opt_in\": true,\n  \"blocked_prefixes\": [\n    \"+57601\"\n  ]\n}")

	req, _ := http.NewRequest("PUT", 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 Colombia, tightened hours and attempts
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::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"country_code\": \"CO\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 2,\n  \"max_call_attempts_total\": 8,\n  \"allowed_call_hours\": {\n    \"start\": \"09:00\",\n    \"end\": \"19:00\",\n    \"timezone\": \"America/Bogota\"\n  },\n  \"data_retention_days\": 365,\n  \"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?\",\n  \"require_dnc_check\": true,\n  \"require_opt_in\": true,\n  \"blocked_prefixes\": [\n    \"+57601\"\n  ]\n}"

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

```java Colombia, tightened hours and attempts
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.jelliu.co/api/compliance/configs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"country_code\": \"CO\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 2,\n  \"max_call_attempts_total\": 8,\n  \"allowed_call_hours\": {\n    \"start\": \"09:00\",\n    \"end\": \"19:00\",\n    \"timezone\": \"America/Bogota\"\n  },\n  \"data_retention_days\": 365,\n  \"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?\",\n  \"require_dnc_check\": true,\n  \"require_opt_in\": true,\n  \"blocked_prefixes\": [\n    \"+57601\"\n  ]\n}")
  .asString();
```

```php Colombia, tightened hours and attempts
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.jelliu.co/api/compliance/configs', [
  'body' => '{
  "country_code": "CO",
  "require_recording_consent": 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,
  "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,
  "require_opt_in": true,
  "blocked_prefixes": [
    "+57601"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Colombia, tightened hours and attempts
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/configs");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"country_code\": \"CO\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 2,\n  \"max_call_attempts_total\": 8,\n  \"allowed_call_hours\": {\n    \"start\": \"09:00\",\n    \"end\": \"19:00\",\n    \"timezone\": \"America/Bogota\"\n  },\n  \"data_retention_days\": 365,\n  \"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?\",\n  \"require_dnc_check\": true,\n  \"require_opt_in\": true,\n  \"blocked_prefixes\": [\n    \"+57601\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Colombia, tightened hours and attempts
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "country_code": "CO",
  "require_recording_consent": 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,
  "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,
  "require_opt_in": true,
  "blocked_prefixes": ["+57601"]
] as [String : Any]

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

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

### Mexico, required fields only

**Request**

```json
{
  "country_code": "MX",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 10,
  "allowed_call_hours": {
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/Mexico_City"
  },
  "data_retention_days": 365
}
```

**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-15T13:20:04.000Z"
  }
}
```

**SDK Code**

```python Mexico, required fields only
import requests

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

payload = {
    "country_code": "MX",
    "require_recording_consent": True,
    "max_call_attempts_per_day": 3,
    "max_call_attempts_total": 10,
    "allowed_call_hours": {
        "start": "08:00",
        "end": "21:00",
        "timezone": "America/Mexico_City"
    },
    "data_retention_days": 365
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Mexico, required fields only
const url = 'https://api.jelliu.co/api/compliance/configs';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"country_code":"MX","require_recording_consent":true,"max_call_attempts_per_day":3,"max_call_attempts_total":10,"allowed_call_hours":{"start":"08:00","end":"21:00","timezone":"America/Mexico_City"},"data_retention_days":365}'
};

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

```go Mexico, required fields only
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"country_code\": \"MX\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 10,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/Mexico_City\"\n  },\n  \"data_retention_days\": 365\n}")

	req, _ := http.NewRequest("PUT", 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 Mexico, required fields only
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::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"country_code\": \"MX\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 10,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/Mexico_City\"\n  },\n  \"data_retention_days\": 365\n}"

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

```java Mexico, required fields only
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.jelliu.co/api/compliance/configs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"country_code\": \"MX\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 10,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/Mexico_City\"\n  },\n  \"data_retention_days\": 365\n}")
  .asString();
```

```php Mexico, required fields only
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.jelliu.co/api/compliance/configs', [
  'body' => '{
  "country_code": "MX",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 10,
  "allowed_call_hours": {
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/Mexico_City"
  },
  "data_retention_days": 365
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Mexico, required fields only
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/configs");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"country_code\": \"MX\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 10,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/Mexico_City\"\n  },\n  \"data_retention_days\": 365\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Mexico, required fields only
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "country_code": "MX",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 10,
  "allowed_call_hours": [
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/Mexico_City"
  ],
  "data_retention_days": 365
] as [String : Any]

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

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

### United States with the AI-disclosure notice on

**Request**

```json
{
  "country_code": "US",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 15,
  "allowed_call_hours": {
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/New_York"
  },
  "data_retention_days": 730,
  "consent_script": "This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?",
  "require_dnc_check": true,
  "require_ai_disclosure": true
}
```

**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-15T13:20:04.000Z"
  }
}
```

**SDK Code**

```python United States with the AI-disclosure notice on
import requests

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

payload = {
    "country_code": "US",
    "require_recording_consent": True,
    "max_call_attempts_per_day": 3,
    "max_call_attempts_total": 15,
    "allowed_call_hours": {
        "start": "08:00",
        "end": "21:00",
        "timezone": "America/New_York"
    },
    "data_retention_days": 730,
    "consent_script": "This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?",
    "require_dnc_check": True,
    "require_ai_disclosure": True
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript United States with the AI-disclosure notice on
const url = 'https://api.jelliu.co/api/compliance/configs';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"country_code":"US","require_recording_consent":true,"max_call_attempts_per_day":3,"max_call_attempts_total":15,"allowed_call_hours":{"start":"08:00","end":"21:00","timezone":"America/New_York"},"data_retention_days":730,"consent_script":"This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?","require_dnc_check":true,"require_ai_disclosure":true}'
};

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

```go United States with the AI-disclosure notice on
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"country_code\": \"US\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 15,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"data_retention_days\": 730,\n  \"consent_script\": \"This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?\",\n  \"require_dnc_check\": true,\n  \"require_ai_disclosure\": true\n}")

	req, _ := http.NewRequest("PUT", 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 United States with the AI-disclosure notice on
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::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"country_code\": \"US\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 15,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"data_retention_days\": 730,\n  \"consent_script\": \"This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?\",\n  \"require_dnc_check\": true,\n  \"require_ai_disclosure\": true\n}"

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

```java United States with the AI-disclosure notice on
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.jelliu.co/api/compliance/configs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"country_code\": \"US\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 15,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"data_retention_days\": 730,\n  \"consent_script\": \"This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?\",\n  \"require_dnc_check\": true,\n  \"require_ai_disclosure\": true\n}")
  .asString();
```

```php United States with the AI-disclosure notice on
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.jelliu.co/api/compliance/configs', [
  'body' => '{
  "country_code": "US",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 15,
  "allowed_call_hours": {
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/New_York"
  },
  "data_retention_days": 730,
  "consent_script": "This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?",
  "require_dnc_check": true,
  "require_ai_disclosure": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp United States with the AI-disclosure notice on
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/compliance/configs");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"country_code\": \"US\",\n  \"require_recording_consent\": true,\n  \"max_call_attempts_per_day\": 3,\n  \"max_call_attempts_total\": 15,\n  \"allowed_call_hours\": {\n    \"start\": \"08:00\",\n    \"end\": \"21:00\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"data_retention_days\": 730,\n  \"consent_script\": \"This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?\",\n  \"require_dnc_check\": true,\n  \"require_ai_disclosure\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift United States with the AI-disclosure notice on
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "country_code": "US",
  "require_recording_consent": true,
  "max_call_attempts_per_day": 3,
  "max_call_attempts_total": 15,
  "allowed_call_hours": [
    "start": "08:00",
    "end": "21:00",
    "timezone": "America/New_York"
  ],
  "data_retention_days": 730,
  "consent_script": "This call may be recorded for quality assurance and compliance purposes. Do you consent to continue?",
  "require_dnc_check": true,
  "require_ai_disclosure": true
] as [String : Any]

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

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