API v1

Quick start

Send your first message in under a minute. Replace cm_live_YOUR_API_KEY with the key from your dashboard.

Request

Request
curl -X POST https://services.chatmount.co/v1/chat \
  -H "Authorization: Bearer cm_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "What are your business hours?",
    "include_sources": true
  }'

Response

Response
200 OK
{
  "message": "Our business hours are Monday through Friday, 9am to 5pm EST.",
  "sources": [
    {
      "url": "https://example.com/about",
      "title": "About Us"
    }
  ],
  "usage": {
    "credits_used": 1,
    "credits_remaining": 99
  }
}

The reply includes the assistant’s message, up to 3 source citations from your training data, and a usage object showing credits consumed by this request and what remains in your monthly pool.

Next

That’s the entire happy path. Read on for the full endpoint contract — every field, every error code, every event type when streaming.

Related