Get application custom domains.

GET /api/applications/{id}/protected-app-metadata/custom-domains

Get custom domains of the specified application, the application type should be protected app.

Path parameters

  • id string Required

    The unique identifier of the application.

Responses

  • 200 application/json

    An array of the application custom domains.

    Hide response attributes Show response attributes object
    • domain string Required
    • status string Required

      Values are PendingVerification, PendingSsl, Active, or Error.

    • errorMessage string | null Required
    • dnsRecords array[object] Required
      Hide dnsRecords attributes Show dnsRecords attributes object
    • cloudflareData object | null Required

      Additional properties are allowed.

      Hide cloudflareData attributes Show cloudflareData attributes object | null
  • Faild to sync the domain info from remote provider.

  • Unauthorized

  • Forbidden

  • Not Found

  • Not Implemented

GET /api/applications/{id}/protected-app-metadata/custom-domains
curl \
 -X GET https://[tenant_id].logto.app/api/applications/{id}/protected-app-metadata/custom-domains \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "domain": "string",
    "status": "PendingVerification",
    "errorMessage": "string",
    "dnsRecords": [
      {
        "name": "string",
        "type": "string",
        "value": "string"
      }
    ],
    "cloudflareData": {
      "id": "string",
      "status": "string",
      "ssl": {
        "status": "string",
        "validation_errors": [
          {
            "message": "string"
          }
        ]
      },
      "verification_errors": [
        "string"
      ]
    }
  }
]