https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am trying to use the Create Outbound SMS API fou...
# ❓・ai-evy-support
g
@AI Evy I am trying to use the Create Outbound SMS API found in the API references, but a message is never sent to a specified number by the chat agent after the first Retell voice agent tries to call the chat agent via webhook.
a
Thanks for tagging me @goopasnoops. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, here are the key requirements for the Create Outbound SMS API to work properly: Prerequisites for SMS functionality: [(1) ]() 1. SMS capabilities must be enabled on your phone number before you can send SMS 2. The
from_number
must be a number purchased from Retell or imported to Retell with SMS capability [(2) ]() 3. SMS capabilities require approval through a multi-step process that can take 2-3 weeks [(1) ]() Common issues to check: If your SMS isn't being sent after a voice call webhook, verify: 1. Your
from_number
has SMS enabled
- You can check this by listing your phone numbers to see if SMS capability is active [(3) ]() 2. The agent is configured for chat mode - The agent must be configured for chat mode to work with SMS [(2) ]() 3. Correct API call format - Here's the exact code from the documentation:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.createSMSChat({
 from_number: '+12137771234',
 to_number: '+14155551234',
}) ;
console.log(chatResponse.agent_id) ;
To enable SMS on your Retell number: [(1) ]() You need to complete the SMS application process which includes getting approved for a business profile (free) , brand registration ($4-$45) , and SMS campaign ($15) . Current SMS capabilities are limited to US numbers only . If your number doesn't have SMS enabled yet, that would explain why messages aren't being sent. Check your phone number's SMS capability status in the dashboard or via the List Phone Numbers API [(3) ]() .
​ To learn more, see the sources I considered: [[1] Send & receive SMS](https://docs.retellai.com/deploy/enable-sms) [[2] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[3] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.