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 appListResponse of client.apps.list()) {
console.log(appListResponse.id);
}[
{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"app_name": "my-app",
"version": "1.0.0",
"region": "aws.us-east-1a",
"deployment": "<string>",
"actions": [
{
"name": "analyze",
"input_schema": {},
"output_schema": {}
}
],
"env_vars": {}
}
]List applications. Optionally filter by app name and/or version label.
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 appListResponse of client.apps.list()) {
console.log(appListResponse.id);
}[
{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"app_name": "my-app",
"version": "1.0.0",
"region": "aws.us-east-1a",
"deployment": "<string>",
"actions": [
{
"name": "analyze",
"input_schema": {},
"output_schema": {}
}
],
"env_vars": {}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter results by application name.
Filter results by version label.
Limit the number of apps to return.
1 <= x <= 100Offset the number of apps to return.
x >= 0Search apps by name.
List of apps.
Unique identifier for the app version
"rr33xuugxj9h0bkf1rdt2bet"
Name of the application
"my-app"
Version label for the application
"1.0.0"
Deployment region code
"aws.us-east-1a""aws.us-east-1a"
Deployment ID
List of actions available on the app
Show child attributes
Environment variables configured for this app version
Show child attributes