Manage API (integration automation)
Everything in this document can be set up easily in the TalkBridge Center web app, and we recommend doing it there. Center guides you through each step and provides verification tools such as the inbound test, so setup mistakes are rare.
The Manage API is for when you want to automate integration management across brands with your own system. We recommend using it only after you understand TalkBridge's integration model (brand · channel · gateway · webhook) by completing it at least once in Center yourself.
The Manage API is an API for management purposes, and its spec may change. Unlike the consultation read and send APIs (/api/agent/*), long-term backward compatibility is not guaranteed.
- Base URL:
https://api.talkbridge.io - Authentication:
Authorization: Bearer blumnb-…— only a management-only key is accepted. Send the key in the header only (the?token=query string is not accepted). - Response:
{ "ok": boolean, "code"?: string, "message"?: string, … }
Management-only key
Create a management-only key on the Agent Key management page by choosing the Management only permission. The plaintext is shown only once, right after issuance. The page opens once you are signed in to TalkBridge Center; it is not in the Center menu, so use the link above.
| What it can do | What it cannot do |
|---|---|
| Call the Manage API below for every brand in the key's account | Read or send consultations (/api/agent/* — 403 FORBIDDEN) |
| Receive the plaintext of a consultation key — the server keeps the gateway key and returns only the signature verification key | |
| Register or verify a Kakao channel (see Not provided below) |
A management-only key can change the integration settings (including webhook addresses) of every brand in the account. Keep it only in your server's secret store, and revoke it in Center immediately if you suspect a leak.
Calling the Manage API with a key of any other permission returns 403 FORBIDDEN; a missing or invalid key returns 401 UNAUTHORIZED.
My account · key check
GET /api/manage/me
Returns the account the key belongs to (the business items under Account → Settings in TalkBridge Center) and this key's details. Use it to check that the key is set up correctly when you first configure a management-only key — a 200 means the key is a live management-only key.
{
"ok": true,
"account": { "handle": "myshop-corp", "name": "My Shop Inc.", "timeZone": "Asia/Seoul", "timeZoneLabel": "한국 표준시 (KST, UTC+9)" },
"key": { "id": "4f2a…", "name": "Ops automation", "scope": "TenantManage" },
"brandCount": 3
}
| Field | Description |
|---|---|
account.handle | Account identifier (cannot be changed) |
account.name | Business name |
account.timeZone · timeZoneLabel | Display time zone — the basis for sending and receiving consultation hours (the label is returned in Korean) |
key.id · key.name · key.scope | This key's ID, name and permission (always TenantManage) |
brandCount | Number of brands in the account |
Brands
List
GET /api/manage/brands
Returns every brand in the account with its setup stage, gateway status, and channels. This is where you get the identifiers used by later calls.
| Field | Example | Used for |
|---|---|---|
brandId | 0b6f… (GUID) | Path /api/manage/brands/{brandId}/… |
brandKey | myshop-1a2b3c | Brand identifier — for checking and display (same value as channels[].brandKey in GET /api/agent/me) |
channels[].channelId | 9c1e… (GUID) | Path /api/manage/channels/{channelId}/… |
channels[].key | myshop | Channel key — the value you put in a request's brandKey parameter (same value as channels[].key in me) |
stage uses the same rules as the setup steps in Center: Register (1, channel registration) → Verify (2, channel verification) → Gateway (3, gateway connection) → Activate (4, turn on consultations) → Complete (5, done). The value points to the step to do next.
{
"ok": true,
"brands": [
{
"brandId": "0b6f…",
"brandKey": "myshop-1a2b3c",
"brandName": "My Shop",
"stage": "Complete",
"stageNumber": 5,
"gateway": { "enabled": true, "webhookEnabled": true, "webhookUrl": "https://example.com/hook", "webhookSigningKey": null, "connected": true },
"channels": [
{ "channelId": "9c1e…", "key": "myshop", "type": "KakaoChat", "name": "My Shop", "verified": true, "counselActive": true }
]
}
]
}
Single brand
GET /api/manage/brands/{brandId}
Same shape as the list, plus gateway.webhookSigningKey (the webhook signature verification key whsec_…). The list does not include signature verification keys.
Create
POST /api/manage/brands
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Brand name |
{ "ok": true, "brandId": "0b6f…" }
After you create a brand, the channel administrator registers and verifies the Kakao channel directly in TalkBridge Center.
Gateway · Webhook
In TalkBridge Center Developer mode, "Connection test → Inbound test" sends a test signal with the same headers and signature as a real delivery, and shows the response code and its likely cause. If you are integrating for the first time, follow Inbound webhook configuration and succeed once at receiving and verifying a webhook in Center, then use this API for automation based on that inbound server. The Manage API has no inbound test tool.
The flow you completed in Center maps to API calls as follows.
| Center (Developer mode) | Manage API |
|---|---|
| "Integration key" → Issue integration key (shows the signature verification key) | POST …/gateway/key → webhookSigningKey in the response |
| Configure the signature verification key on your inbound server | (your server) — reuse the verification code that worked with Center |
| Register the webhook URL in the Custom service row | POST …/gateway/webhook |
| "Connection test → Inbound test" | None — check it in Center |
| Turn on the gateway | POST …/gateway/enable |
| Turn on consultations | POST /api/manage/channels/{channelId}/counsel/activate |
Order matters
The webhook signature verification key is not issued separately — it is derived from the key connected to the gateway. So always go in this order: connect the key → configure the signature verification key → webhook URL → turn on.
- Connect the key —
POST /api/manage/brands/{brandId}/gateway/key - Configure the signature verification key — Put
webhookSigningKeyfrom the response on your inbound server. This must be done before the first signal arrives. How to verify: Signature verification - Register the webhook URL —
POST /api/manage/brands/{brandId}/gateway/webhook - Turn on the gateway —
POST /api/manage/brands/{brandId}/gateway/enable. This is rejected until the key is connected and the webhook is registered. - Turn on consultations —
POST /api/manage/channels/{channelId}/counsel/activate. From this point, real customer consultations are delivered to your webhook.
When you call gateway/key again, signals are signed with the new signature verification key from that moment. Unless you update the key on your inbound server right away, signature verification fails.
In production, call it only when necessary and apply the new key from the response immediately.
Connect the gateway key
POST /api/manage/brands/{brandId}/gateway/key
| Field | Type | Required | Description |
|---|---|---|---|
agentKeyId | string | If omitted, creates a new key and connects it (the previously connected key is not revoked). If given, regenerates that key (a BrandWrite key for this brand only) and connects it — the key's previous plaintext no longer works | |
name | string | Name of the newly created key |
{ "ok": true, "webhookSigningKey": "whsec_…" }
The gateway key's plaintext is not in the response — the server keeps it for the gateway only. Create keys for reading and sending consultations separately on Agent Key management.
Webhook URL
POST /api/manage/brands/{brandId}/gateway/webhook
| Field | Type | Required | Description |
|---|---|---|---|
url | string | ✅ | Inbound URL (HTTPS, reachable from the internet) |
Addresses we cannot deliver to, such as private-network or internal addresses, are rejected.
Turn the gateway on · off
POST /api/manage/brands/{brandId}/gateway/enable
POST /api/manage/brands/{brandId}/gateway/disable
Turning it off stops webhook delivery. Consultation chat itself (Kakao inbound) stays on.
Turn consultations on · off
POST /api/manage/channels/{channelId}/counsel/activate
POST /api/manage/channels/{channelId}/counsel/deactivate
Same processing as Turn on consultations in Center (empty consultation hours are filled as 24 hours). Only channels whose Kakao channel verification is complete can be turned on.
{ "ok": true, "counselActive": true, "note": "이미 열려 있는 고객 대화방은 나갔다가 다시 들어와야 바뀐 모드로 연결돼요." }
Right after turning it on or off, customer chat rooms that were already open must be left and re-entered to connect in the new state.
Consultation hours
GET /api/manage/channels/{channelId}/schedule
POST /api/manage/channels/{channelId}/schedule
This feature is for KakaoTalk consultation chat only. It reads and changes the consultation hours of a Kakao consultation chat channel. Times are sent and returned in the display time zone from Account → Settings in TalkBridge Center (timeZone in the response), and stored in Kakao converted to Korea time. Only channels whose Kakao channel verification is complete are supported.
- This is the same setting as Brand settings → Consultation hours in TalkBridge Center. You can set only a start and end time per day; detailed settings such as agent break times or public holidays are not available.
- Messages that arrive outside consultation hours get KakaoTalk's default response. This default response does not affect your consultation quota.
- If you need detailed automatic handling such as break times or holidays, you can keep consultation hours open 24 hours and handle it with your own auto-response strategy (a bot, an AI agent, and so on). This is an auto-response, not the consultation hours feature.
Reply messages sent by an auto-response strategy use the consultation quota exactly as an agent's consultation does. Keep this in mind when you replace the outside-hours notice with auto-responses.
Request body:
| Field | Type | Required | Description |
|---|---|---|---|
allDay | boolean | If true, open 24 hours, every day (00:00–00:00 for all days). weekTimetable is ignored | |
weekTimetable | array | ✅ unless allDay | List only the days you are open. Days left out are closed. At least one day |
weekTimetable[] items:
| Field | Type | Description |
|---|---|---|
day | string | mon·tue·wed·thu·fri·sat·sun (case-insensitive). Each day only once |
startAt | string | Start time HH:mm (e.g. 09:00) |
endAt | string | End time HH:mm (e.g. 18:00) |
curl -X POST https://api.talkbridge.io/api/manage/channels/9c1e…/schedule \
-H "Authorization: Bearer blumnb-..." -H "Content-Type: application/json" \
-d '{
"weekTimetable": [
{ "day": "mon", "startAt": "09:00", "endAt": "18:00" },
{ "day": "tue", "startAt": "09:00", "endAt": "18:00" }
]
}'
Reading and changing both return the same shape (a change returns the saved value).
{
"ok": true,
"timeZone": "Asia/Seoul",
"allDay": false,
"weekTimetable": [
{ "day": "mon", "startAt": "09:00", "endAt": "18:00" },
{ "day": "tue", "startAt": "09:00", "endAt": "18:00" }
]
}
Consultation start message
Calls the same feature as the consultation start message in the Settings API with a management-only key. The rules (review, 5 times a day, no edits after approval) are the same.
GET /api/manage/templates/start?brandKey=myshop
POST /api/manage/templates/start
POST /api/manage/templates/start/delete
| Field | Type | Required | Description |
|---|---|---|---|
brandKey | string | ✅ | The channel key (channels[].key in the list response) — not the brand identifier (the brandKey field) |
header | string | ✅ when applying | Brand introduction text |
Not provided
| Feature | Reason · Alternative |
|---|---|
| Kakao channel registration · verification code · verification | These steps require the channel administrator's identity verification and consent to the outsourcing of personal information processing. The channel administrator does them directly in TalkBridge Center |
| Inbound test | Use "Connection test" in Center Developer mode |
| Agent break times · public holidays | Not part of Kakao's basic consultation hours. Keep consultation hours open 24 hours and handle them with an auto-response strategy — see Consultation hours |
| Issuing consultation keys or management-only keys | Create them on Agent Key management (after signing in to Center) |
| Reading · sending consultations | Use the Outbound API with a consultation key |
Errors
| HTTP | code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid key (including revoked) |
| 403 | FORBIDDEN | Not a management-only key |
| 403 | NO_BRAND_SCOPE | Not a brand or channel of this account |
| 400 | BRAND_CREATE_FAILED · FAILED · COUNSEL_FAILED | Processing failed — the reason is in message (e.g. cannot turn on because no key is connected) |
| 400 | INVALID_SCHEDULE | Invalid consultation hours (day or time format, duplicate day, no open day) |
| 400 | SCHEDULE_NOT_SUPPORTED | Not a Kakao consultation chat channel — consultation hours are for KakaoTalk consultation chat only |
| 400 | SCHEDULE_UNAVAILABLE · SCHEDULE_FAILED | Could not read or save consultation hours (e.g. Kakao channel not verified yet) — the reason is in message |
| 404 | NO_BRAND | (Consultation start message) Channel not found |