Webhooks Get call history for a webhook event
Get call history for a webhook event
Lists every delivery attempt for one record, newest first, with the status code, time taken and any connection error. The list includes successful deliveries and attempts that failed before Gravv made the call, such as a missing or unsafe URL. For those, `error_message` reads `Not sent: Gravv could not prepare this delivery. It is retried automatically.`
Api-Key
Path parameters
NameDescription
idThe delivery record
id from the history list. It is not the event_id in the delivered body.Response
Returns 200 OK. The attempts
NameDescription
dataShow 1 child attributesobject
callsShow 11 child attributesobject[]
idAttempt ID
attempt_numberAttempt number, starting at 1
request_urlFull URL called
response_statusYour status code. Null when no response came back.
request_methodstatusResult of the attempt. Older records can say sent for a successful attempt.
Possible values: success, failed, sent
response_headersYour endpoint's response headers
response_bodyYour endpoint's response body
response_time_msTime to the response, in milliseconds
created_aterror_messageThe connection error, when there was one
errorErrors
| Status | Meaning |
|---|---|
| 200 | The attempts |
| 400 | The request failed. An unknown ID returns event not found or not owned by tenant. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/webhooks/calls/0b3c2f4e-7c1a-4e0e-9a51-2f7d1c9e8a10");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"calls": [
{
"id": "71c2e0a4-5b3d-4f6e-8a9b-0c1d2e3f4a5b",
"attempt_number": 2,
"request_url": "https://merchant.example.com/hooks/gravv",
"response_status": 200,
"status": "success",
"response_time_ms": 184,
"created_at": "2026-10-13T09:11:15.330127Z",
"error_message": null
},
{
"id": "2a9f8e7d-6c5b-4a3f-9e8d-7c6b5a4f3e2d",
"attempt_number": 1,
"request_url": "https://merchant.example.com/hooks/gravv",
"response_status": 500,
"status": "failed",
"response_time_ms": 92,
"created_at": "2026-10-13T09:10:45.017733Z",
"error_message": null
}
]
},
"error": null
}
{
"data": null,
"error": "event not found or not owned by tenant"
}