Agent Chat APIUsing the Agent Chat API

Overview

Using the Agent Chat API

13 methods a bot or an integration calls with a bot token.

Before you start

The Agent Chat API is what a bot or an integration uses to work chats: list and read them, reply, tag, transfer to a person and close. Each method is one POST to https://app.staging.mlive.chat/v1/agent/action/<method> with a JSON body, authenticated with a bot token (Authorization: Bearer mlcb_…). A bot sees only the chats assigned to it; any other chat answers not_found. New to bots? Start with Build a bot.

Agent Chat API resources

Hearing about changes

Calls answer with the result; everything that happens in a chat after that arrives as a push on the WebSocket or as a webhook. Each method’s Specifics name the push it causes.