import requestsheaders ={'Content-Type':'application/json','Authorization':'Bearer [API Key]',}json_data ={'url':'https://your.domain.com/endpoint',}response = requests.post('https://api.mobivatebulksms.com/webhooks/receipt', headers=headers, json=json_data)# Note: json_data will not be serialized by requests# exactly as it was in the original request.#data = '{ "url": "https://your.domain.com/endpoint" }'#response = requests.post('https://api.mobivatebulksms.com/webhooks/receipt', headers=headers, data=data)
import requestsheaders ={'Content-Type':'application/json','Authorization':'Bearer [API Key]',}json_data ={'url':'https://your.domain.com/endpoint',}response = requests.post('https://api.mobivatebulksms.com/webhooks/incoming', headers=headers, json=json_data)# Note: json_data will not be serialized by requests# exactly as it was in the original request.#data = '{ "url": "https://your.domain.com/endpoint" }'#response = requests.post('https://api.mobivatebulksms.com/webhooks/incoming', headers=headers, data=data)
import requestsheaders ={'Content-Type':'application/json','Authorization':'Bearer [API Key]',}json_data ={'url':'https://your.domain.com/endpoint',}response = requests.post('https://api.mobivatebulksms.com/webhooks/click', headers=headers, json=json_data)# Note: json_data will not be serialized by requests# exactly as it was in the original request.#data = '{ "url": "https://your.domain.com/endpoint" }'#response = requests.post('https://api.mobivatebulksms.com/webhooks/click', headers=headers, data=data)
Headers
Header
Value
Content-Type
application/json
Authorization
Bearer [API Key]
Body
Name
Type
Required?
Description
url
string
Yes
URL to receive Delivery Receipt notifications.
Response
We use conventional HTTP response codes to indicate the success or failure of an API request. In general:
2xx indicate success
4xx indicate an error that failed given the information provided (e.g., a required parameter was omitted)
5xx errors indicate an error with ours servers (these are rare).
{"message":"Webhook updated successfully"}
{"code":401,"message":"Unauthorized"}
To see a full list of our Response codes, please click here.