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

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

Result Format

JSON
{
    "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
        }
    ]
}