Get Hook

Retrieves the details of a specific webhook using its ID.

GET /hooks/{hookId}
import { v0 } from 'v0-sdk'

const result = await v0.hooks.getById({
  hookId: '123',
})

console.log(result)

Parameters

Path Parameters

hookId string Required

The unique identifier of the hook to retrieve.


Response

Response Body

id string Required

A unique identifier for the webhook.


object string Required

Fixed value identifying this object as a webhook.


name string Required

A user-defined name to label the webhook.


events string[] Required

List of event types this webhook is subscribed to.

Array items: enum


chatId string

Optional ID of the chat that this webhook is scoped to.


url string Required

Target URL that receives event payloads for this webhook.