GitLab API

GitlabTool

Actions1095

Snippets → getApiV4Snippets

AI-generated

Summary

Retrieve GitLab snippets using the API v4 with optional filtering by creation date and pagination.

Inputs

  • Skip Authentication — Toggle to skip authentication; default is false (authentication used).
  • baseUrl — The base URL for the GitLab instance, defaulting to https://gitlab.com.
  • Method — HTTP method to use; defaults to GET for retrieving snippets.
  • created_after — Filter to return snippets created after this date/time (ISO 8601 format).
  • created_before — Filter to return snippets created before this date/time (ISO 8601 format).
  • page — Page number to retrieve in paginated results; default is 1.
  • per_page — Number of snippets per page for pagination; default is 20.

Output shape

a list of snippet objects as returned by the GitLab API v4

Response includes pagination parameters; handling of authentication is automatic unless skipped by the user. The endpoint path is fixed to /api/v4/snippets with query parameters applied.

Links

Discussion