Auth API reference

Auth API · Apps

get/v1/apps/{app_id}/custom-domainsAuth

List 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*string

Id of the app.

Response · 200

data*array

An app has at most one custom domain.

pagination*object
next_cursor*string

Opaque cursor for the next page. `null` when no more pages are available.

Example: "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNS0wMVQwMDowMDowMFoifQ"

has_more*boolean

True iff another page exists; if true, pass `next_cursor` on the next request.

Example: false

available*boolean

True 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_TOKEN

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
}