Skip to main content

Manage API (integration automation)

Start in the TalkBridge Center web app

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 spec may change

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 doWhat it cannot do
Call the Manage API below for every brand in the key's accountRead 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)
Keep the key safe

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
}
FieldDescription
account.handleAccount identifier (cannot be changed)
account.nameBusiness name
account.timeZone · timeZoneLabelDisplay time zone — the basis for sending and receiving consultation hours (the label is returned in Korean)
key.id · key.name · key.scopeThis key's ID, name and permission (always TenantManage)
brandCountNumber 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.

FieldExampleUsed for
brandId0b6f… (GUID)Path /api/manage/brands/{brandId}/…
brandKeymyshop-1a2b3cBrand identifier — for checking and display (same value as channels[].brandKey in GET /api/agent/me)
channels[].channelId9c1e… (GUID)Path /api/manage/channels/{channelId}/…
channels[].keymyshopChannel 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
FieldTypeRequiredDescription
namestring✅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​

If this is your first time, get the webhook working in Center first

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 rowPOST …/gateway/webhook
"Connection test → Inbound test"None — check it in Center
Turn on the gatewayPOST …/gateway/enable
Turn on consultationsPOST /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.

  1. Connect the key — POST /api/manage/brands/{brandId}/gateway/key
  2. Configure the signature verification key — Put webhookSigningKey from the response on your inbound server. This must be done before the first signal arrives. How to verify: Signature verification
  3. Register the webhook URL — POST /api/manage/brands/{brandId}/gateway/webhook
  4. Turn on the gateway — POST /api/manage/brands/{brandId}/gateway/enable. This is rejected until the key is connected and the webhook is registered.
  5. Turn on consultations — POST /api/manage/channels/{channelId}/counsel/activate. From this point, real customer consultations are delivered to your webhook.
Reconnecting the key changes the signature verification key

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
FieldTypeRequiredDescription
agentKeyIdstringIf 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
namestringName 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
FieldTypeRequiredDescription
urlstring✅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": "이미 열려 있는 고객 대화방은 나갔다가 다시 들어와야 바뀐 모드로 연결돼요." }
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.

Consultation hours are KakaoTalk's default response setting
  • 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.
Auto-responses also use your consultation quota

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:

FieldTypeRequiredDescription
allDaybooleanIf true, open 24 hours, every day (00:00–00:00 for all days). weekTimetable is ignored
weekTimetablearray✅ unless allDayList only the days you are open. Days left out are closed. At least one day

weekTimetable[] items:

FieldTypeDescription
daystringmon·tue·wed·thu·fri·sat·sun (case-insensitive). Each day only once
startAtstringStart time HH:mm (e.g. 09:00)
endAtstringEnd 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
FieldTypeRequiredDescription
brandKeystring✅The channel key (channels[].key in the list response) — not the brand identifier (the brandKey field)
headerstring✅ when applyingBrand introduction text

Not provided​

FeatureReason · Alternative
Kakao channel registration · verification code · verificationThese 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 testUse "Connection test" in Center Developer mode
Agent break times · public holidaysNot 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 keysCreate them on Agent Key management (after signing in to Center)
Reading · sending consultationsUse the Outbound API with a consultation key

Errors​

HTTPcodeMeaning
401UNAUTHORIZEDMissing or invalid key (including revoked)
403FORBIDDENNot a management-only key
403NO_BRAND_SCOPENot a brand or channel of this account
400BRAND_CREATE_FAILED · FAILED · COUNSEL_FAILEDProcessing failed — the reason is in message (e.g. cannot turn on because no key is connected)
400INVALID_SCHEDULEInvalid consultation hours (day or time format, duplicate day, no open day)
400SCHEDULE_NOT_SUPPORTEDNot a Kakao consultation chat channel — consultation hours are for KakaoTalk consultation chat only
400SCHEDULE_UNAVAILABLE · SCHEDULE_FAILEDCould not read or save consultation hours (e.g. Kakao channel not verified yet) — the reason is in message
404NO_BRAND(Consultation start message) Channel not found