GitLab API

GitlabTool

Actions1095

Pages → getApiV4ProjectsIdPages

AI-generated

Summary

Retrieve the pages information of a specific GitLab project by its ID or URL-encoded path using the GET method on the /api/v4/projects/{id}/pages endpoint.

Inputs

  • Id (required) — The ID or URL-encoded path of the project owned by the authenticated user.
  • Skip Authentication — Optionally skip using authentication for this request.
  • baseUrl — The base URL of the GitLab instance to target; by default, 'https://gitlab.com'.

Output shape

a single JSON object representing the pages resources for the specified project

The response shape depends on the GitLab API's /projects/{id}/pages endpoint output. Authentication via 'gitlabApi' credential is used by default unless Skip Authentication is enabled.

Examples

Example 1: Retrieve pages info for project with ID '1234' using default GitLab.com

Set Id to '1234', leave baseUrl as default, and ensure authentication is configured.

Links

Discussion