List All Webhooks
Endpointβ
GET https://api.verifik.co/v2/webhooks
With this service, you can bring all Webhooks that you have created.
headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
query parametersβ
pageβ
Type: number
Required: No
You can define the page number if you have too many records.
perPageβ
Type: number
Required: No
How many records you need per page.
like_nameβ
Type: string
Required: No
You can query a 'like' condition.
where_urlβ
Type: string
Required: No
You can do an exact comparison inside a field.
Request Exampleβ
- 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))
}
Response Exampleβ
- 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
}
]
}