/
Create a domain key
Create a domain key. Note that once private keys are created or imported they are never exported. Alternatively, you can import an existing PEM file containing a RSA private key in PKCS #1, ASn.1 DER format. Note, the pem can be passed as a file attachment or as a form-string parameter.
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v1/dkim/keys
- EU Mailgunhttps://api.eu.mailgun.net/v1/dkim/keys
curl -i -X POST \
-u '<username>:<password>' \
https://api.mailgun.net/v1/dkim/keys \
-H 'Content-Type: multipart/form-data' \
-F signing_domain=string \
-F selector=string \
-F bits=0 \
-F pem=stringResponse
- github.com-mailgun-domains-client-golang-Record
- null
{ "signing_domain": "example.com", "selector": "s1", "dns_record": { "cached": [], "name": "s1._domainkey.example.com", "record_type": "TXT", "valid": "unknown", "value": "k=rsa; p=<public_key>" } }