Skip to main content

Delete a Webhook

Endpoint​

DELETE https://api.verifik.co/v2/webhooks/{id}

To delete a specific webhook, make a DELETE request to the endpoint where {id} should be replaced with the unique identifier of the webhook you want to delete.

headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

path parameters​

id​

Type: string
Required: Yes

ID of the webhook that you want to delete.

Request Example​

import axios from 'axios';

const options = {
method: 'DELETE',
url: 'https://api.verifik.co/v2/webhooks/66df1c0ad08b9d244bd1c806',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}

Response Example​

{
"data": {
"_id": "66df1c0ad08b9d244bd1c806",
"client": "613375a1eab2fe08527f81e2",
"projectFlow": [],
"isActive": true,
"name": "Postman sample",
"url": "https://sandbox.verifik.co/v2/webhooks/logs",
"notification": {
"success": false,
"fail": true,
"_id": "66df1c0ad08b9d244bd1c805"
},
"updatedAt": "2024-09-09T16:02:18.713Z",
"createdAt": "2024-09-09T16:02:18.713Z",
"__v": 0
}
}