AI Agents API User Guide
MariaDB Cloud AI Agent API for embedding conversational AI in applications: stateful chat sessions, natural-language queries, and X-API-Key authentication — no LLM infrastructure required.
Overview
Authentication
X-API-Key: YOUR_API_KEY
Maintaining Chat Sessions
Creating a Session
POST https://api.skysql.com/copilot/v1/sessionContent-Type: application/json X-API-Key: YOUR_API_KEY{ "agent_id": "your-agent-id", "metadata": { "user_id": "optional-user-id", "conversation_topic": "optional-topic" } }
Response Structure
Using the Session
Error Handling
Tips for Effective Use of Sessions
Making a Chat Request
Response Format
Error Handling
Code
Meaning
Explanation
Best Practices
See Also
Last updated
Was this helpful?

