Skip to main content
POST
Block someone

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Idempotency-Key
string
required

A unique key (a UUID works) for this request. Retrying with the same key returns the first answer instead of running twice.

Maximum string length: 255
Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Body

application/json

Who: a number (E.164), or a conversation (channel + thread_id), or a call (call_id).

number
string | null
Maximum string length: 20
name
string | null
Maximum string length: 80
list
enum<string>
default:blocked
Available options:
blocked,
trusted
channel
enum<string> | null
Available options:
whatsapp,
instagram,
messenger,
tiktok,
web
thread_id
string<uuid> | null
call_id
string | null
Maximum string length: 64
reason
string | null
Maximum string length: 280
hours
integer | null
Required range: 1 <= x <= 720

Response

Successful Response

id
string
required
kind
enum<string>
required

number covers that number's calls and WhatsApp chats.

Available options:
number,
instagram,
messenger,
tiktok,
web
label
string
required

A masked number, or the person's name or handle.

list
enum<string>
required

trusted: never caught by a limit (test numbers, staff, regulars who call a lot).

Available options:
blocked,
trusted
source
enum<string>
required

auto when a limit caught them.

Available options:
manual,
auto
active
boolean
required

False for a pause that has ended (listed for a week).

hits
integer
required

Calls refused and messages left unanswered since.

created_at
string
required
updated_at
string
required
rule
string | null

The limit that caught them: calls_hour, calls_day, short_calls, messages_hour or messages_day.

reason
string | null
expires_at
string | null

When a pause ends; null = until unblocked.

last_hit_at
string | null
added_by
string | null
ref
Ref · object | null

The chat (channel whatsapp|instagram|messenger|tiktok|web and its conversation id) or call (channel call) they were blocked from.