Skip to main content
GET
Get Webhook Delivery Logs

Get Webhook Delivery Logs

GET https://api.baanx.com/v1/webhooks/{id}/logs Retrieves delivery logs for a specific webhook endpoint.

Overview

Returns recent delivery attempts for a webhook endpoint, including HTTP status codes, response bodies, error messages, and response times. Useful for monitoring delivery health and debugging failures.
Log retention: Delivery logs are kept for 7 days. Both successful and failed delivery attempts are included.

Authentication

This endpoint requires authentication via Bearer token:

Request

Headers

string
required
Bearer token for authentication

Path Parameters

string (UUID)
required
Unique identifier of the webhook configuration

Query Parameters

integer
default:50
Maximum number of log entries to return. Range: 1–100.

Request Example

Response

200 Success

integer
Number of log entries returned
array
Array of delivery log entries
string (UUID)
Unique identifier for this log entry
string (UUID)
ID of the event that triggered this delivery
string (UUID)
ID of the webhook endpoint
integer
Delivery attempt number (1–6)
string
The URL the webhook was delivered to
object
HTTP headers sent with the delivery, including X-Timestamp and X-Signature
object
The webhook payload that was sent
integer | null
HTTP status code returned by your endpoint (null if the request failed to connect)
string | null
Response body returned by your endpoint
string | null
Error message if delivery failed (e.g., connection timeout)
string
Delivery status: pending, processing, success, or failed
integer | null
Response time in milliseconds (null if no response received)
string (ISO 8601)
Timestamp of this delivery attempt
string (ISO 8601) | null
Scheduled time for next retry attempt, if applicable

Error Responses

  • GET /v1/webhooks/events - List all events
  • POST /v1/webhooks/events/{eventId}/retry - Retry a failed event delivery
  • GET /v1/webhooks/events/{eventId}/logs - View logs for a specific event