---
raw: true
search:
  tags:
    - Domains
    - GET
seo:
  description: >-
    Discover the hostname's DNS provider through… Reference for the GET
    /v1/spaces/{spaceId}/domains/{domainId}/domain-connect endpoint in the
    Spacefast API.
sidebar:
  label: Prepare one-click DNS setup
  badge: GET
title: Prepare one-click DNS setup
type: openapi-operation
---
Discover the hostname's DNS provider through Domain Connect, confirm it carries the Spacefast template, and return a signed approval URL. The records still need approval at the provider and count only once observed.

`GET /v1/spaces/{spaceId}/domains/{domainId}/domain-connect`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "status": "available",
    "checkedAt": "2019-08-24T14:15:22Z",
    "provider": {
      "id": "string",
      "name": "string",
      "displayName": "string",
      "controlPanelUrl": "http://example.com"
    },
    "template": {
      "providerId": "string",
      "serviceId": "string",
      "version": -9007199254740991
    },
    "applyUrl": "http://example.com"
  }
}
```
