View as Markdown

WebhooksList

GET/v2/whks/list
Base URL
https://us1.proctorapi.com
Available Regions10 regions
The webhook list request enables users to retrieve a summary of their active webhook subscriptions or a list of available webhooks when "?type=available" query parameter is provided.

Query Parameters

type
string
Optional parameter. Value 'available'

Responses

200application/json

Indicates success and returns a list of subscribed webhooks or list of available webhooks when ?type=available query param provided.

400application/json

Indicates bad request.

401application/json

Indicates unauthorized response.

2154 - Account not active.

2155 - Incorrect region.

2655 - Invalid api_key.

GET/v2/whks/list
curl --request GET \
  --url https://us1.proctorapi.com/v2/whks/list \
  --header 'api_key: $API_KEY'
import requests

url = "https://us1.proctorapi.com/v2/whks/list"

headers = {"api_key": "$API_KEY"}

response = requests.get(url, headers=headers)

print(response.json())
const fetch = require('node-fetch');

const url = 'https://us1.proctorapi.com/v2/whks/list';
const options = {method: 'GET', headers: {api_key: '$API_KEY'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("https://us1.proctorapi.com/v2/whks/list"),
    Headers =
    {
        { "api_key", "$API_KEY" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}