# Sendmsg API 4.5 > REST API for managing subscribers and mailing lists and for sending > email and SMS campaigns. All requests are JSON over HTTPS. Base URL: https://gconvertrest.sendmsg.co.il/api/Sendmsg Authentication: POST /token with siteID and password, then send the returned token as the Authorization header. Tokens last 12 hours. Full reference in one file: https://www.sendmsg.co.il/api/llms-full.txt Machine description: https://www.sendmsg.co.il/api/openapi.json ## Introduction - [API Support](https://www.sendmsg.co.il/api/#api-support) - [About SMS](https://www.sendmsg.co.il/api/#about-sms) - [Status codes](https://www.sendmsg.co.il/api/#status-codes) - [Important](https://www.sendmsg.co.il/api/#important) ## Getting started Obtain a token and confirm it works. Every other endpoint needs one. - [POST /token — Get a token](https://www.sendmsg.co.il/api/#token) - [POST /ping — Test authentication](https://www.sendmsg.co.il/api/#ping) ## Subscribers Add, update, inspect and change the status of the people you send to. - [POST /AddUsersOnly — Add or update subscribers](https://www.sendmsg.co.il/api/#add-users-only) - [GET /GetUserDetails — Get subscriber details](https://www.sendmsg.co.il/api/#get-user-details) - [POST /GetSystemUsers — List users by request type](https://www.sendmsg.co.il/api/#get-system-users) - [POST /ChangeUpdateStatus — Change a subscriber's send status](https://www.sendmsg.co.il/api/#change-update-status) ## Mailing lists Create lists, read their members, and move subscribers in and out. - [POST /CreateMalingList — Create a mailing list](https://www.sendmsg.co.il/api/#create-mailing-list) - [POST /GetMailingListNames — List all mailing lists](https://www.sendmsg.co.il/api/#get-mailing-list-names) - [GET /GetMailingListByID — Get a mailing list's subscribers](https://www.sendmsg.co.il/api/#get-mailing-list-by-id) - [POST /AddUsersToLists — Add subscribers to mailing lists](https://www.sendmsg.co.il/api/#add-users-to-lists) - [POST /TruncateMailingLists — Empty mailing lists](https://www.sendmsg.co.il/api/#truncate-mailing-lists) - [POST /RemoveFromMailingLists/ManyToMany — Remove subscribers from mailing lists](https://www.sendmsg.co.il/api/#remove-from-mailing-lists) ## 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. - [POST /AddUsersAndSend — Add subscribers and send an email](https://www.sendmsg.co.il/api/#add-users-and-send-email) - [POST /AddUsersAndSendSMS — Add subscribers and send an SMS](https://www.sendmsg.co.il/api/#add-users-and-send-sms) - [POST /SendEmailToMailingLists — Send an email to mailing lists](https://www.sendmsg.co.il/api/#send-email-to-mailing-lists) - [POST /SendSmsToMailingLists — Send an SMS to mailing lists](https://www.sendmsg.co.il/api/#send-sms-to-mailing-lists) - [POST /CreateMessage — Create a message](https://www.sendmsg.co.il/api/#create-message) - [GET /DelMessage — Delete a past message](https://www.sendmsg.co.il/api/#delete-message) ## Fields Read and create the custom fields you can reference in message content. - [POST /GetAllFields — List all fields](https://www.sendmsg.co.il/api/#get-all-fields) - [POST /CreateField — Create a field](https://www.sendmsg.co.il/api/#create-field) ## SMS sender verification Verify ownership of a sender number before sending from it, and check your SMS balance. - [POST /VerificationOfSenderNumberBySMS — Request a verification code](https://www.sendmsg.co.il/api/#verification-by-sms) - [POST /AuthenticateOfSenderNumberBySMS — Confirm a verification code](https://www.sendmsg.co.il/api/#authenticate-sender-number) - [POST /IsAllowedOfSenderNumberBySMS — Check whether a number is verified](https://www.sendmsg.co.il/api/#is-allowed-sender-number) - [GET /CheckingSmsBalances — Check SMS balance](https://www.sendmsg.co.il/api/#checking-sms-balances) ## Reports Message statistics and subscriber growth over time. - [GET /GetMsgFullStatistics — Get message statistics](https://www.sendmsg.co.il/api/#get-msg-full-statistics) - [POST /GetNumberOfJoinersToSystem — Count subscribers by timeline](https://www.sendmsg.co.il/api/#get-number-of-joiners) ## Notes - 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. ## Support Support requests are only accepted on the proper template. Template: https://gconvertrest.sendmsg.co.il/views/apisupport.html Email: send.help@comstar.co.il