Get Webhook
GET
/webhooks/{id} Get a webhook by ID
Path Parameters
id string required curl -X GET \
-H "x-api-key: dsk_your_api_key" \
https://api.tracore.io/webhooks/doc_abc123 import { TracoreClient } from '@tracore/sdk';
const client = new TracoreClient({ apiKey: 'dsk_your_api_key' });
const webhook = await client.webhooks.get('wh_abc123');
console.log(webhook); 200 Response
{
"id": "ws_abc123",
"environmentId": "env_abc123",
"schemaFamilyId": "sf_abc123",
"url": "https://example.com/webhook",
"events": [
"document.received"
],
"isActive": true,
"secret": "whsec_abc123...",
"createdAt": "2024-03-15T10:30:00Z",
"updatedAt": "2024-03-15T10:30:00Z"
}