GET
/
invocations
/
{id}
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});

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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The invocation ID

Response

200
application/json

App invocation retrieved successfully

The response is of type object.