🔵Retrieve user webhooks
Retrieve a list of the webhooks configured for an user.
get
Authorizations
keystringRequired
Query parameters
keystringRequired
The API key is a unique identifier provided by our support team for accessing the API.
userstringRequired
The 'user' parameter is a unique identifier provided by the API support team to identify authorized users in the requests.
Responses
200
{
"data": [
{
"id": "PKzHHvYGCrmjS31DJA",
"name": "Webhook name",
"url": "https://webhook.url.com/"
}
]
}
No content
400
INVALID_ARGUMENT: {message}
get
/webhookNo content
curl -i -X GET \
'https://api.gowit.us/v1/webhook?user=INSERT_USER&key=INSERT_KEY'const query = new URLSearchParams({
user: 'INSERT_USER',
key: 'INSERT_KEY'
}).toString();
const resp = await fetch(
`https://api.gowit.us/v1/webhook?${query}`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);import fetch from 'node-fetch';
async function run() {
const query = new URLSearchParams({
user: 'INSERT_USER',
key: 'INSERT_KEY'
}).toString();
const resp = await fetch(
`https://api.gowit.us/v1/webhook?${query}`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);
}
run();Last updated