Mailrelay API Reference

Send SMS to one or more recipients

POST /sms/send

This method can be used to send SMS to one or more recipients.

The response will return an array with the details of each SMS including the ID, which can be used to verify the status later.

Parameters

NameTypeDescription
to array SMTP Tags
sender_name string Sender name
message string Message

Responses

StatusDescription
201 Success
400 The request is invalid. Check if the field names in the request and the request data is valid.
422 A validation error occurred. Check the response body for more information.
401 The API key wasn't sent or is invalid
500 An internal error happened. Try again later.