import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const apiKey = await client.apiKeys.retrieve('apk_pdGukGd4BTmHj8dscBDE5Mc9');
console.log(apiKey.id);{
"data": {
"id": "<string>",
"org_id": "<string>",
"apikey_truncated": "<string>",
"status": "enabled",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "api-key",
"name": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
}Return the api-key with the given ID
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
const apiKey = await client.apiKeys.retrieve('apk_pdGukGd4BTmHj8dscBDE5Mc9');
console.log(apiKey.id);{
"data": {
"id": "<string>",
"org_id": "<string>",
"apikey_truncated": "<string>",
"status": "enabled",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"region": "eu-west-1",
"kind": "api-key",
"name": "<string>",
"modified_at": "2023-11-07T05:31:56Z"
}
}Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The api key id previously created
A successful response
Show child attributes
The id of the api key
The id of the organization
The truncated content of the api key
The status of the api key
enabled, disabled, revoked The id of the user
Date at which the object was created (ISO 8601 format)
The region of the related data
eu-west-1 The kind of object returned
api-key The name of the api key
Date at which the object was modified (ISO 8601 format)