Introduction to the Vindex Ai REST API
API Overview
The Vindex Ai API provides a simple yet powerful interface for integrating AI conversations into your applications.
Base URL
All API requests should be made to:
text
Authentication
Every request must include your API key in the header:
text
text
Finding Your API Key
- Go to Channels in the dashboard
- Open your channel
- Copy the API Key from the channel overview card
⚠️ Security Note: Never expose your API key in client-side code for public-facing websites. Use a backend proxy instead.
Rate Limits
Rate limits are configured per-channel in your dashboard:
| Limit | Default | Description |
|---|---|---|
| Requests/minute | 60 | Max requests per minute |
| Requests/day | 1000 | Max requests per day |
When limits are exceeded, the API returns a response.
text
Response Format
All responses are JSON with the following structure:
Success Response
json
[!TIP] Pro Tip: Thefield often contains Markdown. Use a library like marked or react-markdown to parse and render these responses correctly in your UI.text
json
Rendering Responses
The field returned by AI endpoints often contains Markdown formatting (headers, bold text, code blocks, tables, etc.).
text
To provide the best experience for your users, we recommend using a markdown parsing library on your client:
- JavaScript/React: Use ,text, or similar.text
- Python: Use ortext.text
Example using in JavaScript:
text
javascript
Content Types
The API accepts and returns JSON:
text
HTTP Methods
| Method | Usage |
|---|---|
text | Send messages, create resources |
text | Retrieve information |
text | Update resources |
text | Remove resources |