Developer events
Read the newest activity for the workspace represented by the API key:
const page = await usagey.events.list({
eventType: "WEBHOOK_PROCESSED",
status: "ERROR",
take: 50,
});
for (const event of page.events) {
console.log(event.eventType, event.status, event.createdAt);
}
Continue from the returned cursor:
if (page.hasMore && page.nextCursor) {
const nextPage = await usagey.events.list({
cursor: page.nextCursor,
take: 50,
});
}
Available filters include eventType, status, and search. Cursors are workspace-specific and cannot be reused across organizations or environments.