Retrieve a Webhook
Retrieve a Webhook resource by ID.
Retrieving webhooks
As of this writing, you can retrieve webhooks via API. In future releases, we will allow you to view a webhook via Dashboard.
Endpoint
GET /webhooks/:id
Sample code
- curl
- Node
- PHP
- Python
- Ruby
curl --location 'https://api.payrexhq.com/webhooks/<ID of a webhook resource>' \
-u replace_with_secret_api_key:
const client = require('payrex-node')('insert your PayRex Secret API key.');
const webhook = await client.webhooks.retrieve('<ID of a webhook resource>');
$client = new \Payrex\PayrexClient('insert your PayRex Secret API key.');
$webhook = $client->webhooks->retrieve('<ID of a webhook resource>');
from payrex import Client as PayrexClient
client = PayrexClient('insert your PayRex Secret API key.')
webhook = client.webhooks.retrieve('<ID of a webhook resource>')
client = Payrex::Client.new("insert your PayRex Secret API key.")
webhook = client.webhook.retrieve("<ID of a webhook resource>")
Returns
Returns a Webhook resource.