Last updated 2 years ago
curl --location 'https://dev.underdogprotocol.com/v2/webhooks' \ --header 'Authorization: Bearer {token}'
const axios = require('axios'); let config = { method: 'get', maxBodyLength: Infinity, url: 'https://dev.underdogprotocol.com/v2/webhooks', headers: { 'Authorization': 'Bearer {token}' } }; axios(config) .then((response) => { console.log(JSON.stringify(response.data)); }) .catch((error) => { console.log(error); });
{ "results": [ { "id": "bb103366-7555-4a62-9270-a46990582020", "url": "https:/google.com", "walletAddress": "EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDp", "valid": true, "createdAt": "2023-02-16T02:53:40.457843+00:00", "updatedAt": "2023-02-16T02:53:40.457843+00:00", "triggers": [] } ], "page": 1, "limit": 10, "totalPages": 1, "totalResults": 1 }
This endpoint allows you to retrieve a paginated list of all your Webhooks. By default, a maximum of ten Webhooks are shown per page.
/v2/webhooks
curl -L \ --url 'https://api.underdogprotocol.com/v2/webhooks' \ --header 'Authorization: Bearer JWT'
{ "page": 1, "limit": 10, "totalPages": 1, "totalResults": 1, "results": [ { "id": "text", "url": "text", "walletAddress": "text" } ] }