Sign in

Create a Relay Webhook

documented

Create a relay webhook to forward inbound messages.

POST /api/v1/relay-webhooksReceivingno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.sparkpost.com/api/v1/relay-webhooks" \
  -X POST \
  -H "Authorization: {{SPARKPOST_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "name": "{{$name}}", "target": "{{$target}}", "match": {"domain": "{{$domain}}"}, "auth_type": "{{$auth_type}}", "auth_token": "{{$auth_token}}", "custom_headers": {"{{$header_name}}": "{{$header_value}}"} }'