API Documentation
Build with Genie AI API
Integrate powerful AI capabilities into your applications with our RESTful API.
Quick Start
1. Get API Key
Sign up and generate your API key from the dashboard settings.
2. Make Requests
Use your API key to authenticate and make requests to our endpoints.
3. Handle Webhooks
Set up webhooks to receive real-time updates about conversations.
Example Request
cURL
curl -X POST https://api.genieai.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "your_agent_id",
"message": "Hello, I need help with my order",
"session_id": "optional_session_id"
}'API Endpoints
POST
/api/v1/chatSend a message to your AI assistant and receive a response.GET
/api/v1/agentsList all AI agents associated with your account.POST
/api/v1/agentsCreate a new AI agent with custom configuration.GET
/api/v1/conversationsRetrieve conversation history for analytics and review.POST
/api/v1/trainAdd new training data to improve your AI agent.Need More Details?
Check out our comprehensive API reference for detailed documentation.