Sign in

Create domain

documented

Create a new sending domain.

POST /v4/domainsDomainsno 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.mailgun.net/v4/domains" \
  -X POST \
  -u "api:{{MAILGUN_API_KEY}}" \
  -H "Accept: application/json" \
  -H "Content-Type: multipart/form-data" \
  -F name="{{$domain_name}}" \
  -F archive_to="{{$archive_to}}" \
  -F dkim_host_name="{{$dkim_host_name}}" \
  -F dkim_key_size="{{$dkim_key_size}}" \
  -F dkim_selector="{{$dkim_selector}}" \
  -F encrypt_incoming_message="{{$encrypt_incoming_message}}" \
  -F force_dkim_authority="{{$force_dkim_authority}}" \
  -F force_root_dkim_host="{{$force_root_dkim_host}}" \
  -F wildcard="{{$wildcard}}" \
  -F pool_id="{{$pool_id}}" \
  -F ips="{{$ips}}" \
  -F require_tls="{{$require_tls}}" \
  -F skip_verification="{{$skip_verification}}" \
  -F smtp_login="{{$smtp_login}}" \
  -F smtp_password="{{$smtp_password}}" \
  -F spam_action="{{$spam_action}}" \
  -F subaccount_id="{{$subaccount_id}}" \
  -F state="{{$state}}" \
  -F type="{{$type}}" \
  -F tracking_host="{{$tracking_host}}" \
  -F message_ttl="{{$message_ttl}}"
Create domain · mailgun · OpenIntegrations