Skip to content

Send a text message

SMS
POSThttps://api.dcdial.com/api/type=send_text_message
Calls or textsToken

Sends a text message from one of your numbers to a phone number, with your own text or a saved template.

Messages are billed to your dialer balance.

Parameters

Send as application/x-www-form-urlencoded.

  • typestringrequired

    Selects the operation. Always send_text_message for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • company_idintegerrequired

    Your DCDial company ID.

    Example 101
  • phone_numberstringrequired

    Phone number in E.164 or 10-digit US format.

    Example 5551234567
  • caller_idstringrequired

    Caller ID (a number assigned to your company).

    Example 5559876543
  • use_templatestringrequired

    Y to send a saved SMS template instead of sms_text.

    One ofYN
  • sms_textstringrequired

    Message body.

    Example Your payment of $150.00 was received. Thank you!
Terminal window
curl https://api.dcdial.com/api/ \
-d type=send_text_message \
-d token="$DCDIAL_TOKEN" \
-d company_id=101 \
-d phone_number=5551234567 \
-d caller_id=5559876543 \
-d use_template=Y \
-d sms_text='Your payment of $150.00 was received. Thank you!'
Response · 200 OK
{
"response": {
"success": "[0|1]",
"message": "00000"
}
}

Try it

Environment