Javascript
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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The invocation ID
App invocation retrieved successfully
The response is of type object.
object