API

Consume, debug, and integrate REST APIs with curl and jq.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill api-zangxin75
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: API
Source: https://github.com/zangxin75/openclaw-skills/tree/main/api
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill api-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you consume, debug, and integrate REST APIs efficiently by providing best practices and common pitfalls to avoid.

Core Features & Use Cases

  • API Consumption: Make requests to RESTful services.
  • Debugging: Identify and resolve common API integration issues.
  • Best Practices: Learn about request headers, authentication, error handling, and pagination.
  • Use Case: Debugging why a POST request to an external API is failing with a 400 error, by checking Content-Type and Accept headers, and validating the request body schema.

Quick Start

Use the API skill to make a GET request to the endpoint 'https://api.example.com/users' and print the response.

Frequently Asked Questions about API

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

FAQPage Schema
How do I debug a REST API integration that fails with a 400 error?▼

Debug a REST API 400 error by validating the request body schema and verifying Content-Type and Accept headers. This Skill guides you through checking these common pitfalls and resolving silent errors in response bodies to fix failing HTTP requests.

How do I parse and extract data from REST API responses using curl?▼

Parse REST API responses from curl by piping the output to jq for JSON extraction. This Skill requires curl for executing HTTP requests and jq for effectively parsing the response data to surface silent errors or hidden fields.

What are the best practices for handling REST API authentication and headers?▼

Best practices for REST API authentication and headers include setting correct Content-Type and Accept values and managing secure credentials. This Skill provides guidelines to avoid incorrect headers and authentication failures during API consumption.

How do I handle pagination complexities when consuming REST APIs?▼

Handle REST API pagination by sequentially requesting subsequent page endpoints and parsing links with jq. This Skill addresses pagination complexities to ensure complete data retrieval across multi-page API responses.

Do I need curl and jq to integrate and debug REST APIs?▼

Yes, curl and jq are required to effectively integrate and debug REST APIs. Curl executes the HTTP requests while jq parses the JSON response bodies, allowing you to identify silent errors and validate response schemas.

Why does my POST request to an external API keep failing silently?▼

A POST request may fail silently due to incorrect request headers or an invalid body schema. Use this Skill to inspect the response body with jq, validate your payload schema, and correct mismatched Content-Type headers.