Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The invocation ID
Response
App invocation retrieved successfully
The response is of type object
.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const invocation = await client.invocations.retrieve('rr33xuugxj9h0bkf1rdt2bet');
console.log(invocation.id);
{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"app_name": "my-app",
"action_name": "analyze",
"payload": "{\"data\":\"example input\"}",
"output": "{\"result\":\"success\",\"data\":\"processed input\"}",
"started_at": "2024-05-19T15:30:00.000000000Z07:00",
"finished_at": "2024-05-19T15:30:05.000000000Z07:00",
"status": "succeeded",
"status_reason": "Invocation completed successfully"
}
Get details about an invocation’s status and output.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: 'My API Key',
});
const invocation = await client.invocations.retrieve('rr33xuugxj9h0bkf1rdt2bet');
console.log(invocation.id);
{
"id": "rr33xuugxj9h0bkf1rdt2bet",
"app_name": "my-app",
"action_name": "analyze",
"payload": "{\"data\":\"example input\"}",
"output": "{\"result\":\"success\",\"data\":\"processed input\"}",
"started_at": "2024-05-19T15:30:00.000000000Z07:00",
"finished_at": "2024-05-19T15:30:05.000000000Z07:00",
"status": "succeeded",
"status_reason": "Invocation completed successfully"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The invocation ID
App invocation retrieved successfully
The response is of type object
.