Récupérer vos webhooks

GET

/webhook

Exemples


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

Format de la réponse


{
    "status": 1,
    "message": "OK",
    "webhooks": [
        {
            "webhook_id": "66",
            "type": "DLR",
            "url": "https://mywebhook.com/dlr"
        },
        {
            "webhook_id": "67",
            "type": "MO",
            "url": "https://mywebhook.com/mo"
        }
    ]
}
          
        

<?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>
  </webhooks>
  <webhooks>
    <webhook_id>67</webhook_id>
    <type>MO</type>
    <url>https://mywebhook.com/mo</url>
  </webhooks>
</response>