Skip to content

Tracking Certificate: Generate

Request

Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success

Security
basicAuth
Path
domainstringrequired

The tracking domain of the TLS certificate, formatted as webPrefix.domainName from domains settings

curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v2/x509/{domain}'

Responses

A 202 response

Bodyapplication/json
messagestringrequired

A message indicating the status of the request.

locationstringrequired

The URL path to check the status of the certificate.

Response
{ "message": "Initiated x509 key pair generation", "location": "/v2/x509/example.com/status" }