Troubleshooting and Logs

The system allows for Webhooks inspection in order to monitor and troubleshoot Webhook execution.

Webhook Logs are visible in the TMS Control Panel, where it is possible to

  • view the configured Webhooks
  • for each Webhook, view each triggered event
  • for each event, view the generated payload and the response from the server
  • retrigger specific events

Webhooks that fail due to a non-200 response status code from the remote end are retriggered a few times.

The pages in our control panel retrieve the Webhook details and their logs by executing GraphQL queries like the below example, which fetches the first page of logs for the specified webhook after the provided date:

Example

query {
  webhookLogs(filters:[
    {field: webhookId, operation: eq, value: "T3V0Ym91bmRIb29rOjYy"}
    {field: requestedAt, operation: ge, value: "2023-05-01"}
  ]){
    pageInfo{
      totalRecords
      hasNextPage
    }
    edges{
      node{
        id
        webhook{
          name
          filterExpression
        }
        triggeredAt
        objectId
        status
        matchesFilter
        payload
        success
        response
        error
        triggeredAt
      }
    }
  }
}

For more details about the filtering options available, see our WebhookLogField API reference