For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send message(s) to a subscriber

Trigger SMS/MMS messages. Maximum 10 messages can be sent in a single request. Requester must comply with TCPA regulations, and make sure the message is not sent in quiet hours.

The site must have an active or trial SMS subscription, otherwise the request fails with 417.

Messages are queued in the order given rather than sent inline, so 202 confirms that they were accepted for delivery, not that they were delivered. The response returns one entry per message; poll GET /messages/{id} with the returned IDs to follow their delivery status.

post
Authorizations
X-Recart-API-KeystringRequired

It can be obtained in Recart account after contacting Support

Body
Responses
202

The messages were accepted and queued for delivery, one entry per message, in the order they were given.

application/vnd.api+json
post/messages
POST /app-integrations/2023-12/messages HTTP/1.1
Host: api.recart.com
X-Recart-API-Key: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 178

{
  "data": {
    "type": "messages",
    "attributes": {
      "phoneNumber": "+36301234567",
      "messages": [
        {
          "type": "promotional",
          "body": "Hi, welcome to our store.",
          "attachment": "https://img.url.jpg"
        }
      ]
    }
  }
}
{
  "data": [
    {
      "type": "messages",
      "attributes": {
        "id": "65ba227ffa0ad3e1bef89449",
        "message": "Hi, welcome to our store."
      }
    }
  ]
}

Last updated

Was this helpful?