Skip to main content
Webhooks provide a way for Truv to communicate to your servers when specific events happen. For example, when an account link connects successfully or new pay statements were added, you can receive notifications in realtime. To start receiving webhooks, your web application needs to expose a publicly accessible URL. Use that URL to create a webhook configuration. After creating a webhook configuration, you will receive POST requests with the event payloads that contain information about the events that have been triggered.

Attributes

AttributeTypeDescription
idstringUnique ID of webhook configuration
namestringPublic name for webhook configuration
webhook_urlstringWebhook URL to send event data
eventsstringList of events connected to webhook URL
env_typestringType of environment, sandbox, dev, or prod
created_atstringISO 8601 value for when the webhook configuration was created
updated_atstringISO 8601 value for when the webhook configuration was updated

Endpoints

Available endpoints for Webhooks are in the list below.

Example response

View the response for the Webhooks endpoints below.
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "webhook_url": "http://example.com/",
  "events": [
    "task-status-updated",
    "order-status-updated"
  ],
  "env_type": "dev",
  "created_at": "2022-05-04T11:30:00Z",
  "updated_at": "2022-05-04T12:00:00Z"
}

Webhook request history

Overview

Use the Webhook request history endpoint to review and debug webhook delivery attempts made by Truv to your configured webhook URLs. This endpoint returns a paginated list of webhook delivery attempts, including metadata such as delivery status and timestamps. It can help you:
  • Confirm that Truv attempted to send a webhook
  • Investigate failed deliveries (non-2xx responses, timeouts, etc.)
  • Correlate webhook attempts with your internal logs
  • Audit recent webhook activity
Note: Only webhook requests from the last 30 days are available.

Endpoints

Example response

View the response for the Webhook request history endpoint below.
{
  "next": null,
  "previous": null,
  "results": [
    {
      "webhook_id": "48427a36d43c4d5aa6324bc06c692456",
      "event_type": "task-status-updated",
      "event_created_at": "2024-01-15T10:30:00Z",
      "status_code": 200,
      "error_message": null,
      "webhook_payload": {
        "webhook_id": "a3f5b7c9d1e2f4a6b8c0d2e4f6a8b0c2",
        "event_type": "order-status-updated",
        "event_created_at": "2026-01-27T00:00:16.279921Z",
        "product": "assets",
        "link_id": null,
        "user_id": "b4c6d8e0f2a4b6c8d0e2f4a6b8c0d2e4",
        "order_id": "c5d7e9f1a3b5c7d9e1f3a5b7c9d1e3f5",
        "status": "expired"
      },
      "webhook_url": "https://example.com/webhooks/truv"
    }
  ]
}