Chuyển đến nội dung chính
GET
/
webhooks
/
{webhook_id}
/
secret
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const response = await client.webhooks.retrieveSecret('whk_YdWqVEGKmSYKbsIyDxEab');

console.log(response.secret);
{
  "secret": "<string>"
}

Ủy quyền

Authorization
string
header
bắt buộc

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Tham số đường dẫn

webhook_id
string
bắt buộc

Webhook ID

Phản hồi

Webhook secret retrived.

secret
string
bắt buộc
Lần sửa đổi cuối 1 tháng 4, 2026