Overview
G-Tateth provides a unified voice and phone service that supports:- Phone Calls - Make and receive calls from anywhere in the world
- WebRTC - Browser-based calling (no phone numbers needed)
- Call Recording - Automatic recording and transcription
- IVR Systems - Interactive voice response menus
- Call Routing - Intelligent call distribution to agents
All API endpoints are documented in the API Reference tab. This guide focuses on concepts, workflows, and integration examples.
Quick Start
1. Configure Phone Service
First, set up your phone service in your dashboard or via the Configure Phone Service endpoint. Configuration Options:phoneNumber- Your dedicated phone numberrecordingEnabled- Enable automatic call recordingtranscriptionEnabled- Enable call transcriptiondefaultCountryCode- Default country code for callswebhookUrl- URL for receiving call events
2. Initiate a Call
Make an outbound call using the Initiate Call endpoint. Required Parameters:customerPhone- Customer phone number in E.164 format (e.g.,+2348012345678)agentId- ID of the agent making the call
customerId- Existing customer ID (will create if not provided)conversationId- Link call to existing conversationcustomGreeting- Custom greeting message to play before connectingrecordingEnabled- Enable call recording (default:true)
callId, conversationId, status, and optionally webRTC configuration if using WebRTC.
3. Handle Incoming Calls
Set up webhooks to receive incoming calls. The Handle Incoming Call endpoint is called automatically by G-Tateth when a call comes in. Webhook Payload:Call Management
Get Call History
Retrieve call history with filtering and pagination using the Get Call History endpoint. Query Parameters:startDate- Start date (ISO 8601 format)endDate- End date (ISO 8601 format)status- Filter by status:completed,missed,failed,answereddirection- Filter by direction:inbound,outboundagentId- Filter by agent IDcustomerId- Filter by customer IDpage- Page number (default: 1)limit- Results per page (default: 20)
Update Call Metadata
Add notes, tags, or ratings to calls using the Update Call Metadata endpoint. Request Body:Call Recording
Get Recording Download Link
Get a secure, time-limited download link for call recordings using the Get Recording Download Link endpoint.Stream Recording
Stream call recording audio directly using the Stream Recording endpoint.Delete Recording
Permanently delete a call recording using the Delete Recording endpoint.IVR (Interactive Voice Response)
Create IVR Menu
Create interactive voice response menus using the Create IVR Menu endpoint. Menu Options Example:Update IVR Menu
Update existing IVR menus using the Update IVR Menu endpoint.WebRTC Integration
Get Capability Token
Generate a capability token for WebRTC calls using the Get WebRTC Capability Token endpoint. Request:WebRTC Call Flow
- Get capability token using the endpoint above
- Initialize WebRTC client in your browser/application
- Connect to WebRTC server using the token
- Make or receive calls through the WebRTC connection
Call Routing
Queue Status
Get current call queue status and wait times using the Get Queue Status endpoint. Response:Routing Strategies
Configure call routing in your tenant settings:- Round-robin - Distribute calls evenly
- Least-busy - Route to agent with fewest active calls
- Random - Random assignment
- Priority - Route to priority agents first
Webhooks
Receiving Call Events
G-Tateth can send call event webhooks to your application when calls are initiated, answered, completed, or when recordings are available. Configure Your Webhook URL: Set your webhook URL in your phone service configuration:call.initiated- Call has been initiatedcall.ringing- Call is ringingcall.answered- Call has been answeredcall.completed- Call has completedcall.failed- Call failedcall.recording.available- Call recording is available
X-Webhook-Signature header for verification. Always verify signatures to ensure requests are from G-Tateth.
Code Examples
JavaScript/Node.js
Python
cURL
Best Practices
Security
- Always use HTTPS for webhooks
- Validate webhook signatures from G-Tateth
- Store credentials securely
- Use environment variables for API keys
Performance
- Implement retry logic for failed calls
- Use async processing for webhooks
- Cache capability tokens when possible
- Monitor call queue status
User Experience
- Provide clear call greetings
- Set appropriate timeout values
- Enable call recording for quality
- Use IVR menus for complex routing
Troubleshooting
Calls Not Connecting
- Verify phone service configuration
- Check phone number format (E.164)
- Ensure webhook URLs are accessible
- Review call logs in your dashboard
Recordings Not Available
- Verify recording is enabled
- Check recording settings in your dashboard
- Wait for processing delay
- Check storage permissions
WebRTC Issues
- Verify capability token validity
- Check browser WebRTC support
- Ensure proper firewall configuration
- Review network connectivity
Support
Need help? Contact us:- Email: support@g-tateth.com
- Documentation: https://docs.g-tateth.com
- Dashboard: https://app.g-tateth.com