Retrieve webhooks

This method allows you to retrieve your webhooks.

GET

/webhook

Query Parameters

start You can define the start record for pagination. Default 0
length You can define the number of records to retrieve per request. Default 100. Maximum 1000

Examples


GET /webhook HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
      
    

Result Format


{
    "status": 1,
    "message": "OK",
    "totalRecords": 2,
    "totalDisplayRecords": 2
    "webhooks": [
        {
            "webhook_id": "66",
            "type": "DLR",
            "url": "https://mywebhook.com/dlr",
            "status": "live",
            "last_http_code": 200
        },
        {
            "webhook_id": "67",
            "type": "MO",
            "url": "https://mywebhook.com/mo",
            "status": "paused",
            "last_http_code": 200
        }
    ]
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <webhooks>
    <webhook_id>66</webhook_id>
    <type>DLR</type>
    <url>https://mywebhook.com/dlr</url>
    <status>live</status>
    <last_http_code>200</last_http_code>
  </webhooks>
  <webhooks>
    <webhook_id>67</webhook_id>
    <type>MO</type>
    <url>https://mywebhook.com/mo</url>
    <status>paused</status>
    <last_http_code>200</last_http_code>
  </webhooks>
</response>