Get a domain - Spacefast Docs
Get a domain
Returns one domain with its verification state, Space assignment, registration and DNS facets, and open hints.
Request
GET /v1/domains/{domainId}
AuthorizationAuthorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).
OrAuthorization: OAuth2 access token
Scopes
domains:read
Path parameters
domainId(string, required)
Responses
200 Response for status 200
{
"$schema": "string",
"data": {
"id": "string",
"name": "string",
"unicodeName": "string",
"kind": "hostname",
"wildcardEnabled": true,
"spaceId": "string",
"primary": true,
"redirect": {
"to": {
"url": "string"
},
"status": "301"
},
"derivedGroup": "string",
"registrar": {
"provider": "string",
"status": "active",
"expiresAt": "string",
"redemptionEndsAt": "string",
"autoRenew": true,
"transferLock": true
},
"dns": {
"managementKind": "unmanaged_external",
"dnsMode": "authoritative",
"provider": "string",
"assignedNameservers": ["string"],
"observedNameservers": ["string"],
"snapshot": {
"freshness": "fresh",
"lastFetchedAt": "string",
"version": "string"
},
"lastOperation": {
"id": "string",
"kind": "string",
"status": "queued",
"updatedAt": "string"
}
},
"verification": {
"status": "not_required",
"requiredRecords": [
{
"type": "A",
"name": "string",
"value": "string",
"ttl": -9007199254740991,
"purpose": "verification"
}
],
"lastCheckedAt": "string",
"lastVerifiedAt": "string",
"diagnostics": [
{
"code": "string",
"severity": "info",
"message": "string",
"path": "string",
"provider": "string",
"details": {
"property1": null,
"property2": null
},
"fix": "string",
"retryable": true
}
]
},
"hints": [
{
"id": "string",
"code": "string",
"severity": "info",
"painLevel": "info",
"subjectFacet": "dns_zone",
"subjectRef": {
"domainId": "string",
"zoneId": "string",
"bindingId": "string",
"connectionId": "string"
},
"owner": "stattic",
"status": "active",
"summary": "string",
"description": "string",
"impact": "string",
"evidence": [
{
"label": "string",
"value": "string",
"observedAt": "string",
"source": "provider_api"
}
],
"suggestions": [
{
"label": "string",
"description": "string",
"action": {
"type": "open_pending_action",
"actionId": "string"
},
"primary": true,
"destructive": true
}
],
"docsUrl": "string",
"operationId": "string",
"requestId": "string",
"providerRequestId": "string",
"expiresAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string"
}
}
Error Response
{
"$schema": "string",
"type": "string",
"title": "string",
"status": -9007199254740991,
"detail": "string",
"code": "string",
"pointer": "string",
"details": {
"property1": null,
"property2": null
},
"suggestions": ["string"],
"next": ["string"],
"requestId": "string"
}
Try it
Server
Base URL https://api.spacefast.com
Authorization
Bearer token