Skip to content

AuditLog

Source: src/Railway/AuditLog.ts

List workspace audit logs. Query-only — Railway has no audit-log create/update/delete, so this is a catalog helper, not a resource.

Defaults to the current token workspace. Pass project / environment to filter. The result may be empty.

Workspace logs

const logs = yield* Railway.listAuditLogs();

Filter by project

const site = yield* Railway.Project("Site");
const logs = yield* Railway.listAuditLogs({
project: site,
environment: site,
});
const log = yield* Railway.getAuditLog({ id: logs[0].id });
const types = yield* Railway.listAuditLogEventTypes();