Webhooks
List webhooks
Retrieve a list of all configured webhooks
GET
/
v1
/
webhooks
List webhooks
curl --request GET \
--url https://api.example.com/v1/webhooksimport requests
url = "https://api.example.com/v1/webhooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/webhooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"key": "uLbBzVvN7ARX",
"name": "Demo",
"url": "https://webhook.site/dc398096-ec94-4e2e-a161-7e9969168ffe",
"is_active": true,
"signature": "Sjn3sNnmh14yk6zb",
"events": [
"partner.created"
]
}
],
"links": {
"first": "https://api.partnero.com/v1/webhooks?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/webhooks",
"per_page": 10,
"to": 1
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/webhooks
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 10 | Number of results per page (10-100) |
page | integer | 1 | Page number for pagination |
Request
cURL
curl --location 'https://api.partnero.com/v1/webhooks' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": [
{
"key": "uLbBzVvN7ARX",
"name": "Demo",
"url": "https://webhook.site/dc398096-ec94-4e2e-a161-7e9969168ffe",
"is_active": true,
"signature": "Sjn3sNnmh14yk6zb",
"events": [
"partner.created"
]
}
],
"links": {
"first": "https://api.partnero.com/v1/webhooks?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/webhooks",
"per_page": 10,
"to": 1
},
"status": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | Array of webhook objects |
data[].key | string | Unique webhook identifier |
data[].name | string | Webhook name |
data[].url | string | Destination URL for events |
data[].is_active | boolean | Whether webhook is active |
data[].signature | string | Secret for verifying webhook authenticity |
data[].events | array | List of subscribed events |
⌘I
List webhooks
curl --request GET \
--url https://api.example.com/v1/webhooksimport requests
url = "https://api.example.com/v1/webhooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/webhooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"key": "uLbBzVvN7ARX",
"name": "Demo",
"url": "https://webhook.site/dc398096-ec94-4e2e-a161-7e9969168ffe",
"is_active": true,
"signature": "Sjn3sNnmh14yk6zb",
"events": [
"partner.created"
]
}
],
"links": {
"first": "https://api.partnero.com/v1/webhooks?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/webhooks",
"per_page": 10,
"to": 1
},
"status": 1
}
