Authentication
The iChatUp API uses one secret key per system. The account owner creates it on the Broadcasts, API screen, copies it once, and your code sends it on every request in the header Authorization: Bearer YOUR_API_KEY. The key alone decides which business a request belongs to; no header or parameter can point it at another account.
要点一览
| Where keys are made | Dashboard: Broadcasts, then API |
|---|---|
| Header | Authorization: Bearer YOUR_API_KEY |
| Key format | Starts with ick_ followed by 40 letters and digits |
| Active keys per account | Up to ten |
| Plan | Keys work on every plan |
Creating a key
- Sign in as the account owner and open Broadcasts, then API.
- Under “New key”, say what will use it, for example “Website contact form”, and press Create key.
- Copy the key from the green box. iChatUp stores only a hash of it, so it cannot be shown again; if you lose it, make a new one.
The list under “Your keys” shows each key’s name, its first characters and when it was last used. “Remove” stops a key at once, so give every system its own key and you can switch one off without breaking the rest.
Checking a key
curl https://ichatup.com/api/v1/account \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"{
"business": "Sunrise Dental",
"connected": true,
"number": "+91 98765 43210",
"quality": "GREEN",
"daily_limit_tier": "TIER_1K"
}connected is true when the official WhatsApp connection is live. Without it you can still add contacts, but sending templates is refused.
When it fails
- 401: the header is missing, the key is mistyped or it was removed.
- 403: the key is valid but the account is not active.
Keep keys on your server. Anyone holding one can message your customers in your name, so never put it in a web page or a downloadable app. The full list of status codes is on errors and rate limits.
常见问题
Can a team member who is not the owner create keys?
Keys are made in the owner area of the dashboard, so ask the account owner to create one for you.
Do keys expire?
No. A key keeps working until it is removed on the API screen.
在您自己的号码上试试
两分钟完成连接,免费试用 7 天,无需信用卡。AI 员工会在顾客已经熟悉的 WhatsApp 号码上回复、预订并跟进。