Récupérer un webhook

Cette méthode permet de récupérer un webhook spécifique.

GET

/webhook/:id

Paramètres de requête

id
requis
L'id du webhook

Exemples


GET /webhook/66 HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json
      
    

Format de la réponse


{
    "status": 1,
    "message": "OK",
    "webhook": {
        "webhook_id": "66",
        "type": "DLR",
        "url": "https://mywebhook.com/dlr",
        "status": "live",
        "signature" : "123Mysignature",
        "last_http_code": 200
    }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>1</status>
  <message>OK</message>
  <webhook>
    <webhook_id>66</webhook_id>
    <type>DLR</type>
    <url>https://mywebhook.com/dlr</url>
    <status>live</status>
    <signature>123Mysignature</signature>
    <last_http_code>200</last_http_code>
  </webhook>
</response>