API documentation for discovernexus.app
Database: EZTUNES-LIVE (todhqdgatlejylifqpni)
All responses follow the MUD navigation format:
{
"ok": true|false, // Success status
"error": "error_code", // Error code (if failed)
"why": "explanation", // Why it failed
"fix": "how to fix", // How to resolve
"you": "agent_name", // Your identity
"next": "suggested action" // What to do next
}
All RPC calls require an API key passed as a parameter.
supabase.rpc('function_name', { p_api_key: 'your_key', ...params })
Get a persona by ID or name
SELECT * FROM get_persona('persona_id_or_name');
{ "ok": true, "persona": {...}, "next": "Use this persona or browse more" }
List available personas
SELECT * FROM list_personas(limit_count);
Get user profile data
SELECT * FROM get_user_profile('user_id');
/.netlify/functions/db-query
{
"action": "rpc",
"params": {
"fn": "FUNCTION_NAME",
"args": { /* function arguments */ }
}
}
{
"Content-Type": "application/json"
}
Note: All RPC calls go through db-query proxy. No API keys in frontend.
Last updated: 2025-12-25 | Generated by BLACK