Business API Reference
Business-ready features and integrations
Higher-level business operations including team management, analytics, A/B testing, and multi-channel integrations. Build business applications with ready-to-use features.
Quick Example
Business API Quick Example
import { RodgerClient } from '@rodger-ai/sdk';
const client = new RodgerClient({
apiKey: 'your-api-key',
apiUrl: 'https://api.rodger.ai'
});
// Create a team
const team = await client.createTeam({
name: 'Customer Support',
members: ['user1@company.com', 'user2@company.com']
});
// Start A/B test
const abTest = await client.createABTest({
name: 'Response Style Test',
personaA: 'persona-formal',
personaB: 'persona-casual',
trafficSplit: 50
});
// Get analytics
const analytics = await client.getAnalytics({
timeframe: '7d',
metrics: ['conversations', 'satisfaction', 'response_time']
});Team Management
Manage teams, members, availability, and collaboration features.
POST /business/teamsCreate team
GET /business/teamsList teams
PUT /business/teams/:id/availabilitySet availability
POST /business/teams/:id/membersAdd member
Analytics
Comprehensive analytics and reporting for business insights.
GET /business/analyticsGet metrics
GET /business/analytics/conversationsConversation data
GET /business/analytics/performancePerformance metrics
POST /business/analytics/exportExport data
A/B Testing
Create and manage A/B tests to optimize agent performance.
POST /business/ab-testsCreate test
GET /business/ab-testsList tests
PUT /business/ab-tests/:id/startStart test
GET /business/ab-tests/:id/resultsGet results
Channel Integrations
Connect and manage multiple communication channels.
POST /business/channelsConnect channel
GET /business/channelsList channels
POST /business/channels/:id/sendSend message
PUT /business/channels/:id/settingsUpdate settings
Authentication
Business API endpoints use the same authentication as Core API. Include your API key in the Authorization header.
Authentication Header
curl -X GET https://api.rodger.ai/business/analytics \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json"Core + Business API Integration
Business API builds on top of Core API. You can use both APIs together seamlessly:
- • Use Core API to create and configure personas
- • Use Business API to manage teams and run analytics
- • Both APIs share the same authentication and data models
- • Single SDK provides access to both API surfaces