List Webhook Accounts
curl --request GET \
--url https://api.linkupapi.com/v1/webhooks/accounts \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.linkupapi.com/v1/webhooks/accounts"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.linkupapi.com/v1/webhooks/accounts', 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.linkupapi.com/v1/webhooks/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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.linkupapi.com/v1/webhooks/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
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.linkupapi.com/v1/webhooks/accounts")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v1/webhooks/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"accounts": [
{
"id": "60f7b3b3e4b0c8a2d8e9f1a2",
"platform": "linkedin",
"account_name": "My LinkedIn Account",
"login_token": "AQEDARCvKg...",
"country": "FR",
"webhook_url": "https://your-webhook.com/linkedin",
"is_active": true,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
{
"id": "507f1f77bcf86cd799439011",
"platform": "whatsapp",
"account_name": "My WhatsApp",
"phone_number": "+33612345678",
"webhook_url": "https://your-webhook.com/whatsapp",
"is_active": true,
"is_authenticated": true,
"needs_qr": false,
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z"
}
],
"total": 2
}
Webhook (Real Time)
List Webhook Accounts
Retrieve all registered webhook accounts
GET
/
v1
/
webhooks
/
accounts
List Webhook Accounts
curl --request GET \
--url https://api.linkupapi.com/v1/webhooks/accounts \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.linkupapi.com/v1/webhooks/accounts"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.linkupapi.com/v1/webhooks/accounts', 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.linkupapi.com/v1/webhooks/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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.linkupapi.com/v1/webhooks/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
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.linkupapi.com/v1/webhooks/accounts")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v1/webhooks/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"accounts": [
{
"id": "60f7b3b3e4b0c8a2d8e9f1a2",
"platform": "linkedin",
"account_name": "My LinkedIn Account",
"login_token": "AQEDARCvKg...",
"country": "FR",
"webhook_url": "https://your-webhook.com/linkedin",
"is_active": true,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
{
"id": "507f1f77bcf86cd799439011",
"platform": "whatsapp",
"account_name": "My WhatsApp",
"phone_number": "+33612345678",
"webhook_url": "https://your-webhook.com/whatsapp",
"is_active": true,
"is_authenticated": true,
"needs_qr": false,
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z"
}
],
"total": 2
}
Get a list of all LinkedIn and WhatsApp accounts registered for webhook monitoring under your API key.
Header Parameters
Response
Show Account Object
Show Account Object
{
"accounts": [
{
"id": "60f7b3b3e4b0c8a2d8e9f1a2",
"platform": "linkedin",
"account_name": "My LinkedIn Account",
"login_token": "AQEDARCvKg...",
"country": "FR",
"webhook_url": "https://your-webhook.com/linkedin",
"is_active": true,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
{
"id": "507f1f77bcf86cd799439011",
"platform": "whatsapp",
"account_name": "My WhatsApp",
"phone_number": "+33612345678",
"webhook_url": "https://your-webhook.com/whatsapp",
"is_active": true,
"is_authenticated": true,
"needs_qr": false,
"created_at": "2024-01-02T00:00:00Z",
"updated_at": "2024-01-02T00:00:00Z"
}
],
"total": 2
}
Notes
- Returns all accounts associated with your API key
- Use the
is_activefield to identify which accounts are currently being monitored - Account tokens are included in the response for reference
Was this page helpful?