GET
/
webhooks
/
{webhook_id}
/
secret
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

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

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

Authorizations

Authorization
string
header
required

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

Path Parameters

webhook_id
string
required

Response

200
application/json

Webhook secret retrived.

The response is of type object.