JavaScript
Chat
Create Chat Completion
Create a chat completion message
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Body
application/json
Response
Successfully created chat completion.
New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5