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

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

const header = await client.webhooks.headers.retrieve('webhook_id');

console.log(header.headers);
{
  "headers": {},
  "sensitive": [
    "<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 headers details retrived.

The value of the headers is returned in the headers field.

Sensitive headers that have been redacted are returned in the sensitive field.