GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdAuditEvents

AI-generated

Summary

Retrieve audit events for a specific GitLab project by its ID, optionally filtering by creation date and supporting pagination.

Inputs

  • id (required) — The ID of the GitLab project to query audit events for.
  • created_after — Filter audit events created after this ISO8601 date-time string.
  • created_before — Filter audit events created before this ISO8601 date-time string.
  • page — Page number to retrieve, used for paginating results; defaults to 1 if unspecified.
  • per_page — Number of audit events to return per page; defaults to 20 if unspecified.
  • skipAuthentication — Optional flag to skip authentication (defaults to false).
  • baseUrl — Base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a list of audit event objects related to the specified project

Supports query parameters for date filtering and pagination. Requires project ID as a path parameter. The response is paginated according to 'page' and 'per_page' parameters.

Examples

Example 1: Retrieve audit events created after January 1, 2023, for project ID 1234, returning 10 per page on page 2.

Set Path Parameters: id=1234; Set Query Parameters: created_after=2023-01-01T00:00:00Z, per_page=10, page=2.

Links

Discussion