API Reference

The Conduet API allows you to programmatically interact with your AI agents. Use it to send messages, manage knowledge bases, retrieve analytics, and control conversation state.

Authentication

All API requests require an API key passed in the Authorization header. Generate keys from Project Settings → API keys. Keys use the cdt_ prefix.

curl -X POST /api/v1/conversations/user_123/interact \
  -H "Authorization: Bearer cdt_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"action": {"type": "text", "payload": "Hello!"}}'

Base URL

All endpoints are relative to your deployment's base URL:

https://your-domain.com/api/v1

Rate Limits

Conversation interact endpoints are rate-limited per user. Rate limit headers are included in every response:

HeaderDescription
X-RateLimit-LimitMax requests per window
X-RateLimit-RemainingRemaining requests
X-RateLimit-ResetWindow reset timestamp (epoch ms)

APIs

Error Codes

The API returns standard HTTP status codes. Error responses include a JSON body:

{
  "error": "Human-readable error message",
  "code": "ERROR_CODE"
}
StatusCodeDescription
400BAD_REQUESTInvalid request body or parameters
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDResource not found
429RATE_LIMITEDToo many requests
500INTERNALInternal server error