Live Chat API and Developer Guides
The txt.me live chat API lets your site talk to the widget: pass a logged-in visitor's name and email, open the chat from your own button, or switch the language.
Everything here runs in the browser through the txtme.api JavaScript object that the chat code loads. You don't need a server key for these calls. The REST API and webhooks for server-side work are part of the Business plan; talk to sales for access.
Live chat API guides
- Add a callback form to your website for lead generationLearn how to add a callback form to your website, connect it to a link or button, and turn it on in the txt.me widget settings to collect phone numbers.
- How to Change Visitor Information in txt.meLearn how to change visitor information during an active chat or set it when initializing a txt.me chatbox with the JavaScript SDK using code.
- How to Embed Chat on Website Pages in a Custom LocationLearn how to embed chat on website pages, support sections, or popups by placing the txt.me chat widget inside a specific HTML element with code.
- How to Install Live Chat HTML Code on Your WebsiteLearn how to add live chat HTML code to your website, choose your CMS instructions, and find the txt.me widget code in your dashboard for installation.
- How to Set the Language for Multilingual Live ChatLearn how to set the language for multilingual live chat by adding a locale parameter to the txt.me chatbox JavaScript SDK and preparing widget translations.
Put an AI agent and a real person on your website chat
Start free with one agent and unlimited chats. Add the AI agent, WhatsApp, email and Human Backup operators when you need them.