SMS API
Explore the Ebbot SMS API.
Using the SMS API
To use the Message REST API you need an account. Please get in touch with the Ebbot team if you don't have access to an account. Send us an email helpme@ebbot.ai to request an account.
Base URL for SMS API
The base URL for Ebbot's SMS API is https://api.ebbot.ai/sms/v1
Authentication
Each request should include auth header with the key x-api-key followed by your private token
Auth header:
POST /sms/v1 HTTP/1.1
Host: api.ebbot.ai
x-api-key: your_api_key
Content-Type: application/json401 Unauthorized: Will be returned if your credentials are wrong or you have insufficient privileges.
Send message
Example on how to send a message using the SMS API:
curl --location 'https://api.ebbot.ai/sms/v1' \
--header 'x-api-key: your_api_key' \
--header 'Content-Type: application/json' \
--data '{"from": "The Company", "to": "+1234567", "text": "This is a message!"}'import requests
import json
url = "https://api.ebbot.ai/sms/v1"
payload = json.dumps({
"from": "The Company",
"to": "+1234567",
"text": "This is a message!"
})
headers = {
'x-api-key': 'your_api_key',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)This endpoint allows you to get free cake
Body parameters:
from
string
The senders name or number.
to
string
The recipients phone number. in E.164 format. Example: "+46731234567"
text
string
The text message to be sent.
Headers:
x-api-key
string
API key provided by Ebbot.
Example response:
Last updated
Was this helpful?

