Skip to content
AnTalkChat
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. 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. 2

    Ask a question

    Send a POST request to your assistant's chat endpoint with the key as a bearer token, as below.

  3. 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.
Read the full install guide

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