import AIInbx from 'aiinbx';
const client = new AIInbx({
apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted
});
const domains = await client.domains.list();
console.log(domains.domains);{
"domains": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"domain": "<string>",
"verifiedAt": "<string>",
"status": "VERIFIED",
"isManagedDefault": true,
"dnsRecords": [
{
"type": "TXT",
"name": "<string>",
"value": "<string>",
"priority": 123,
"isVerified": true,
"verificationStatus": "verified",
"lastCheckedAt": "<string>"
}
]
}
]
}List all domains belonging to the API key’s organization
import AIInbx from 'aiinbx';
const client = new AIInbx({
apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted
});
const domains = await client.domains.list();
console.log(domains.domains);{
"domains": [
{
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"domain": "<string>",
"verifiedAt": "<string>",
"status": "VERIFIED",
"isManagedDefault": true,
"dnsRecords": [
{
"type": "TXT",
"name": "<string>",
"value": "<string>",
"priority": 123,
"isVerified": true,
"verificationStatus": "verified",
"lastCheckedAt": "<string>"
}
]
}
]
}Was this page helpful?