🔴Delete webhook
Delete a webhook from an user.
delete
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.
subscriptionIdstringRequired
Subscription ID. Obtain this from GET /webhook.
Responses
200
Subscription delete
No content
400
Bad Request
delete
/webhookNo content
curl -i -X DELETE \
'https://api.gowit.us/v1/webhook?user=INSERT_USER&key=INSERT_KEY&subscriptionId=INSERT_SUBSCRIPTIONID'const query = new URLSearchParams({
key: 'INSERT_KEY',
user: 'INSERT_USER',
subscriptionId: 'INSERT_SUBSCRIPTIONID'
}).toString();
const resp = await fetch(
`https://api.gowit.us/v1/webhook?${query}`,
{method: 'DELETE'}
);
const data = await resp.text();
console.log(data);import fetch from 'node-fetch';
async function run() {
const query = new URLSearchParams({
key: 'INSERT_KEY',
user: 'INSERT_USER',
subscriptionId: 'INSERT_SUBSCRIPTIONID'
}).toString();
const resp = await fetch(
`https://api.gowit.us/v1/webhook?${query}`,
{method: 'DELETE'}
);
const data = await resp.text();
console.log(data);
}
run();Last updated