Skip to main content
POST
https://api.sitespeak.ai
/
v1
/
{chatbot_id}
/
query
curl -X POST https://api.sitespeak.ai/v1/{chatbot_id}/query \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What is SiteSpeakAI?",
    "conversation_id": "unique-conversation-id",
    "format": "markdown"
  }'

Path Parameters

NameTypeDescription
chatbot_id*StringThe ID of your chatbot. You can find the ID on the settings page for your chatbot.

Headers

NameTypeDescription
Authorization*StringBearer

Body

NameTypeDescription
prompt*StringThe question or query text that you would like to send to your chatbot to answer.
conversation_idStringA unique identifier to group questions and answers sent to your chatbot.
formatStringCan be either html or markdown. Defaults to return the response text in markdown.
curl -X POST https://api.sitespeak.ai/v1/{chatbot_id}/query \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What is SiteSpeakAI?",
    "conversation_id": "unique-conversation-id",
    "format": "markdown"
  }'

Response

{
  "text": "The answer to your question...",
  "urls": ["https://example.com/1", "https://example.com/2"]
}
Last modified on January 22, 2026