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

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

const response = await client.invocations.follow('id');

console.log(response);
{
  "event": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "message": "<string>"
}

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 to follow.

Response

200
text/event-stream

SSE stream of invocation state updates and logs.

Union type representing any invocation event. A log entry from the application.