Skip to main content
POST
/
domains
JavaScript
import AIInbx from 'aiinbx';

const client = new AIInbx({
  apiKey: 'My API Key',
});

const domain = await client.domains.create({
  domain: 'sfN2.l.iJR-BU.u9JV9.a.m.o2D-4b-Jd.0Z-kX.L.n.S.f.ukBXb',
});

console.log(domain.domainId);
{
  "domainId": "<string>",
  "records": [
    {
      "type": "TXT",
      "name": "<string>",
      "value": "<string>",
      "priority": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token

Body

application/json
domain
string
required
Minimum length: 1

Response

Successful response

domainId
string
required
records
object[]
required