Webhooks
Delete webhook
Get Started
SDKs
API Reference
- Accounts
- Numbers
- Faxes
- Files
- Outbox
- Webhooks
- Shop
Webhooks
Delete webhook
Delete a webhook by its ID. (Permitted scopes: fax:all:edit, fax:webhook:edit)
DELETE
/
hooks
/
{hook_id}
const axios = require('axios');
const WebhooksApiFp = require('@alohi/faxplus-api').WebhooksApiFp;
const Configuration = require('@alohi/faxplus-api').Configuration;
const config = new Configuration({
accessToken: accessToken,
basePath: 'https://restapi.fax.plus/v3',
// Header required only when using the OAuth2 token scheme
baseOptions: {
headers: {
"x-fax-clientid": clientId,
}
}
});
async function deleteWebhook() {
const reqParams = {
"hookId": '4d5331f94a00460d811c2f2ac64ae20b'
}
const req = await WebhooksApiFp(config).deleteWebhook(reqParams);
const resp = await req(axios);
}
deleteWebhook()
This response does not have an example.
const axios = require('axios');
const WebhooksApiFp = require('@alohi/faxplus-api').WebhooksApiFp;
const Configuration = require('@alohi/faxplus-api').Configuration;
const config = new Configuration({
accessToken: accessToken,
basePath: 'https://restapi.fax.plus/v3',
// Header required only when using the OAuth2 token scheme
baseOptions: {
headers: {
"x-fax-clientid": clientId,
}
}
});
async function deleteWebhook() {
const reqParams = {
"hookId": '4d5331f94a00460d811c2f2ac64ae20b'
}
const req = await WebhooksApiFp(config).deleteWebhook(reqParams);
const resp = await req(axios);
}
deleteWebhook()
Authorizations
OAuth2 Authorization Grant
Path Parameters
ID of the webhook to delete
Response
200
_mintlify/placeholder
Webhook was successfully deleted
const axios = require('axios');
const WebhooksApiFp = require('@alohi/faxplus-api').WebhooksApiFp;
const Configuration = require('@alohi/faxplus-api').Configuration;
const config = new Configuration({
accessToken: accessToken,
basePath: 'https://restapi.fax.plus/v3',
// Header required only when using the OAuth2 token scheme
baseOptions: {
headers: {
"x-fax-clientid": clientId,
}
}
});
async function deleteWebhook() {
const reqParams = {
"hookId": '4d5331f94a00460d811c2f2ac64ae20b'
}
const req = await WebhooksApiFp(config).deleteWebhook(reqParams);
const resp = await req(axios);
}
deleteWebhook()
This response does not have an example.