Listar Todos los Webhooks
Endpoint
GET https://api.verifik.co/v2/webhooks
Con este servicio, puedes traer todos los Webhooks que has creado.
Encabezados
| Nombre | Valor |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parámetros de Consulta
page
Tipo: number
Requerido: No
Puedes definir el número de página si tienes demasiados registros.
perPage
Tipo: number
Requerido: No
Cuántos registros necesitas por página.
like_name
Tipo: string
Requerido: No
Puedes consultar una condición de tipo 'like'.
where_url
Tipo: string
Requerido: No
Puedes hacer una comparación exacta dentro de un campo.
Ejemplo de Solicitud
- Node.js
- Python
- PHP
- Go
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/webhooks',
params: {
page: 1,
perPage: 20,
like_name: 'Postman'
},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("GET", "/v2/webhooks?page=1&perPage=20&like_name=Postman", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.verifik.co/v2/webhooks?page=1&perPage=20&like_name=Postman', [
'headers' => [
'Content-Type': 'application/json',
'Authorization' => 'Bearer <your_token>',
],
]);
echo $response->getBody();
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.verifik.co/v2/webhooks?page=1&perPage=20&like_name=Postman"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer <your_token>")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Ejemplo de Respuesta
- 200 OK
{
"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
},
{
"_id": "66de30d20be3dcde0bf1defb",
"client": "613375a1eab2fe08527f81e2",
"projectFlow": [],
"isActive": true,
"name": "Postman sample",
"url": "https://sandbox.verifik.co/v2/webhooks/logs",
"notification": {
"success": false,
"fail": true,
"_id": "66de30d20be3dcde0bf1defa"
},
"updatedAt": "2024-09-08T23:18:42.142Z",
"createdAt": "2024-09-08T23:18:42.142Z",
"__v": 0
}
]
}