Skip to content

Tracking Certificate: Get certificate and status

Request

Get x509 TLS certificate and status

Security
basicAuth
Path
domainstringrequired

The tracking domain of the TLS certificate, formatted as web_prefix.domain_name (web_prefix is configured in your domains settings)

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

Responses

A 200 response

Bodyapplication/json
statusobjectrequired

Status of certificate. Either 'expired' 'processing' 'active' or 'error'

errorstring or nullrequired

An error message if an error occurred. Null if there is no error.

certificatestring

The x509 certificate in PEM format. Present only if the certificate status is 'active' 'error' or 'expired'

Response
{ "status": "processing", "error": "Waiting for x509 key pair generation" }