Domains, DNS, hosting and email from a single source.
Resources & Support



This recipe combines three typical operational tasks: listing the full certificate inventory, selecting relevant entries, and downloading the available artifacts in an automated way.
Start with the full list of certificates that belong to the authenticated account.
curl --request GET \
--url 'https://api.regfish.com/tls/certificate' \
--header 'x-api-key: YOUR_API_KEY'The most relevant fields for further processing are:
idcommon_namestatusproductcertificate_pem_availableNot every certificate can be downloaded right away. Define a filter first, for example only certificates with a PEM artifact already available.
{
"includeWhen": {
"certificate_pem_available": true
},
"downloadFormat": "pem"
}Before exporting, you can fetch individual certificate details again. That is useful if you want to evaluate more status information or provider metadata.
curl --request GET \
--url 'https://api.regfish.com/tls/certificate/7K9QW3M2ZT8HJ' \
--header 'x-api-key: YOUR_API_KEY'For many deployment systems, the PEM artifact as plain text is enough.
curl --request GET \
--url 'https://api.regfish.com/tls/certificate/7K9QW3M2ZT8HJ/download/pem' \
--header 'x-api-key: YOUR_API_KEY' \
--output 'certificate-7K9QW3M2ZT8HJ.pem'If a downstream system works better with bundles, you can request the ZIP artifact instead.
curl --request GET \
--url 'https://api.regfish.com/tls/certificate/7K9QW3M2ZT8HJ/download/zip' \
--header 'x-api-key: YOUR_API_KEY' \
--output 'certificate-7K9QW3M2ZT8HJ.zip'In production setups, list, filter, and download are usually combined into a repeatable batch process.
for id in 7K9QW3M2ZT8HJ 8R2XC7M4TH9PK 6Z3PH8T2MX7CR; do
curl --request GET \
--url "https://api.regfish.com/tls/certificate/${id}/download/pem" \
--header 'x-api-key: YOUR_API_KEY' \
--output "certificate-${id}.pem"
doneThis turns the TLS inventory into a structured export workflow. That is useful for audits, deployments, backups, and any centralized certificate management process.
The regfish DNS API is a great solution for developers who want to automate domains and DNS zones. Become part of the community and benefit from DNS automation. The DNS API is available free of charge to every regfish customer.