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)
GET /hooks/{hookId}
curl -X GET https://api.v0.dev/hooks/123 \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json"

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.


projectId string

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


url string Required

Target URL that receives event payloads for this webhook.