Kaveri AI Studio V3 — Edge API Reference
Version: 3.1.0 • Base URL: https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api
Authentication & Headers
All requests must include the Supabase Publishable/Anon API key in the apikey header. Authenticated endpoints additionally require a Bearer token in the Authorization header.
apikey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Authorization: Bearer <user_jwt_access_token>
Content-Type: application/json
1. System & Health
GET /healthz
Checks API service availability and active regulatory frameworks.
curl -X GET "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/healthz" \
-H "apikey: YOUR_SUPABASE_ANON_KEY"
Response (200 OK):
{
"status": "ok",
"service": "Kaveri AI V2 24/7 Cloud Edge API",
"always_on_cloud": true,
"india_regulatory_frameworks": ["DPDP_2023_Verhoeff_Sec12", "RBI_FREE_AI", "MeitY_IndiaAI", "CERT_In"]
}
2. Authentication & User Profile
POST /api/auth/signup
Provisions an authenticated account directly in Supabase with auto-confirmation.
curl -X POST "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/api/auth/signup" \
-H "apikey: YOUR_SUPABASE_ANON_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "developer@example.com",
"password": "SecurePassword123!",
"full_name": "Priya Sharma"
}'
GET /api/me Authenticated
Returns the signed-in user's identity and isolated profile record.
curl -X GET "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/api/me" \
-H "apikey: YOUR_SUPABASE_ANON_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
3. Ava AI Employee Engine
POST /api/agent/chat
Converses with Ava, the Kaveri AI systems architect. Grounded in 5 pre-deployment gates, Indian DPDP Act 2023, and PEFT adaptation principles. Automatically executes Studio actions when requested.
curl -X POST "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/api/agent/chat" \
-H "apikey: YOUR_SUPABASE_ANON_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "Can you select a coder model and check VRAM for an RTX 3060?",
"persona_id": "ava",
"language": "en"
}'
Response (200 OK):
{
"reply": "I have selected Qwen/Qwen2.5-Coder-7B-Instruct for code generation. Under 4-bit NF4 quantization, estimated VRAM is ~7.1 GB which fits comfortably within your 12 GB RTX 3060.",
"action": {
"type": "select_model",
"model_id": "Qwen/Qwen2.5-Coder-7B-Instruct"
},
"source": "Ava AI Employee · Grounded 24/7 Cloud Edge"
}
4. Pre-Deployment Assurance & DPDP Scrubbing
POST /api/assurance/five-gate-preflight
Evaluates model and dataset against the 5 Pre-Deployment Gates and issues a cryptographic SHA-256 Merkle root assurance certificate.
curl -X POST "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/api/assurance/five-gate-preflight" \
-H "apikey: YOUR_SUPABASE_ANON_KEY" \
-H "Content-Type: application/json" \
-d '{
"base_model_id": "Qwen/Qwen2.5-0.5B-Instruct",
"hardware_target": "local_rtx_3060_12gb",
"quantization": "4bit",
"air_gapped_required": true
}'
POST /api/assurance/dpdp-scrub
Scans and redacts Indian Personally Identifiable Information using Dihedral Group D5 Verhoeff checksums (12-digit Aadhaar), Indic Unicode digit normalization, GSTIN, PAN, IFSC, and phone numbers.
curl -X POST "https://qvdcataasizhmipqbxnl.supabase.co/functions/v1/kaveri-v2-api/api/assurance/dpdp-scrub" \
-H "apikey: YOUR_SUPABASE_ANON_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "User account IFSC: SBIN0001234 and PAN: ABCDE1234F verified.",
"auto_scrub": true
}'
5. Encrypted Credentials & Vault Management
POST /api/credentials/save Authenticated
Saves Hugging Face, Kaggle, or BYOK LLM credentials encrypted at rest. Isolated via PostgreSQL Row Level Security (RLS) to the authenticated user's private row.
GET /api/credentials/status Authenticated
Returns connection status (boolean flags) without ever returning raw token values to the client.
6. Data Sovereignty & Account Rights (DPDP Section 12)
GET /api/account/export Authenticated
Exports all profile, project, configuration, dataset, job, log, and artifact records for the authenticated user as a single downloadable JSON package.
POST /api/account/delete Authenticated
Permanently deletes the user's account, encrypted keys, database records, and logs with zero retention.