Initialize the client
Options
Debug logging
debug setting.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Configure your API key
import { ChatATPClient } from "@chatatp/studio";
const client = new ChatATPClient({
apiKey: process.env.CHATATP_API_KEY!,
});
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | required | Your Developer API key |
baseUrl | string | ChatATP production URL | Override for self-hosted environments |
timeout | number | 30000 | Request timeout in milliseconds |
maxRetries | number | 2 | Retry attempts on transient failures |
debug | boolean | false | Log requests/responses to console |
const client = new ChatATPClient({
apiKey: process.env.CHATATP_API_KEY!,
debug: true, // logs to console.debug
});
debug setting.
const client = new ChatATPClient({
apiKey: "chatatp_sk_...",
baseUrl: "https://your-self-hosted-instance.example.com",
});
