Agora Server - Available API Endpoints

This server provides the following API endpoints:

POST /token
Generate Agora RTC tokens for channel access.
Body: {"channel": "channel_name", "uid": "user_id"}
POST /webhook
Webhook endpoint for processing Agora notifications and managing ConvoAI agents.
Handles event types 103 (user joined) and 104 (user left) for PSTN channels.
POST /api/agora-call-in
Call-in endpoint for generating tokens with caller information.
Body: {"destNumber": "123456789", "cidName": "Caller Name", "cidNumber": "987654321"}
Returns: Token, channel name (pstn_destNumber format), and caller info.
GET /
This page - displays all available API endpoints.

Security Notes:

Configuration:

Make sure to set up your environment variables in .env file based on .env.example