# Partner CAD webhooks

> HMAC-signed webhook ingress for Adam and similar partners. Configure FOUR_ECHELON_PARTNER_WEBHOOK_SECRET and point the partner product at /api/v1/cad/partner-webhook.

Source: https://fourechelon.com/docs/partner-cad-webhooks · Machine-readable: https://fourechelon.com/openapi.json · Index: https://fourechelon.com/llms.txt

## Signed webhook

```bash
BODY='{"partner":"adam","document_id":"doc_123","feature_tree":[{"id":"sketch-1","feature_type":"sketch"}]}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$FOUR_ECHELON_PARTNER_WEBHOOK_SECRET" | awk '{print $2}')
curl https://fourechelon.com/api/v1/cad/partner-webhook \
  -H "Content-Type: application/json" \
  -H "X-Four-Echelon-Signature: $SIG" \
  -d "$BODY"
```
