import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const project of client.projects.list()) {
console.log(project.id);
}[
{
"id": "proj_abc123",
"name": "production",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]List projects for the authenticated organization.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const project of client.projects.list()) {
console.log(project.id);
}[
{
"id": "proj_abc123",
"name": "production",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Maximum number of results to return
x <= 100Number of results to skip
List of projects
Unique project identifier
"proj_abc123"
Project name
"production"
Project status
active, archived "active"
When the project was created
When the project was last updated