https://api.umes.io
Umes REST API allows you to send and receive messages through multiple channels.
Authentication is done with API KEY that you can find in your personal dashboard under section Developers->Keys
Add the header Authorization: YOUR_API_KEY to each REST request for authentication.
N.b. There are some APIs like GetMessage where you can add API_TOKEN in query params because sometimes is more simpler to have one single GET request without headers, but if possible, please use the authorization header.
curl --request GET 'https://api.umes.io/message?id=ID_HERE' \ --header 'authorization: API_TOKEN_HERE'
{- "id": "0bf389be-04bb-4dcb-b67d-ca04570b26fx",
- "type": "sms",
- "to": "+39399332233xxx",
- "from": "umes",
- "body": "hello",
- "status": "DELIVERED",
- "createdon": 1610121088573321000,
- "sms": {
- "count": 1,
- "textLenght": 5
}, - "telegram": { },
- "fax": { }
}| type required | string Enum: "sms" "telegram" "umes" Provider |
| msg required | string Message text |
| recipient required | string Message recipient |
| alias required | string [ 3 .. 14 ] characters Sender ( alphanumeric ) |
| callback | string Callback url |
| apitoken | string you can put apitoken in query params istead of putting in headers |
curl --location --request GET 'https://api.umes.io/sendmessage?type=sms&msg=TEXT_HERE&recipient=RECIPIENT_HERE&alias=ALIAS_HERE&callback=OPTIONAL_CALLBACK_HERE&apitoken=APITOKEN_HERE'
{- "uuid": "0bf389be-04bb-4dcb-b67d-ca04570b26fd",
- "to": "+39348********",
- "sender": "Umes",
- "text": "Hello",
- "createdon": 1610121088573321000,
- "type": "sms",
- "userID": "youremail@email.com",
- "state": "accepted",
- "textLenght": 5,
- "smsPartLength": 160,
- "smsCount": 1,
- "encoding": "GSM-7",
- "country": "ITALY"
}N.B. The first state of message is ACCEPTED
| msg required | string Message text |
| recipient required | string Message recipient |
| from required | string Message sender |
| type required | string Enum: "sms" "telegram" "umes" |
| reference | string Custom ID set by user |
| autodetectlang | boolean Default: false Auto detecte language |
| langcode | string Enum: "ES" "PT" "TR" Use shift tables for selected language |
| intermediatestatecallback | boolean Default: false Get callback for each state of message istead of final states ( like SENDING ) |
| callback | string Callback url ( HTTP POST will be made ) |
| callbacakcontenttype | string Enum: "json" "xml" Callback content format |
| callbackextradata | string Dati aggiuntivi ( arbitrari ) che verranno ritornati con la callback |
{- "msg": "string",
- "recipient": "string",
- "from": "string",
- "type": "sms",
- "reference": "string",
- "autodetectlang": false,
- "langcode": "ES",
- "intermediatestatecallback": false,
- "callback": "string",
- "callbacakcontenttype": "json",
- "callbackextradata": "string"
}{- "uuid": "0bf389be-04bb-4dcb-b67d-ca04570b26fd",
- "to": "+39348********",
- "sender": "Umes",
- "text": "Hello",
- "createdon": 1610121088573321000,
- "type": "sms",
- "userID": "youremail@email.com",
- "state": "accepted",
- "textLenght": 5,
- "smsPartLength": 160,
- "smsCount": 1,
- "encoding": "GSM-7",
- "country": "ITALY"
}To enable inbound messages you have to request at dev@umes.io a Virtual Mobile Number (VMN).
Other then APIs you can than configure a callback URL ( one custom URL per (VMN).
The messages will be delivered only ONE TiME
| apitoken required | string User api token |
curl --request GET 'https://api.umes.io/inbound_sms?apitoken=API_TOKEN_HERE'
[- {
- "id": "0bf389be-04bb-4dcb-b67d-ca04570b26fo",
- "createdon": 1610359395,
- "to": "+39xxxxxxxxxx",
- "from": "xxxxxxxxxx",
- "text": "hello inbound",
- "type": "SMS"
}
]🇮🇹 Italian customers in order to use use a custom alphanumeric sender ( ALIAS ) needs to register it with our APIs.
The messages will be delivered only ONE TiME
| id required | string Message id |
curl --location --request GET 'https://api.umes.io/alias?id=ALIAS_ID_HERE' \ --header 'authorization: API_KEY_HERE'
{- "id": "e2f3fd3b-89a2-4f5c-8c8a-f83cs937ab11",
- "status": "REQUESTED",
- "userID": "string",
- "requestedAt": 1649261507,
- "alias": "Umes",
- "companyName": "Umes Inc.",
- "companyCountryCode": "IT",
- "fiscalCode": "883283823232",
- "vatNumber": "883283823232",
- "pec": "tomtest@pec.com",
- "contact": {
- "name": "Tom",
- "surname": "Test",
- "address": "34 Street",
- "city": "London",
- "postalCode": "22002",
- "type": "mail",
- "info": "test@umes.io"
}
}curl --location --request GET 'https://api.umes.io/alias/all' \ --header 'authorization: API_KEY_HERE'
[- {
- "id": "e2f3fd3b-89a2-4f5c-8c8a-f83cs937ab11",
- "status": "REQUESTED",
- "userID": "string",
- "requestedAt": 1649261507,
- "alias": "Umes",
- "companyName": "Umes Inc.",
- "companyCountryCode": "IT",
- "fiscalCode": "883283823232",
- "vatNumber": "883283823232",
- "pec": "tomtest@pec.com",
- "contact": {
- "name": "Tom",
- "surname": "Test",
- "address": "34 Street",
- "city": "London",
- "postalCode": "22002",
- "type": "mail",
- "info": "test@umes.io"
}
}
]| alias | string [ 3 .. 11 ] characters alphanumeric sender |
| companyName | string company name |
| companyCountryCode | string ISO country code |
| fiscalCode | string |
| vatNumber | string |
| pec | string pec mail |
object Contact object |
{- "alias": "Umes",
- "companyName": "Umes Inc.",
- "companyCountryCode": "IT",
- "fiscalCode": "883283823232",
- "vatNumber": "883283823232",
- "pec": "tomtest@pec.com",
- "contact": {
- "name": "Tom",
- "surname": "Test",
- "address": "34 Street",
- "city": "London",
- "postalCode": "22002",
- "type": "mail",
- "info": "test@umes.io"
}
}{- "id": "e2f3fd3b-89a2-4f5c-8c8a-f83cs937ab11",
- "status": "REQUESTED",
- "userID": "string",
- "requestedAt": 1649261507,
- "alias": "Umes",
- "companyName": "Umes Inc.",
- "companyCountryCode": "IT",
- "fiscalCode": "883283823232",
- "vatNumber": "883283823232",
- "pec": "tomtest@pec.com",
- "contact": {
- "name": "Tom",
- "surname": "Test",
- "address": "34 Street",
- "city": "London",
- "postalCode": "22002",
- "type": "mail",
- "info": "test@umes.io"
}
}