https://retellai.com/?utm_source=discord&utm_medium=seo logo
what is the endpoint to create a SMS chat session ...
# ❓・ai-evy-support
r
@AI Evy what is the endpoint to create a SMS chat session and give it a phone number to send messages to?
a
Thanks for tagging me @rykcon_24292. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, here's how to create a chat session that can handle SMS: To create a chat session, use the
/create-chat
endpoint [(1) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
However, the documentation shows that Retell supports SMS integration through Twilio SMS integration, which allows you to deploy chat agents to receive and respond to text messages [(2) ]() . For SMS functionality, you need to enable SMS capabilities first, which requires going through a business profile approval process and is currently limited to US numbers only [(3) ]() . For sending SMS during conversations, Retell provides an SMS Node in Conversation Flow that can send one-way SMS from the current agent number to the user's number, but this only works for phone calls and requires SMS-enabled phone numbers [(4) ]() . The sources don't show a specific endpoint parameter for directly specifying a phone number when creating a chat session for SMS. You would need to set up SMS integration through the Twilio SMS setup process described in the Enable SMS guide [(3) ]() .
​ To learn more, see the sources I considered: [[1] Create Chat](https://docs.retellai.com/api-references/create-chat) [[2] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[3] Enable SMS capabilities](https://docs.retellai.com/deploy/enable-sms) [[4] SMS Node](https://docs.retellai.com/build/conversation-flow/sms-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy Retell launched the fully SMS chat agents over two weeks ago — but there’s no documented way to start an outbound SMS conversation programmatically?
a
Thanks for the follow-up, @rykcon_24292. I'll get back to you soon.
### Answer Based on the available documentation, I can confirm that Retell AI supports SMS and chat functionality [(1) ]() [(2) ]() . The platform allows you to create chat agents and deploy them for SMS interactions [(2) ]() . To create a chat session, you use the
create-chat
API endpoint [(1) ]() . The API returns a
chat_id
that you need for subsequent requests . For generating responses from the chat agent, you use the
create-chat-completion
API endpoint . Retell AI also supports Twilio SMS integration, allowing you to deploy chat agents to receive and respond to text messages . The platform provides both inbound SMS agent configuration and outbound SMS agent configuration . There's also a "Make an outbound SMS" button available to start new SMS sessions . However, the specific API endpoints and parameters for programmatically initiating outbound SMS conversations aren't detailed in the available documentation sources. For comprehensive information about the outbound SMS API implementation, I'd recommend: Visit [Contact Sales]() or [) for more detailed technical documentation. Would you like a general answer based on my knowledge instead, or do you need me to help you find more specific documentation about the outbound SMS API?
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[2] Unlock AI Texting, SMS, & Chatbots with Retell AI Agents | Retell AI | Retell AI](https://www.retellai.com/blog/unlock-ai-texting-with-retell-ai-voice-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.