Integrate SAINTSAL™ AI into your applications with our powerful REST API. Create agents, manage API keys, and build intelligent workflows.
Get up and running with SAINTSAL™ AI API in minutes
Go to Agent Hub and create a specialized AI agent with custom prompts and files.
Create an API key for your agent with custom permissions and rate limits.
Use the API key to integrate AI capabilities into your applications.
Complete reference for all available API endpoints
Generate a new API key for your agent
{ "agent_id": "string", "name": "string", "permissions": ["read", "write"], "rate_limit_per_minute": 30, "rate_limit_per_hour": 500, "rate_limit_per_day": 5000, "expires_at": "2024-12-31T23:59:59Z" }
curl -X POST https://saintsal-backend-0mv8.onrender.com/api/api-keys/keys \ -H "Authorization: Bearer YOUR_SUPABASE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "your-agent-id", "name": "My App Key", "permissions": ["read", "write"], "rate_limit_per_minute": 30, "rate_limit_per_hour": 500, "rate_limit_per_day": 5000 }'
Send messages to your AI agent and get responses
{ "message": "string", "context_files": "string (optional)", "stream": false }
curl -X POST https://saintsal-backend-0mv8.onrender.com/api/v1/chat \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Hello! Can you help me with my business?", "context_files": "Additional context data here...", "stream": false }'
Get real-time streaming responses from your agent
{ "message": "string", "stream": true }
curl -X POST https://saintsal-backend-0mv8.onrender.com/api/v1/chat \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Tell me about your capabilities", "stream": true }'
Retrieve files associated with your agent
{ "success": true, "data": { "files": [ { "id": "string", "name": "string", "mime_type": "string", "size": 1234, "created_at": "2024-01-01T00:00:00Z" } ], "agent": { "id": "string", "name": "string", "description": "string" } } }
curl -X GET https://saintsal-backend-0mv8.onrender.com/api/v1/agent/files \ -H "Authorization: Bearer YOUR_API_KEY"
Retrieve information about your agent
{ "success": true, "data": { "agent": { "id": "string", "name": "string", "description": "string", "prompt": "string", "model": "gpt-4", "temperature": 0.7, "max_tokens": 2000 } } }
curl -X GET https://saintsal-backend-0mv8.onrender.com/api/v1/agent/info \ -H "Authorization: Bearer YOUR_API_KEY"
Powerful features to build intelligent applications
API key-based authentication with granular permissions and secure storage.
Configurable rate limits per minute, hour, and day to control usage.
Upload files to agents and include them in API calls for context-aware responses.
Get streaming responses for real-time conversations and better UX.
Track API usage, performance metrics, and agent interactions.
Create and manage multiple specialized agents for different use cases.
Create your first agent and start building intelligent applications with SAINTSAL™ AI