# Api Test

> >

- **Type:** Skill
- **Install:** `agentstack add skill-ao92265-claude-code-playbook-api-test`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ao92265](https://agentstack.voostack.com/s/ao92265)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ao92265](https://github.com/ao92265)
- **Source:** https://github.com/ao92265/claude-code-playbook/tree/main/skills/api-test

## Install

```sh
agentstack add skill-ao92265-claude-code-playbook-api-test
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# API Endpoint Testing

Interactive testing of API endpoints with validation of responses.

## Steps

1. **Identify the endpoint:**
   - URL, HTTP method, required headers
   - Authentication: Bearer token, API key, cookie, or none
   - Request body format: JSON, form data, multipart
   - Expected response: status code, content type, shape

2. **Test the happy path:**
   - Send a request with valid inputs
   - Verify: status code matches expected (200, 201, etc.)
   - Verify: response body shape matches API contract
   - Verify: response headers are correct (Content-Type, CORS, caching)
   - Record the response time

3. **Test error cases:**
   - Missing required fields → expect 400 Bad Request
   - Invalid data types → expect 400 or 422
   - Missing authentication → expect 401 Unauthorized
   - Insufficient permissions → expect 403 Forbidden
   - Non-existent resource → expect 404 Not Found
   - Verify error response includes helpful message

4. **Test edge cases:**
   - Empty strings, null values, zero, negative numbers
   - Very long strings (boundary testing)
   - Special characters and unicode
   - Empty arrays and objects
   - Pagination boundaries (page 0, page beyond last)

5. **Test idempotency (for mutating endpoints):**
   - Send the same POST/PUT request twice
   - Does it create duplicates? (it shouldn't for idempotent operations)
   - Does the response change on the second call?

6. **Report results:**

   ```
   ## API Test Results — [ENDPOINT]

   | Test | Expected | Actual | Status |
   |------|----------|--------|--------|
   | Happy path | 200 | 200 | PASS |
   | Missing auth | 401 | 401 | PASS |
   | Invalid body | 400 | 500 | FAIL |
   | ...          | ... | ... | ...    |

   Response time: Xms
   Issues found: Y
   ```

## Important

- **Use `curl` or the project's HTTP client** — don't install extra tools.
- **Don't test against production** unless the user explicitly says to.
- **Mask sensitive data** in output (tokens, passwords, PII).
- **Test one endpoint at a time** — keep the scope focused.
- **Record response times** but don't treat them as benchmarks — local testing != production performance.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ao92265](https://github.com/ao92265)
- **Source:** [ao92265/claude-code-playbook](https://github.com/ao92265/claude-code-playbook)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ao92265-claude-code-playbook-api-test
- Seller: https://agentstack.voostack.com/s/ao92265
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
