Sendmsg API 4.5
Manage subscribers and mailing lists, and send newsletters and SMS campaigns, from your own code.
https://gconvertrest.sendmsg.co.il/api/SendmsgEvery call needs a token. Post your SiteID and API password to the token endpoint, then send the token you get back as the Authorization header on everything else. It lasts twelve hours.
SiteID is your Sendmsg account number. The API password comes from support, at send.help@comstar.co.il.
API Support
Support requests are only accepted on the proper template.
- Copy the template into your mail client.
- Fill it in with the details it asks for.
- Send it to send.help@comstar.co.il.
About SMS
SMS can be sent through this API. These restrictions apply to SenderPhone.
- Any special character or space is deleted.
- Any word longer than 11 characters is trimmed.
- Letters must be English only.
Important
- Encode as UTF-8
- Send strings as UTF-8. This is required for Hebrew to survive the round trip.
- PHP requires Content-Length
- PHP clients must set Content-Length to the byte length of the JSON body.
- Tokens last 12 hours
- Renew well before expiry rather than waiting for a call to fail.
- Every code carries detail
- Whatever the status, result.ResultMessage explains it.
Status codes
Whatever the code, result.ResultMessage carries the detail.
| Code | Meaning |
|---|---|
200 or 10000 | Success. |
201–299 | Success, with a message in the result. |
410 | Did not find what you were looking for. |
500 | An error occurred. |
530 | Try again later. |
531 | The data was inserted, but the message was not sent. |
550 | An error occurred during data extraction. Try again later. |
For agents and tooling
The whole reference is available as plain text and as a machine description, generated from the same source as this page.
- llms.txtStructured index of every endpoint.
- llms-full.txtThe complete reference as one markdown file.
- openapi.jsonImport into Postman, or generate a client.
Getting started
Obtain a token and confirm it works. Every other endpoint needs one.
POSTGet a token/token
https://gconvertrest.sendmsg.co.il/api/Sendmsg/token#
Exchange your account SiteID and API password for a bearer token. SiteID is your Sendmsg account number. The API password comes from the support team. Send the token as the Authorization header on every other call.
- The token is valid for 12 hours. Renewing it well before expiry is recommended.
- Append ?full=true to receive the token metadata, such as its timestamp and expiry date.
POSTTest authentication/ping
https://gconvertrest.sendmsg.co.il/api/Sendmsg/ping#
Confirms that your token is valid. Useful as a first call when wiring up an integration.
Subscribers
Add, update, inspect and change the status of the people you send to.
POSTAdd or update subscribers/AddUsersOnly
https://gconvertrest.sendmsg.co.il/api/Sendmsg/AddUsersOnly#
Adds subscribers to your account, or updates them if they already exist. The body is an array of user objects.
User object, identified by email
Identifies a subscriber by email address. If both UserID and EmailAddress are supplied and populated, the result is based on the email.
| Field | Type | Description |
|---|---|---|
EmailAddressrequired | string | Subscriber email address. |
Cellphone | string | Subscriber mobile number. |
FirstName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
LastName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
userSystemFields | array<KeyValuePair> | Custom account fields to store permanently against the subscriber. |
- If UserID and EmailAddress are both present and populated, the email wins.
- To create a custom field before referencing it, use CreateField.
Undocumented at source
- The blueprint also shows a wrapped { users: [...], Message: {...} } body for this endpoint, which contradicts the array body in its own request examples. The array form is documented here because that is what the request examples send.
GETGet subscriber details/GetUserDetails
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetUserDetails#
Returns every stored detail for one subscriber.
Query parameters
| Field | Type | Description |
|---|---|---|
userIDrequired | number | ID of the subscriber in your Sendmsg account. |
POSTList users by request type/GetSystemUsers
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetSystemUsers#
Returns the subscribers who unsubscribed, were deleted, or were flagged with a bad email address.
- requestType accepts SelfRemUsers (unsubscribed), DelUsers (deleted), or wrongMails (flagged as a wrong address).
POSTChange a subscriber's send status/ChangeUpdateStatus
https://gconvertrest.sendmsg.co.il/api/Sendmsg/ChangeUpdateStatus#
Changes the send status of one subscriber in your account.
- StatusEmail accepts Active, Inactive, AskedRemoval, or BadEmail.
- If the subscriber is already set to AskedRemoval, updating their email status is restricted.
Undocumented at source
- The blueprint documents no response for this endpoint.
Mailing lists
Create lists, read their members, and move subscribers in and out.
POSTCreate a mailing list/CreateMalingList
https://gconvertrest.sendmsg.co.il/api/Sendmsg/CreateMalingList#
Creates a new, empty mailing list in your account.
New mailing list
| Field | Type | Description |
|---|---|---|
IsNewListrequired | boolean | Always true. |
NewListNamerequired | string | Name of the list. |
NewListDescription | string | Description of the list. |
POSTList all mailing lists/GetMailingListNames
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetMailingListNames#
Returns every mailing list in your account with its ID, name, description and subscriber counts. Takes no body.
GETGet a mailing list's subscribers/GetMailingListByID
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetMailingListByID#
Returns the subscribers of one mailing list, filtered by type.
Query parameters
| Field | Type | Description |
|---|---|---|
listIDrequired | number | ID of the mailing list in your Sendmsg account. |
typerequired | number | Which subscribers to return. 0 = all (deleted, wrong, active, unsubscribed), 1 = deleted, 2 = unsubscribed, 3 = wrong emails, 4 = active. |
Undocumented at source
- The blueprint documents no response for this endpoint.
POSTAdd subscribers to mailing lists/AddUsersToLists
https://gconvertrest.sendmsg.co.il/api/Sendmsg/AddUsersToLists#
Adds existing subscribers to one or more existing mailing lists.
Existing mailing list reference
| Field | Type | Description |
|---|---|---|
ExistingListIDrequired | number | ID of a mailing list already in your account. |
POSTEmpty mailing lists/TruncateMailingLists
https://gconvertrest.sendmsg.co.il/api/Sendmsg/TruncateMailingLists#
Removes every subscriber from the given mailing lists. The body is a plain array of list IDs.
POSTRemove subscribers from mailing lists/RemoveFromMailingLists/ManyToMany
https://gconvertrest.sendmsg.co.il/api/Sendmsg/RemoveFromMailingLists/ManyToMany#
Removes specific subscribers from specific mailing lists. Subscribers may be identified by UserID, EmailAddress or Cellphone.
- Add only one mailing list per user. Any extra type is dismissed.
- Where several identifiers are supplied, the API always prefers UserID and ignores the rest.
Sending
Send email and SMS, either to subscribers you supply inline or to whole mailing lists. Messages can be composed inline, reused from history, or taken from a draft.
POSTAdd subscribers and send an email/AddUsersAndSend
https://gconvertrest.sendmsg.co.il/api/Sendmsg/AddUsersAndSend#
Adds or updates subscribers and sends them an email in a single call. The message may be composed inline, or taken from a past send or a draft.
User object, identified by email
Identifies a subscriber by email address. If both UserID and EmailAddress are supplied and populated, the result is based on the email.
| Field | Type | Description |
|---|---|---|
EmailAddressrequired | string | Subscriber email address. |
Cellphone | string | Subscriber mobile number. |
FirstName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
LastName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
userSystemFields | array<KeyValuePair> | Custom account fields to store permanently against the subscriber. |
Per-message field values
Values that apply to this message only, rather than being stored on the subscriber. Referenced in message content as [|[yourKey]|].
| Field | Type | Description |
|---|---|---|
userSendFields | array<KeyValuePair> | Field values scoped to this send.Supports simple emoji (UTF-8 only, excluding utf8mb4). |
New email message
| Field | Type | Description |
|---|---|---|
MessageContentrequired | string | Body of the message. Text in square brackets is treated as a field name and replaced at render time; unmatched keys are removed. |
MessageSubjectrequired | string | Subject line. |
MessageInnerNamerequired | string | Name of the message inside your Sendmsg account. |
SenderEmailAddress | string | From address.Defaults to comstar@sendmsg.co.il |
SenderName | string | Display name shown beside the from address.The blueprint sends this in its worked examples but never lists it in a parameter table, so its exact behaviour is undocumented. |
MessageBackColor | string | Background colour, as a hex value.Defaults to #ffffffThe blueprint labels this default both 'Black' and 'White' in different tables. The value itself is #ffffff. |
MessageDirectionrequired | number | Text direction. RTL = 1, LTR = 2. |
AddFacebook | boolean | Add a link for sharing the message to Facebook.Defaults to false |
AddForward | boolean | Add a link for forwarding the message.Defaults to false |
AddShowMessage | boolean | Add a link for viewing the message in a browser.Defaults to false |
- Square brackets in MessageContent name a field and are replaced at render time. Unmatched keys are removed.
- userSendFields values are referenced as [|[yourKey]|] and apply to this message only.
POSTAdd subscribers and send an SMS/AddUsersAndSendSMS
https://gconvertrest.sendmsg.co.il/api/Sendmsg/AddUsersAndSendSMS#
Adds or updates subscribers and sends them an SMS in a single call. This has its own path, separate from the email send.
User object, identified by email
Identifies a subscriber by email address. If both UserID and EmailAddress are supplied and populated, the result is based on the email.
| Field | Type | Description |
|---|---|---|
EmailAddressrequired | string | Subscriber email address. |
Cellphone | string | Subscriber mobile number. |
FirstName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
LastName | string | The system looks for a personal field of this name in your account. If it finds one, the value is written there. |
userSystemFields | array<KeyValuePair> | Custom account fields to store permanently against the subscriber. |
New SMS message
| Field | Type | Description |
|---|---|---|
MessageContentrequired | string | Body of the message. |
SenderPhonerequired | string | Sender number.Special characters and spaces are stripped. Words longer than 11 characters are trimmed. Letters must be English. |
MessageInnerNamerequired | string | Name of the message inside your Sendmsg account. |
MessageSubject | string | Not used for SMS.Defaults to empty |
MessageTyperequired | number | Always 1. |
TypeSmsrequired | number | 1 for a short SMS, 2 for a long SMS. |
- SenderPhone strips special characters and spaces, trims words over 11 characters, and accepts English letters only.
POSTSend an email to mailing lists/SendEmailToMailingLists
https://gconvertrest.sendmsg.co.il/api/Sendmsg/SendEmailToMailingLists#
Sends a message to every subscriber of the given mailing lists, without adding anyone.
New email message
| Field | Type | Description |
|---|---|---|
MessageContentrequired | string | Body of the message. Text in square brackets is treated as a field name and replaced at render time; unmatched keys are removed. |
MessageSubjectrequired | string | Subject line. |
MessageInnerNamerequired | string | Name of the message inside your Sendmsg account. |
SenderEmailAddress | string | From address.Defaults to comstar@sendmsg.co.il |
SenderName | string | Display name shown beside the from address.The blueprint sends this in its worked examples but never lists it in a parameter table, so its exact behaviour is undocumented. |
MessageBackColor | string | Background colour, as a hex value.Defaults to #ffffffThe blueprint labels this default both 'Black' and 'White' in different tables. The value itself is #ffffff. |
MessageDirectionrequired | number | Text direction. RTL = 1, LTR = 2. |
AddFacebook | boolean | Add a link for sharing the message to Facebook.Defaults to false |
AddForward | boolean | Add a link for forwarding the message.Defaults to false |
AddShowMessage | boolean | Add a link for viewing the message in a browser.Defaults to false |
- MalingListIDs is an array of mailing list IDs. The spelling is the API's own.
POSTSend an SMS to mailing lists/SendSmsToMailingLists
https://gconvertrest.sendmsg.co.il/api/Sendmsg/SendSmsToMailingLists#
Sends an SMS to every subscriber of the given mailing lists. Unlike the other send pairs, this has its own path rather than sharing the email one.
New SMS message
| Field | Type | Description |
|---|---|---|
MessageContentrequired | string | Body of the message. |
SenderPhonerequired | string | Sender number.Special characters and spaces are stripped. Words longer than 11 characters are trimmed. Letters must be English. |
MessageInnerNamerequired | string | Name of the message inside your Sendmsg account. |
MessageSubject | string | Not used for SMS.Defaults to empty |
MessageTyperequired | number | Always 1. |
TypeSmsrequired | number | 1 for a short SMS, 2 for a long SMS. |
POSTCreate a message/CreateMessage
https://gconvertrest.sendmsg.co.il/api/Sendmsg/CreateMessage#
Creates a message in your account without sending it, and returns its ID. Supports scheduling a future send.
New email message
| Field | Type | Description |
|---|---|---|
MessageContentrequired | string | Body of the message. Text in square brackets is treated as a field name and replaced at render time; unmatched keys are removed. |
MessageSubjectrequired | string | Subject line. |
MessageInnerNamerequired | string | Name of the message inside your Sendmsg account. |
SenderEmailAddress | string | From address.Defaults to comstar@sendmsg.co.il |
SenderName | string | Display name shown beside the from address.The blueprint sends this in its worked examples but never lists it in a parameter table, so its exact behaviour is undocumented. |
MessageBackColor | string | Background colour, as a hex value.Defaults to #ffffffThe blueprint labels this default both 'Black' and 'White' in different tables. The value itself is #ffffff. |
MessageDirectionrequired | number | Text direction. RTL = 1, LTR = 2. |
AddFacebook | boolean | Add a link for sharing the message to Facebook.Defaults to false |
AddForward | boolean | Add a link for forwarding the message.Defaults to false |
AddShowMessage | boolean | Add a link for viewing the message in a browser.Defaults to false |
- PostponeSendTime schedules the send for a future date, for example 2030-02-25. It defaults to sending now.
GETDelete a past message/DelMessage
https://gconvertrest.sendmsg.co.il/api/Sendmsg/DelMessage#
Deletes a message from your send history.
Query parameters
| Field | Type | Description |
|---|---|---|
MsgIDrequired | number | ID of the past message in your Sendmsg account. |
Fields
Read and create the custom fields you can reference in message content.
POSTList all fields/GetAllFields
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetAllFields#
Returns every field in your account as key/value pairs. Built-in fields are keyed by name; custom fields are keyed by their numeric ID.
POSTCreate a field/CreateField
https://gconvertrest.sendmsg.co.il/api/Sendmsg/CreateField#
Creates a new custom field in your account.
- FieldUserType accepts 1 (text), 2 (yes/no), 3 (dropdown), 4 (date), 7 (long text) or 8 (number).
- A dropdown field requires OptionToDDR listing its options.
Undocumented at source
- The source table places the 'OptionToDDR is required' note on the Number row rather than the Dropdown row, which contradicts the worked example beneath it. The note belongs to Dropdown.
SMS sender verification
Verify ownership of a sender number before sending from it, and check your SMS balance.
POSTRequest a verification code/VerificationOfSenderNumberBySMS
https://gconvertrest.sendmsg.co.il/api/Sendmsg/VerificationOfSenderNumberBySMS#
Sends a verification code by SMS to the sender number you want to use. Add the number in panel.sendmsg.co.il before calling this.
Undocumented at source
- The blueprint documents no response for this endpoint.
POSTConfirm a verification code/AuthenticateOfSenderNumberBySMS
https://gconvertrest.sendmsg.co.il/api/Sendmsg/AuthenticateOfSenderNumberBySMS#
Completes verification by submitting the code that was sent.
Undocumented at source
- The blueprint documents no response for this endpoint.
POSTCheck whether a number is verified/IsAllowedOfSenderNumberBySMS
https://gconvertrest.sendmsg.co.il/api/Sendmsg/IsAllowedOfSenderNumberBySMS#
Reports whether a sender number has completed verification.
Undocumented at source
- The blueprint documents no response for this endpoint.
GETCheck SMS balance/CheckingSmsBalances
https://gconvertrest.sendmsg.co.il/api/Sendmsg/CheckingSmsBalances#
Returns your remaining balance of short and long SMS messages.
- The counts arrive inside ResultMessage as text rather than as separate fields.
Reports
Message statistics and subscriber growth over time.
GETGet message statistics/GetMsgFullStatistics
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetMsgFullStatistics#
Returns the full statistics for one past message.
Query parameters
| Field | Type | Description |
|---|---|---|
messageIDrequired | number | ID of the past message in your Sendmsg account. |
Undocumented at source
- The blueprint's response body for this endpoint is empty. The response shape is undocumented at source and has not been invented here.
POSTCount subscribers by timeline/GetNumberOfJoinersToSystem
https://gconvertrest.sendmsg.co.il/api/Sendmsg/GetNumberOfJoinersToSystem#
Returns how many subscribers joined within each of the date ranges you supply. The body is an array of ranges.
- Request dates use a space separator; response dates come back in ISO form with a T.
