proflead

api-request-builder

Build a basic HTTP request (curl or fetch) for an API. Use when a junior developer needs a quick request example.

proflead 106 22 Updated 4mo ago
GitHub

Install

npx skillscat add proflead/codex-skills-library/api-request-builder

Install via the SkillsCat registry.

SKILL.md

API Request Builder

Purpose

Build a basic HTTP request (curl or fetch) for an API.

Inputs to request

  • Method, URL, and endpoint description.
  • Auth type and credentials.
  • Required headers and payload shape.

Workflow

  1. Confirm method, URL, headers, and auth scheme.
  2. Construct the request with placeholder values.
  3. Show how to inspect the response status and body.

Output

  • Runnable request example.
  • Notes on required headers and auth.

Quality bar

  • Redact secrets and use placeholders.
  • Include a sample response check.