Webhook
This is a simple webhook service that logs all incoming requests.
To make a request, use the following base URL:
This URL contains your unique ID, which is f02856ab-c758-4d09-8e39-8618a059191c. You can use this URL to make requests to the webhook service.
You can construct any url and use any HTTP method, for example:
POST https://webhook.navferty.com/f02856ab-c758-4d09-8e39-8618a059191c/any/path/you/want
Below are sample scripts for curl, PowerShell and C# to make a request to the webhook service:
Sample Scripts
cURL
curl -X POST "https://webhook.navferty.com/f02856ab-c758-4d09-8e39-8618a059191c/example" \
-H "Content-Type: application/json" \
-d '{"key":"value"}'
PowerShell
$tenantId = "f02856ab-c758-4d09-8e39-8618a059191c"
$url = "https://webhook.navferty.com/$tenantId/example"
$body = @{
key = "value"
} | ConvertTo-Json
Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType "application/json"
C#
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var tenantId = "f02856ab-c758-4d09-8e39-8618a059191c";
var url = $"https://webhook.navferty.com/{tenantId}/example";
var content = new StringContent("{\"key\":\"value\"}", Encoding.UTF8, "application/json");
using (var client = new HttpClient())
{
var response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
}
}
The service will log the request, including the path, method, query string, headers, and body. You can view the recent requests below. Keep the Id f02856ab-c758-4d09-8e39-8618a059191c to view your requests.
You can also configure responses for specific paths, which will return pre-defined responses when the webhook is triggered. Response can be configured to return JSON, plain text, or HTML content. Configure Responses
Recent Web Requests
No requests recorded yet.