View Webhook
π View Webhooks
See all your webhooks or the details of a specific webhook by its ID.
Endpoint
GET https://api.tor.app/developer/integrations/webhooks
Query Parameters
- webhookType (string, optional): The ID of the webhook to view (e.g.,
wh 2025-05-02 12:34:56
). Omit to view all webhooks.
Responses
200 OK (All Webhooks)
{
"webhooks": [
{
"HashedId": "your-api-key",
"webhookType": "wh 2025-05-02 12:34:56",
"url": "https://your-site.com/webhook",
"exportFormat": "Txt",
"includeTimestamps": true,
"includeSpeakerNames": true,
"mergeSameSpeakerSegments": false,
"isSingleParagraph": false,
"paragraphSize": 2,
"folderId": "folder123"
}
]
}
200 OK (Specific Webhook)
{
"HashedId": "your-api-key",
"webhookType": "wh 2025-05-02 12:34:56",
"url": "https://your-site.com/webhook",
"exportFormat": "Txt",
"includeTimestamps": true,
"includeSpeakerNames": true,
"mergeSameSpeakerSegments": false,
"isSingleParagraph": false,
"paragraphSize": 2,
"folderId": "folder123"
}
404 Not Found
"Webhook not found."
500 Internal Server Error
"Failed to retrieve webhook."
Notes
- Omit
webhookType
to see all webhooks. - An empty
webhooks
array means no webhooks exist.
import requests
api_key = "YOUR_API_KEY"
url = "https://api.tor.app/developer/integrations/webhooks"
headers = {
"Authorization": f"Bearer {api_key}"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
const axios = require('axios');
const api_key = "YOUR_API_KEY";
const url = "https://api.tor.app/developer/integrations/webhooks";
const headers = {
"Authorization": `Bearer ${api_key}`
};
axios.get(url, { headers })
.then(response => {
console.log(response.status);
console.log(response.data);
})
.catch(error => {
console.error(error.response ? error.response.data : error.message);
});
import okhttp3.*;
public class ViewWebhooks {
public static void main(String[] args) throws Exception {
String api_key = "YOUR_API_KEY";
String url = "https://api.tor.app/developer/integrations/webhooks";
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url(url)
.addHeader("Authorization", "Bearer " + api_key)
.get()
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.code());
System.out.println(response.body().string());
}
}
}
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program {
static async Task Main(string[] args) {
string api_key = "YOUR_API_KEY";
string url = "https://api.tor.app/developer/integrations/webhooks";
using HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", $"Bearer {api_key}");
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine((int)response.StatusCode);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
api_key := "YOUR_API_KEY"
url := "https://api.tor.app/developer/integrations/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Authorization", "Bearer "+api_key)
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
fmt.Println("Status Code:", resp.StatusCode)
body, _ := ioutil.ReadAll(resp.Body)
var result map[string]interface{}
json.Unmarshal(body, &result)
fmt.Println(result)
}
require 'net/http'
require 'json'
require 'uri'
api_key = "YOUR_API_KEY"
url = URI("https://api.tor.app/developer/integrations/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer #{api_key}"
response = http.request(request)
puts response.code
puts response.body
<?php
$api_key = "YOUR_API_KEY";
$url = "https://api.tor.app/developer/integrations/webhooks";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $api_key"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "Status Code: $status_code\n";
echo $response;
?>
import okhttp3.*
fun main() {
val api_key = "YOUR_API_KEY"
val url = "https://api.tor.app/developer/integrations/webhooks"
val client = OkHttpClient()
val request = Request.Builder()
.url(url)
.addHeader("Authorization", "Bearer $api_key")
.get()
.build()
client.newCall(request).execute().use { response ->
println("Status Code: ${response.code}")
println(response.body?.string())
}
}
import Foundation
let api_key = "YOUR_API_KEY"
let url = URL(string: "https://api.tor.app/developer/integrations/webhooks")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.addValue("Bearer \(api_key)", forHTTPHeaderField: "Authorization")
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error.localizedDescription)")
return
}
if let httpResponse = response as? HTTPURLResponse {
print("Status Code: \(httpResponse.statusCode)")
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
import 'dart:convert';
import 'dart:io';
void main() async {
final api_key = "YOUR_API_KEY";
final url = Uri.parse("https://api.tor.app/developer/integrations/webhooks");
final client = HttpClient();
try {
final request = await client.getUrl(url);
request.headers.set("Authorization", "Bearer $api_key");
final response = await request.close();
final responseBody = await response.transform(utf8.decoder).join();
print("Status Code: ${response.statusCode}");
print(responseBody);
} catch (e) {
print("Error: $e");
} finally {
client.close();
}
}
Updated about 12 hours ago