Skip to content

Tracking Certificate: Regenerate expired certificate

Request

Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid

Security
basicAuth
Path
domainstringrequired

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

curl -i -X PUT \
  -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" }