Webhooks API

2 endpoints in this group.

POST /api/webhooks/sendgrid/events

Sendgrid Events

Receive a SendGrid Event Webhook batch.

Verifies the ECDSA signature when SENDGRID_WEBHOOK_PUBLIC_KEY is configured, then inserts each event into email_events (idempotent on sg_event_id).

Parameters

NameInTypeRequiredDescription
x-twilio-email-event-webhook-signatureheaderstringoptional
x-twilio-email-event-webhook-timestampheaderstringoptional

Responses

CodeDescription
200Successful Response
422Validation Error

POST /api/webhooks/snaptrade

Snaptrade Webhook

Receive a SnapTrade webhook event.

Returns shape:

  • 200 {"received": true, "duplicate": <bool>, "dispatched": <status|None>}
  • 401 invalid signature
  • 400 invalid JSON / missing required field
  • 503 receiver misconfigured (secret unset)

The 200 envelope intentionally surfaces duplicate so operators debugging mis-deliveries can see at a glance whether SnapTrade is retrying.

Parameters

NameInTypeRequiredDescription
x-snaptrade-signatureheaderstringoptional

Responses

CodeDescription
200Successful Response
422Validation Error

Occasional BlitzPulse product updates and offers, sent only if you tick the box and confirm your address.

How we handle your email

Footer Disclaimer BlitzPulse is educational decision support only. Not investment, tax, or legal advice. Not a broker. Trade at your own risk.