Skip to main content
GET
Get webhook details

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

webhook_id
string
required

The webhook ID

Required string length: 10 - 128

Response

Webhook details

A webhook configuration for a repository

id
string
required

Unique identifier for the webhook

Example:

"dv.webhook.12345678-1234-1234-1234-123456789abc"

name
string
required

User-friendly name for the webhook

Required string length: 1 - 255
Example:

"My CI/CD Webhook"

endpoint_url
string<uri>
required

The URL where webhook events will be sent

Maximum string length: 2048
Example:

"https://api.example.com/webhooks/diversion"

events
object
required

Specifies which repository events will trigger HTTP POST requests to the webhook endpoint

active
boolean
default:true
required

Whether the webhook is active or not

created_unix
integer
required

Unix timestamp when the webhook was created

Example:

1672531200

updated_unix
integer
required

Unix timestamp when the webhook was last updated

Example:

1672531200

description
string

Optional description of the webhook

Maximum string length: 1024
secret
string

The webhook secret for verifying signatures (only returned on creation)

Example:

"whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"

branches
string[]

Optional list of branch names to filter events for. If empty or not provided, events fire for all branches.

Example: