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

const client = new Kernel({
  apiKey: 'My API Key',
});

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.

Query Parameters

since
string

Show logs since the given time (RFC timestamps or durations like 5m).

Example:

"2025-06-20T12:00:00Z"

Response

SSE stream of invocation state updates and logs.

  • Option 1
  • Option 2
  • Option 3
  • Option 4

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

event
string
required

Event type identifier (always "log").

Allowed value: "log"
timestamp
string<date-time>
required

Time the log entry was produced.

message
string
required

Log message text.

I