REST / SMS / Send

URI

POST /wp-json/gh/v3/sms/send

Method

This endpoint supports the  POST method.

Request

This endpoint provides functionality to send SMS to the contact.

PARAM TYPE REQUIRED DESCRIPTION
id_or_email string/int yes Contact id.
sms_id int yes SMS id.
by_user_id bool no Fetches the contact using user id. 

Example

Here is an example of URI which sends SMS to the contact.

http://yoursite.com/wp-json/gh/v3/sms/send?id_or_email=2&sms_id=1

Response

If the SMS was sent successfully you will receive a 200 OK response with the success message. An example response is below.

{
    "code": "success",
    "message": "SMS sent successfully to contact."
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us