Webhooks
Get a sample payload for an event type
Returns a synthetic payload identical in shape to what real events deliver. Zapier polls this to populate field pickers without waiting for a real event to fire.
Get a sample payload for an event type
Returns a synthetic payload identical in shape to what real events deliver. Zapier polls this to populate field pickers without waiting for a real event to fire.
GET https://api.appgram.dev/api/v1/webhooks/events/{type}/sample
curl --request GET \
--url 'https://api.appgram.dev/api/v1/webhooks/events/{type}/sample' \
--header 'x-api-key: <api-key>'
Authentication: x-api-key (header)
200: OK
400: Bad Request
401: Unauthorized
403: ForbiddenAuthorizations
x-api-key (header)requiredRequest examples show the credential location. Use a server-side key with the permissions required by this operation.
Path parameters
typestringpathrequiredResponses
200OK
400Bad Request
401Unauthorized
403Forbidden
GET /api/v1/webhooks/events/{type}/sample
curl --request GET \
--url 'https://api.appgram.dev/api/v1/webhooks/events/{type}/sample' \
--header 'x-api-key: <api-key>'GET /api/v1/webhooks/events/{type}/sample
const response = await fetch("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample", {
method: "GET",
headers: {
"x-api-key": "<api-key>"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
GET /api/v1/webhooks/events/{type}/sample
import requests
response = requests.request(
"GET",
"https://api.appgram.dev/api/v1/webhooks/events/{type}/sample",
headers={"x-api-key": "<api-key>"},
timeout=30,
)
response.raise_for_status()
print(response.text)
GET /api/v1/webhooks/events/{type}/sample
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.appgram.dev/api/v1/webhooks/events/%7Btype%7D/sample"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}GET /api/v1/webhooks/events/{type}/sample
import Foundation
var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/webhooks/events/{type}/sample")!)
request.httpMethod = "GET"
request.setValue("<api-key>", forHTTPHeaderField: "x-api-key")
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
GET /api/v1/webhooks/events/{type}/sample
// Requires OkHttp 4.x.
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
fun main() {
val request = Request.Builder()
.url("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample")
.method("GET", null)
.addHeader("x-api-key", "<api-key>")
.build()
OkHttpClient().newCall(request).execute().use { response ->
println(response.body?.string())
}
}
GET /api/v1/webhooks/events/{type}/sample
// Requires package:http in pubspec.yaml.
import 'package:http/http.dart' as http;
Future<void> main() async {
final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/webhooks/events/{type}/sample"));
request.headers.addAll({
"x-api-key": "<api-key>",
});
final response = await request.send();
print(await response.stream.bytesToString());
}
GET /api/v1/webhooks/events/{type}/sample
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.appgram.dev/api/v1/webhooks/events/%7Btype%7D/sample"),
Headers =
{
{ "x-api-key", "<api-key>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}Response · 200

{
"data": {
"data": {},
"event": "string",
"id": "string",
"metadata": {
"organization_id": "string",
"project_id": "string",
"triggered_by": "string"
},
"timestamp": "1970-01-01T00:00:00.000Z"
},
"success": true
}