Authorizations
API Key authentication using Bearer token
Response
Successful response
import AIInbx from 'aiinbx';
const client = new AIInbx({
  apiKey: 'My API Key',
});
const domains = await client.domains.list();
console.log(domains.domains);{
  "domains": [
    {
      "id": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "domain": "<string>",
      "verifiedAt": "<string>",
      "status": "VERIFIED",
      "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: 'My API Key',
});
const domains = await client.domains.list();
console.log(domains.domains);{
  "domains": [
    {
      "id": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "domain": "<string>",
      "verifiedAt": "<string>",
      "status": "VERIFIED",
      "dnsRecords": [
        {
          "type": "TXT",
          "name": "<string>",
          "value": "<string>",
          "priority": 123,
          "isVerified": true,
          "verificationStatus": "verified",
          "lastCheckedAt": "<string>"
        }
      ]
    }
  ]
}API Key authentication using Bearer token
Successful response
Show child attributes
Was this page helpful?