import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const profiles = await client.profiles.list();
console.log(profiles);
[
{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
]
List profiles with optional filtering and pagination.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const profiles = await client.profiles.list();
console.log(profiles);
[
{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
List of profiles
The response is of type object[]
.