Using API
Send Sms
POST https://api.pullsms.com/api/send/message/single
apiKey: your-api-key
Content-Type: application/json
Here’s an explanation of the JSON structure you provided, including the details for each key:
{
"phone": "905006667700", // The recipient's phone number, formatted in international style (including the country code).
"deviceId": 1, // The ID of the device used to send the SMS. This helps identify which device is responsible for sending the message.
"message": "example message", // The content of the SMS message to be sent. In this case, it's a test message.
"type": 1 // The type of the message. A value of 1 indicates that the message is a standard text message.
}Key Explanations:
phone: Represents the recipient's phone number, which must be in the correct format for the SMS to be delivered successfully.
deviceId: Identifies the device used for sending the SMS, which can be useful for tracking and managing multiple devices within your system.
message: Contains the actual text that will be sent to the recipient. Ensure the message complies with any length restrictions imposed by the SMS gateway.
type: Specifies the type of the message being sent. In this context, a value of 1 is used exclusively for standard text messages. Other values (if applicable in future implementations) could represent different types of messages, such as multimedia messages.
Last updated