Skip to main content
POST
Create opt-out list

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Headers

Idempotency-Key
string

Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.

Required string length: 1 - 255
X-Test-Mode
enum<string>

Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Available options:
true,
false

Body

application/json
label
string

Display name for the list (1–200 chars, required; unique among active lists).

stop_keywords
string[]

Extra keywords that trigger an opt-out (0–32 entries, 1–64 chars each).

help_keywords
string[]

Extra keywords that trigger a help response.

start_keywords
string[]

Extra keywords that opt a contact back in.

stop_response
string | null

Auto-reply copy sent when STOP matches (up to 1600 chars / 10 SMS segments).

help_response
string | null

Auto-reply copy sent when HELP matches.

start_response
string | null

Auto-reply copy sent when START matches.

default_lang
enum<string> | null

Default response language for keyword matching.

Available options:
en,
tr,
de,
es,
fr,
pt,
it,
ar,
nl
brand
string | null

Optional brand tag (1–64 chars) stamped into the default response copy.

Response

The created opt-out list (with its assigned id and timestamps) wrapped in the standard { data, meta } envelope. Returns 409 when the label is already used by an active list and 422 when the body is invalid.

The created opt-out list (with its assigned id and timestamps) wrapped in the standard { data, meta } envelope. Returns 409 when the label is already used by an active list and 422 when the body is invalid.