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",
"selector": "<string>",
"priority": "<string>",
"value": "<string>",
"region": "eu-west-1",
"status": "bootstrapping",
"kind": "record",
"status_at": "<string>"
}
],
"status": "bootstrapping",
"sending_status": "enabled",
"status_at": "<string>",
"open_tracking": true,
"click_tracking": true,
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "domain"
}
}
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",
"selector": "<string>",
"priority": "<string>",
"value": "<string>",
"region": "eu-west-1",
"status": "bootstrapping",
"kind": "record",
"status_at": "<string>"
}
],
"status": "bootstrapping",
"sending_status": "enabled",
"status_at": "<string>",
"open_tracking": true,
"click_tracking": true,
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "domain"
}
}
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The domain id previously created
A successful response
The response is of type object
.