---
title: "New Audit Logs API to define event schema"
description: "We’ve shipped a new Audit Logs API that enables you to define Audit Logs event schema in code."
url: https://workos.com/changelog/new-audit-logs-api-to-define-event-schema
---

# New Audit Logs API to define event schema

We’ve shipped a new Audit Logs API that enables you to define [Audit Logs event schema](https://workos.com/docs/audit-logs/introduction) in code.

You can still define event schema in the WorkOS Dashboard but with the [Event Schema API](https://workos.com/docs/reference/audit-logs/create-schema) you can automate much of the process of defining event types.
