GET
/
webhooks
/
{id}
const { FedaPay, Webhook } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Show webhook */
const webhook = await Webhook.retrieve( ID, params = {}, headers = {} );
[
  {
    "id": 123,
    "url": "<string>",
    "enabled": true,
    "ssl_verify": true,
    "disable_on_error": true,
    "account_id": 123,
    "http_headers": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Webhook ID

Response

200
application/json

List of webhook

The response is of type object[].