/v1/apps/{app_id}/custom-domains/{domain_id}/exportAuthDownload the custom domain's DNS records as a BIND zone fragment or a CSV.
`format=bind`: a zone-file fragment (`$ORIGIN <zone>.`, `$TTL 3600`, names relative to the zone, a comment per record with its purpose and any conflict) that Cloudflare and Route 53 import directly. `format=csv`: `type,name,value,priority,ttl,purpose,required`, fully qualified names. By default only records not verified yet; `all=true` for both. Served as an attachment.
Path parameters
app_id*stringId of the app.
domain_id*string · uuidId of the domain.
Query parameters
format*enum (2)File format: a BIND zone-file snippet or CSV.
allbooleanInclude records that already verify.
Response · 200
The file.
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/custom-domains/{domain_id}/export
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const response = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").customDomains.export("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { format: "bind" });
const text = await response.text();auth.admin.app(…).customDomains.export(domainId, params, options?): Response