GitLab API icon

GitLab API

Gitlab

Actions1062

Project_snippets → getApiV4ProjectsIdSnippetsSnippetIdRaw

AI-generated

Summary

Fetches the raw content of a project snippet from GitLab.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • snippet_id (required) — The numeric ID of the project snippet to fetch.
  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com).
  • skipAuthentication — If true, the request is made without using the gitlabApi credential.

Output shape

The raw snippet content returned by GitLab (typically plain text or binary data).

Authentication is provided by the gitlabApi credential unless skipAuthentication is set.

Examples

Example 1: Get raw snippet

Set Project ID (id) and Snippet ID (snippet_id). Leave authentication default unless you need to skip it.

Links

Discussion