💻 API & Developers
Build with SwanDigitals
RESTful APIs, SDKs, and comprehensive documentation. Like IBM's Developer Hub, but designed for modern developers who value simplicity and speed.
DPDP 2023 Aware
Data Hosted in India
Live in 7 Days
Quick Start in 5 Minutes
Terminal
# Install SDKpip install SwanDigitals-sdk# Initialize and send messagefrom SwanDigitals import SwanDigitalsClient client = SwanDigitalsClient(api_key="your_api_key") response = client.chat( bot_id="your_bot_id", message="Hello, I need help with my order", user_id="user_123" ) print(response.message) # AI response print(response.intent) # Detected intent print(response.sentiment) # Sentiment score
Official SDKs
Core API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/conversations | Start a new conversation |
| POST | /v1/messages | Send a message to chatbot |
| GET | /v1/conversations/{id} | Get conversation history |
| POST | /v1/intents | Create custom intent |
| GET | /v1/analytics | Fetch analytics data |
| POST | /v1/webhooks | Configure webhooks |
Developer-First Features
Low Latency
<100ms p99 response time with global edge locations
Secure by Default
OAuth 2.0, API key rotation, rate limiting built-in
Webhooks
Real-time events for intents, handoffs, and analytics
CLI Tool
Manage bots, deploy, and debug from command line
OpenAPI Spec
Auto-generate clients in any language
Rich Docs
Interactive examples, guides, and tutorials
Start Building Today
Get your free API key and build your first chatbot in minutes
