List custom domains and their DNS status.
List custom domains and their DNS status.
GET
https://app.softsolz.uk/api/v1/services/site-builder/projects/{id}/domainsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Response
Response Body · array of objects
idintegerDomain id.domainstringHostname.statusstringpending until DNS is verified.dns_recordsarray of objectsRecords to create at the registrar: { type, name, value }.last_checked_atstring | nullLast verification attempt.verified_atstring | nullWhen DNS verified.created_atstringAdded at.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.siteBuilder.getProjectDomains('<id>');console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": [ { "id": 0, "domain": "string", "status": "string", "dns_records": [], "last_checked_at": "string", "verified_at": "string", "created_at": "string" } ]}