Sign in

Create a Sending Domain

documented

Create a new sending domain.

POST /api/v1/sending-domainsSendingno 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/sending-domains" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: {{SPARKPOST_API_KEY}}" \
  -d '{"domain": "{{$domain}}", "tracking_domain": "{{$tracking_domain}}", "dkim": {"generate_dkim": {{$generate_dkim}}, "dkim_key_length": {{$dkim_key_length}}}, "shared_with_subaccounts": {{$shared_with_subaccounts}}}'