The ASPSMS WebAPI (https://webapi.aspsms.com) is the current, actively maintained interface for sending and managing SMS.
Authentication is done with Userkey and Password as query parameters. Responses are JSON (or plain text where noted).
Full interactive documentation (Swagger) is available at the base URL.
Submit text messages immediately or with deferred delivery, estimate costs, check credentials and cancel pending messages.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /CheckUserCredentials | Validate Userkey / Password |
| GET | /ASPSMSCredits | Current credit balance |
| POST | /ASPSMSEstimateCreditConsumption | Estimate credits for a list of MSISDNs (optional multiplicity, e.g. "0041791111111,5") |
| GET | /SendSimpleSMS | Send one SMS with basic query parameters (Operation=SendTextSMS required) |
| POST | /ASPSMSSendSMS | Advanced send (JSON body SMSData): multiple recipients, TRN, deferred time, webhooks, flashing SMS, etc. |
| POST | /ASPSMSDeactivatePendingSMSWithMSISDN | Cancel submitted but not yet sent SMS by phone number |
| POST | /ASPSMSDeactivatePendingSMSWithTransactionReferenceNumber | Cancel pending SMS by TransactionReferenceNumber |
Typical use cases
DeferredDeliveryTime) and validity period (LifeTime)
When sending via ASPSMSSendSMS you can set three URL properties. ASPSMS then calls your server exclusively via HTTP GET when the status of a message changes.
Placeholders in the URL are replaced automatically.
Properties on SMSData:
URLBufferedMessageNotification,
URLDeliveryNotification,
URLNonDeliveryNotification
Placeholders: <SCTS>, <DSCTS>, <RSN>, <DST>, <TRN>, <RCPNT>, <CREDITS>
(URL length max. 200 characters)
| DST | Meaning |
|---|---|
| -1 | Not yet submitted or rejected |
| 0 | Delivered |
| 1 | Buffered |
| 2 | Not Delivered |
After status 1 (Buffered) you almost always receive a second call with status 0 or 2. Reason codes (RSN) explain why a message was buffered or failed (e.g. 000 Unknown Subscriber, 103 Call Barred, 107 Absent Subscriber, 108 Delivery Fail).
Typical use cases
Query outbound send logs, daily traffic aggregates and the inbound SMS inbox. Optionally configure a receive URL for push of incoming messages.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /TrafficStat01/Get | Daily outbound counts (and optional credit sum) – useful for navigation / calendars |
| GET | /SendingStat01/Get | Detailed send log by year / month / day (max. 50 000 records) |
| GET | /SendingStat02/Get | Send log for one specific MSISDN |
| GET | /SendingStat03/Get | Send log by TransactionReferenceNumber |
| GET | /SendingStat04/Get | Send log by JobID |
| GET | /ReceivingStat01/Get | Inbox detail (filters: year, month, day, MSISDN, originator, max records) |
| GET | /ReceivingStat02/Get | Daily inbound counts |
| GET | /ReceiveURL/Get | Read configured URL for incoming SMS |
| GET | /ReceiveURL/Set | Set URL that is called when an SMS is received |
| GET | /ReceiveURL/Delete | Remove the receive URL |
Typical use cases
Aggregated delivery quality per MSISDN and management of an ignore list (messages to listed numbers are not processed).
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /MSISDNDLRStat/Get | Per-MSISDN stats: success / failure counters, last dates, current DST |
| GET | /IgnoreList/Get | Read the ignore list |
| POST | /MSISDNDLRStatIgnoreListAdd/Post | Add one or more MSISDNs to the ignore list |
| POST | /MSISDNDLRStatIgnoreListRemove/Post | Remove MSISDNs from the ignore list |
Typical use cases
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /PhoneNumbers/Read | Read phonebook (optional filter by MSISDN) |
| POST | /PhoneNumbers/Add | Add entries |
| POST | /PhoneNumbers/Update | Update existing entries |
| POST | /PhoneNumbers/Upsert | Insert or update |
| POST | /PhoneNumbers/UpsertEx | Upsert and assign to groups in one step |
| POST | /PhoneNumbers/Delete | Delete by IDs |
Each contact supports LastName, FirstName, MSISDN and VariableData01–14 for custom fields.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /Groups/Get | List groups |
| POST | /Groups/Upsert | Create or update groups |
| POST | /Groups/Delete | Delete groups |
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /GroupRelationsAll/Get | All memberships |
| GET | /GroupRelationsPhoneNumber/Get | Memberships for one MSISDN |
| POST | /GroupRelations/AddNewGroupRelations | Add memberships |
| POST | /GroupRelations/Update | Update memberships |
| POST | /GroupRelations/Delete | Delete specific relations |
| POST | /GroupRelations/DeleteWithPhoneBookID | Remove all relations of one phonebook entry |
Typical use cases
Jobs document sending actions. You can attach free-text, memo, integer, float and date remarks (JobRemarksText01–10, Memo01–03, Int01–03, Float01–03, Date01–03).
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /Jobs/Get | List all jobs |
| POST | /Jobs/Upsert | Create or update jobs |
| POST | /Jobs/Delete | Delete jobs |
When sending via ASPSMSSendSMS you can pass a JobID; later you can retrieve all messages of that job with /SendingStat04/Get.
Typical use cases
Store reusable originator + message text pairs.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /Templates/Get | List templates |
| POST | /Templates/Upsert | Create or update templates |
| POST | /Templates/Delete | Delete templates |
Typical use cases
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /Operators/Get | List of operators (networks) with country and price-list status |
| GET | /Originators/Get | List registered originators / sender IDs |
| GET | /Originators/CheckAuthorization | Check if an originator is authorised |
| GET | /Originators/SendUnlockCode | Send unlock code for a new originator |
| GET | /Originators/UnlockOriginator | Unlock an originator with the code |
| GET | /Originators/Delete | Remove an originator |
| GET | /MostRecentlyUsedNumbers/Get | Recently used numbers (convenience) |
| GET | /UserSetting/Get / /UserSetting/Set | Read / write account settings |
| GET | /SupportedFunctions/Get | Which functions are enabled for the account |
Typical use cases
Ready-to-run examples covering sending, webhooks, statistics, phonebook, jobs and templates:
Language overview: /en/examples/webapi/