import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const domain = await client.domains.retrieve('dns_FdfQe2eZAzRrHCXKSr7VsxUz');
console.log(domain.id);{
"data": {
"id": "<string>",
"org_id": "<string>",
"name": "<string>",
"sending_records": [
{
"name": "<string>",
"fullname": "<string>",
"type": "TXT",
"ttl": "<string>",
"group": "DKIM",
"value": "<string>",
"region": "eu-west-1",
"status": "bootstrapping",
"kind": "record",
"status_at": "<string>",
"selector": "<string>",
"priority": "<string>"
}
],
"status": "bootstrapping",
"sending_status": "enabled",
"status_at": "<string>",
"open_tracking": true,
"click_tracking": true,
"created_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "domain",
"modified_at": "2023-11-07T05:31:56Z"
}
}Return the domain with the given id
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const domain = await client.domains.retrieve('dns_FdfQe2eZAzRrHCXKSr7VsxUz');
console.log(domain.id);{
"data": {
"id": "<string>",
"org_id": "<string>",
"name": "<string>",
"sending_records": [
{
"name": "<string>",
"fullname": "<string>",
"type": "TXT",
"ttl": "<string>",
"group": "DKIM",
"value": "<string>",
"region": "eu-west-1",
"status": "bootstrapping",
"kind": "record",
"status_at": "<string>",
"selector": "<string>",
"priority": "<string>"
}
],
"status": "bootstrapping",
"sending_status": "enabled",
"status_at": "<string>",
"open_tracking": true,
"click_tracking": true,
"created_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "domain",
"modified_at": "2023-11-07T05:31:56Z"
}
}Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The domain id previously created
A successful response
Show child attributes
The id of the domain
The id of the organization
The name of the domain. For example: 'email.mycompany.com'
The records for your domain
Show child attributes
The name of the record.
The FQDN of the domain record
The type of the record: "TXT", "MX" or "CNAME"
TXT, MX, CNAME TTL (Time To Live) for this DNS record specifies the duration (in seconds)
The group of group: "DKIM", "SPF", "MX" or "DMARC". It is useful to group the records
DKIM, SPF, MX, DMARC The value of a DNS record is the data that the record points to
The region of the related data
eu-west-1 The status of the record
bootstrapping, pending, success, failed, temporary_failure The kind of object returned
record The date of the lastest verification of this record
A unique identifier in DKIM record to create CNAME records for verifying domain ownership and enabling email authentication
Priority in a DNS record, typically used in MX (Mail Exchange) records, specifies the order in which mail servers should be used, with lower values indicating higher priority for email delivery
The status for the domain
bootstrapping, pending, success, failed, temporary_failure The sending status for the domain
enabled, disabled The date of the lastest verification of the status
Date at which the object was created (ISO 8601 format)
The region of the related data
eu-west-1 The kind of object returned
domain Date at which the object was modified (ISO 8601 format)