Skip to main content

Recuperar un Webhook

Endpoint

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

Consultaremos por ID cualquier webhook que esté almacenado en nuestra Base de Datos.

Encabezados

NombreValor
Content-Typeapplication/json
AuthorizationBearer <token>

Parámetros de Ruta

id

Tipo: string
Requerido:

ID del webhook del cual quieres traer la información.

Ejemplo de Solicitud

import axios from 'axios';

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

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

Ejemplo de Respuesta

{
"data": {
"_id": "66de320d6a5c6ef0e02d4223",
"client": "613375a1eab2fe08527f81e2",
"projectFlow": [],
"isActive": true,
"name": "Postman sample",
"url": "https://sandbox.verifik.co/v2/webhooks/logs",
"notification": {
"success": false,
"fail": true,
"_id": "66de320d6a5c6ef0e02d4222"
},
"updatedAt": "2024-09-08T23:23:57.678Z",
"createdAt": "2024-09-08T23:23:57.678Z",
"__v": 0
}
}