Connect LINE Official Account
Changed onConnect a LINE Official Account with the Channel ID and Channel secret of its Messaging API channel (LINE Official Account Manager > Settings > Messaging API, also shown in the LINE Developers Console under the channel's Basic settings).
Zernio issues a channel access token, reads the bot's profile and sets the channel's webhook URL for you. A channel has one webhook URL, so if it already pointed somewhere else, that integration stops receiving events; the response names it in webhook.previousUrl.
Two settings stay on the customer's side, in LINE Official Account Manager > Settings > Response settings. nextSteps in the response lists them:
- Turn on Webhooks. Until it is on, LINE delivers nothing to Zernio.
- Turn off auto-response and greeting messages.
Reconnecting the same channel on the same profile updates the existing account. To get your userId for the state parameter, call GET /v1/users which includes a currentUserId field.
Request
- Base URLhttps://zernio.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"state": "6507a1b2c3d4e5f6a7b8c9d0-6507a1b2c3d4e5f6a7b8c9d1"
}Response
LINE connected
Changes
- info
endpoint added
- info