Update a webhook status
PUT
/webhook/:id/status
Query Parameters
id
required
|
The webhook id |
Body Parameters
status
required
|
The webhook status live or paused |
Examples
PUT /webhook/66 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"webhook":{
"status": "live"
}
}
PUT /webhook/66 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<webhook>
<status>live</status>
</webhook>
Result Format
{
"status": 1,
"message": "OK",
"webhook": {
"webhook_id": "66",
"status": "live",
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<webhook>
<webhook_id>66</webhook_id>
<status>live</status>
</webhook>
</response>
Our servers IP addresses
You might have to authorize some IPs to your firewall in order to allow incoming requests from us. Here's the list of our servers IP addresses:
- 163.172.210.135
- 163.172.210.137
- 51.159.7.123
- 51.159.21.54