API
Use AnTalkChat from your own apps with the REST API
The same assistant, without the widget: send a question from your server and get the answer, its sources and your contact details back as JSON, or as a stream.
Step by step
-
1
Create an API key
In AnTalkChat go to Settings → Workspaces → API keys (Owner only). Test keys give real answers within a small daily limit.
-
2
Ask a question
Send a POST request to your assistant's chat endpoint with the key as a bearer token, as below.
-
3
Continue the conversation
Send the returned conversation_id with the next question, or "stream": true to receive the answer as it is written.
Your snippet
Shell
curl https://antalkchat.com/v1/assistants/ast_pub_YOUR_ID/chat \
-H "Authorization: Bearer sk_live_…" \
-H "Content-Type: application/json" \
-d '{"message": "Do you deliver outside Dhaka?"}'
Good to know
- Keep secret keys on your server; never put them in a web page or mobile app.
- The full reference is the OpenAPI description in the docs.
Other integrations
HTML website
Any website
Paste one script tag before the closing body tag.
WordPress
Website builder
Add the snippet with a footer-code plugin or in your theme.
Shopify
E-commerce
Paste the snippet into your theme's layout file.
Wix
Website builder
Add the snippet as custom code on all pages.
Webflow
Website builder
Paste the snippet into your project's footer code.
React and Next.js
Framework
Load the script once and control the chat from JavaScript.
Give your website an assistant that knows your business
Add your web pages and notes, paste one line on your site, and let visitors get answers and book appointments any time of day.
Free for 30 days · No credit card required · Live in minutes