name: api-request-builder description: Build a basic HTTP request (curl or fetch) for an API. Use when a junior developer needs a quick request example.
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
- Confirm method, URL, headers, and auth scheme.
- Construct the request with placeholder values.
- 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.