Skip to main content

Prerequisites

Step 1: Get Your API Key

  1. Log into getchatads.com
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key
  4. Copy your new API key (starts with cak_)
Keep your API key secure. Never expose it in client-side code or public repositories.

Step 2: Make Your First Request

curl -X POST 'https://api.getchatads.com/v1/chatads/messages' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
    "message": "What are the best noise-cancelling headphones?"
  }'

Step 3: Handle the Response

A successful response looks like this:
{
  "data": {
    "status": "filled",
    "offers": [
      {
        "link_text": "noise-cancelling headphones",
        "url": "https://www.amazon.com/dp/B0XXXXXXXXX?tag=yourtag-20",
        "confidence_level": "high"
      }
    ],
    "requested": 1,
    "returned": 1
  },
  "error": null,
  "meta": {
    "request_id": "d6a8f6f2-3b5a-4f0a-81ab-1b4a4c9dd5ea",
    "country": "US",
    "usage": {
      "monthly_requests": 150,
      "daily_requests": 25,
      "daily_limit": 1000,
      "is_free_tier": false
    }
  }
}

Response Fields

FieldDescription
data.statusResponse status: “filled”, “partial_fill”, “no_offers_found”, or “internal_error”
data.offersArray of affiliate offers (only contains filled offers)
data.requestedNumber of offers requested
data.returnedNumber of offers returned
errorError details (null on success) - check error == null to determine success
meta.request_idUnique ID for debugging and support

Offer Fields

FieldDescription
link_textText to use for the affiliate link
urlThe affiliate URL (always populated)
confidence_levelPurchase intent classification

Next Steps