GitLab API icon

GitLab API

Gitlab

Actions1062

Wikis → getApiV4ProjectsIdWikis

AI-generated

Summary

Retrieve a list of wiki pages for a specific GitLab project, optionally including the content of each page.

Inputs

  • id (required) — The ID of the GitLab project whose wiki pages you want to retrieve.
  • with_content — Boolean flag to include the content of each wiki page in the response; defaults to false.

Output shape

A list of wiki page objects.

The response contains an array of wiki pages for the specified project. If 'with_content' is set to true, each page object includes its content; otherwise, content is omitted. The operation uses the HTTP GET method on the endpoint '/api/v4/projects/{id}/wikis'. Authentication using GitLab API credentials is required unless explicitly skipped.

Examples

Example 1: Retrieve all wiki pages for project ID 123 without including page content

Set 'id' path parameter to '123'. Leave 'with_content' as false or unset.

Example 2: Retrieve all wiki pages for project ID 123 including full page content

Set 'id' path parameter to '123'. Set 'with_content' query parameter to true.

Links

Discussion