/v1/apps/{app_id}/custom-domainsAuthList the app's custom domains (at most one).
Each with its status and the last check of its records, plus `available`: whether custom domains are switched on for the workspace. Always a single page.
Path parameters
app_id*stringId of the app.
Response · 200
data*arrayAn app has at most one custom domain.
pagination*objectnext_cursor*stringOpaque cursor for the next page. `null` when no more pages are available.
Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ"
has_more*booleanTrue iff another page exists; if true, pass `next_cursor` on the next request.
Example: false
available*booleanTrue when custom domains are switched on for this app's workspace, so `POST` can add one. While the feature is in early access it is switched on per workspace; when false, adding a domain answers 403 `FEATURE_NOT_ENABLED`.
Example: true
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/custom-domains
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
for await (const customDomain of auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").customDomains.list()) {
console.log(customDomain);
}auth.admin.app(…).customDomains.list(options?): PagePromise<Auth.CustomDomain>
Response
{
"data": [
{
"id": "1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"app_id": "0b6f3c7e-6a43-4c55-9d4b-2a9a7f5b1c11",
"hostname": "auth.acme.com",
"status": "pending",
"serving": false,
"edge_target": "edge.auth.productcraft.co",
"dns_zone": "acme.com",
"dns_provider": {},
"apply_providers": [
"cloudflare"
],
"records": [
{
"purpose": "routing",
"type": "CNAME",
"host": "auth.acme.com",
"name": "auth",
"value": "edge.auth.productcraft.co",
"ttl": 3600,
"state": "verified",
"observed": [
"edge.auth.productcraft.co"
],
"conflicts": [
null
],
"last_checked_at": "2026-01-01T00:00:00.000Z",
"verified_at": "2026-01-01T00:00:00.000Z"
}
],
"callback_urls": {},
"verified_at": "2026-01-01T00:00:00.000Z",
"failing_since": "2026-01-01T00:00:00.000Z",
"last_checked_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"pagination": {
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ",
"has_more": false
},
"available": true
}