import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const account = await client.account.retrieve();
console.log(account.id);
{
"data": {
"id": "user_01jh6jk831bzen14edngw38we9",
"display_name": "Ray Tomlinson",
"email": "ray@info.tomlinson.ai",
"created_at": "2025-01-09T22:22:41.249Z",
"modified_at": "2025-01-09T22:22:41.249Z",
"region": "eu-west-1",
"kind": "user"
}
}
Retrieve your account informations
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const account = await client.account.retrieve();
console.log(account.id);
{
"data": {
"id": "user_01jh6jk831bzen14edngw38we9",
"display_name": "Ray Tomlinson",
"email": "ray@info.tomlinson.ai",
"created_at": "2025-01-09T22:22:41.249Z",
"modified_at": "2025-01-09T22:22:41.249Z",
"region": "eu-west-1",
"kind": "user"
}
}
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
A successful response
The response is of type object
.