A
Agora Conversational AI REST API
Details
- URL
-
https://api.agora.io/api/conversational-ai-agent/v2/projects/<appid> - Docs
- https://docs.agora.io/en/api-reference/api-ref/conversational-ai
Authentication
Authorization: agora token= <credential> In Agora Console, open your project and obtain its App ID and App Certificate. Generate the token on your own server using Agora's token libraries, such as the Conversational AI SDK token utility or the AgoraDynamicKey libraries. For Conversational AI and Flexible Classroom, send it in Authorization as agora token=<your_token>. Keep the App Certificate server-side only.
Authorization: Basic <credential> In Agora Console, go to Developer Toolkit → RESTful API, click Add a secret, then Download the generated key_and_secret.txt. Use the downloaded Customer ID and Customer Secret to form HTTP Basic auth as Authorization: Basic <base64(customer_id:customer_secret)>. The secret can only be downloaded once, so store it securely.