Retrieve a webhook
Returns the webhook associated with the id.
Parameters
No parameters
Returns
Returns the webhook associated with the id.
- cURL
- Node.js
- Python
GET
/webhooks/:webhook_id
curl https://production.methodfi.com/webhooks/whk_cSGjA6d9N8y8R \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
GET
/webhooks/:webhook_id
const webhook = await method.webhooks.get('whk_cSGjA6d9N8y8R');
GET
/webhooks/:webhook_id
webhook = method.webhooks.get('whk_cSGjA6d9N8y8R')
RESPONSE
{
"id": "whk_cSGjA6d9N8y8R",
"type": "payment.update",
"url": "https://api.example.app/webhook",
"auth_token": "md7UqcTSmvXCBzPORDwOkE",
"metadata": null,
"created_at": "2020-12-09T00:41:05.647Z",
"updated_at": "2020-12-09T00:41:05.647Z"
}