KA BOT API Documentation
Redeem PUBG Mobile UC from your own bot over HTTPS — safe retries, clear status codes, and you pay only for outcomes.
Everything to wire KA BOT into your bot
One test call, then redeem, handle errors and reconcile billing — or hand the whole API to an AI agent.
Start here
Keys, scopes, plan or free credit, and your first successful call.
Get startedRedeem
Activate codes with a mandatory Idempotency-Key. Per-code status and async jobs.
Read the guideErrors
Every error_code with its HTTP status, retry rule and what to tell the customer.
See errorsWebhooks
Get called when a redeem finishes — HMAC-signed and replay-safe.
Set up webhooksLimits
Pay for outcomes: refunds, quota headers, free credit and the rate limit.
View limitsUse with AI
Copy or download the whole API as one Markdown file for ChatGPT, Claude or Cursor.
Hand it to AIStart here
Connect your bot to KA BOT and redeem PUBG UC over HTTP. Get one successful test call before you wire customer checkout.
Base URL: https://api.kabotapi.com · every response carries
KA-Version and X-Request-Id.
Authentication
Authorization: Bearer pk_0123456789abcdef0123456789abcdef
X-API-Key: pk_… is accepted as an alternative.
Live keys are pk_ + 32 hex chars (35 chars total).
Test keys use prefix sk_test_ (same length pattern).
Keys are issued per merchant in Telegram (/api_system →
View token → Generate token, shown once). An API plan is assigned by
the operator — there is no self-serve catalog. Message
@Nogitsuneiii to get or change a plan.
sk_test_ is not a sandbox. Test-prefix keys
still redeem real codes and debit real quota. Use a disposable stock
wallet for integration tests.
Scopes
| Scope | Grants |
|---|---|
redeem | POST /v1/redeem |
read | /v1/me, /v1/stock, /v1/jobs/*, POST /v1/webhook |
Keys can also be IP-restricted. Several keys may be active at once, so rotation needs no downtime: create the new key, deploy it, then revoke the old one.
API plan, and when a bot subscription is required
billing: "free_credit" on
GET /v1/me) — 300 activations, each one returning
24 hours after it was used. An active plan
(plan_active: true) replaces that credit.
A Telegram bot subscription is required only when
subscription.required is true.
If the bot is free, required is false,
active is always true, and
402 subscription_expired is never returned.
GET /v1/me is the source of truth:
"subscription": { "active": true, "required": false, "expires_at": null, "days_left": null }
When required is true, poll daily and warn your
team on days_left <= 3. When it is false,
ignore days_left — there is nothing to renew.
First successful request
- Key —
/api_systemin Telegram. -
Smoke test —
GET /v1/me(plan, quota, balance, subscription) orGET /v1/stock(inventory). -
Redeem —
POST /v1/redeemwith exactly one code source and anIdempotency-Keyheader. -
Read the result — each code comes back with a
statusand adisposition. -
Long jobs — send
"async": true, then pollGET /v1/jobs/{job_id}or take a webhook.
/v1/me fails, fix the key / plan first
(and the bot subscription only if subscription.required is
true) — do not debug redeem yet.
curl -sS "{{BASE}}/v1/me" \
-H "Authorization: Bearer pk_0123456789abcdef0123456789abcdef"
Pick a code source
A · Your database
You already hold codes in your bot DB.
Send them in codes. We hold no copy, so your own
records are yours to update — decide from each code's status.
B · KA BOT inventory
Codes sit in your KA BOT stock (/addcodes or buy).
Send uc, categories, or packs.
We report per code whether it was consumed, deleted, or returned to stock.
codes with inventory fields →
400 ambiguous_source.
Details and failure handling → Redeem.
Billing (short)
refunded_requests.
Free: GET /v1/health, GET /v1/me,
GET /v1/stock, GET /v1/jobs/{id},
POST /v1/webhook.
Full rules → Limits.
Chat redeem inside KA BOT (active subscription) does not use API quota. Checker is priced separately.