API Documentation
Integrate Parlexa's enterprise AI directory and real-time vendor analytics directly into your workflows.
Authentication
All API requests require an active Bearer token. Vendor endpoints are strictly protected by Supabase Row Level Security (RLS) to ensure you can only access analytics and data for tools you own.
Core Endpoints
/api/v1/agentsRetrieve a paginated list of all globally approved AI agents in the directory. You can filter by category, pricing model, or deployment complexity.
/api/v1/vendor/toolsSubmit a new AI tool for review. Note: Tools submitted via the API are automatically assigned a pending status. If you update an existing approved tool, its status will temporarily revert to pending until administratively cleared.
/api/v1/vendor/analyticsFetch your zero-latency interaction metrics. This endpoint returns aggregated cta_click (Top-of-Funnel Visits) and lead_capture (Saves/Bookmarks) events over a rolling 30-day window.
Rate Limits & Architecture
- Client-Side Throttling: To prevent duplicate analytics logging, interaction endpoints enforce a strict 2000ms client-side execution lock.
- API Limits: Standard API requests are limited to 100 requests per minute per authenticated IP address. Exceeding this limit will trigger a 429 Too Many Requests response.
Example Request
const fetchMetrics = async () => {
const response = await fetch('https://parlexa.in/api/v1/vendor/analytics', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
// { clicks: 1240, leads: 84, status: 200 }
};