glab-api

Call authenticated GitLab REST and GraphQL endpoints with JSON responses.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill glab-api-haomingz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-api
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/gitlab-cli-guide/glab-api
Command: npx skills add https://github.com/haomingz/kimi-skills --skill glab-api-haomingz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Directly calls GitLab REST API and GraphQL endpoints with authentication, enabling advanced queries and custom requests beyond the built-in glab commands.

Core Features & Use Cases

  • Authenticated requests to GitLab REST API endpoints, returning JSON data.
  • GraphQL access with flexible queries and variable substitution.
  • Endpoints, placeholders, and request body options support automation and scripting workflows.

Quick Start

Run the glab api command with a GitLab API endpoint to fetch data and print the resulting JSON.

Frequently Asked Questions about glab-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make authenticated GitLab REST API calls for advanced queries?

To make authenticated GitLab REST API calls, you can use the glab api command to access endpoints directly, returning custom JSON data for advanced queries not covered by standard glab commands.

Can I run GraphQL queries against the GitLab API?

Yes, you can run GraphQL queries against the GitLab API using this approach. It supports flexible GraphQL access with variable substitution, allowing you to execute complex queries and retrieve customized JSON responses.

How do I fetch GitLab API data with pagination and POST bodies?

You can fetch GitLab API data with pagination and POST bodies by using the glab api command. It supports endpoint paths, placeholders, and request body options to facilitate your automation and scripting workflows.

What is the best way to automate GitLab API requests beyond built-in glab commands?

The best way to automate GitLab API requests beyond built-in glab commands is to use direct HTTP or GraphQL interactions. This method enables customized responses in JSON for advanced automation scenarios.

Does the glab api command support variable substitution for GitLab API endpoints?

Yes, the glab api command supports variable substitution for GitLab API endpoints. You can use placeholders within your endpoint paths and GraphQL queries to dynamically construct automated requests.

When do I need direct HTTP interactions with the GitLab API?

You need direct HTTP interactions with the GitLab API when standard glab commands do not cover your advanced query requirements, allowing you to apply customized requests and retrieve specific JSON data.