# API Rate Limit & Abuse Review (OTP, AI, Exports)

> Find the endpoints bots will abuse before they cost you money: OTP and SMS pumping, login brute force, account enumeration, AI and image endpoints open to scripts, unbounded exports and uploads, IDOR. Get per-endpoint limits and ready code for Next.js, Express, Supabase and Cloudflare.

API Rate Limit & Abuse Review (OTP, AI, Exports) is a paid AI agent skill on Agensi by Hayder Al-Hwaidi, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Hayder Al-Hwaidi](https://www.agensi.io/creators/hayder-al-hwaidi)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/api-rate-limit-abuse-review-otp-ai-exports
- Tags: security, rate-limiting, api, otp, backend, nextjs, supabase, abuse-prevention

## About this skill

Bots do not need to hack your database to ruin your business. A simple script hitting an unprotected OTP endpoint can generate thousands of dollars in SMS pumping fraud overnight, while an uncapped AI route can drain your LLM credits in minutes. This skill identifies the high-cost and high-risk endpoints in your backend before they are exploited.

### What it does
- **Map endpoints** by cost and sensitivity, categorizing routes like OTP, Auth, and expensive compute.
- **Audit for SMS pumping** by checking for country allowlists and per-number cooldowns on OTP services.
- **Detect enumeration risks** in login and signup flows that leak user existence through timing or response differences.
- **Identify unbounded queries** that allow attackers to crash databases via massive page limits or "export all" requests.
- **Review expensive compute** routes like LLMs and image generation for missing per-user quotas and daily spend caps.
- **Generate enforcement code** providing ready-to-use snippets for rate limiting and server-side validation.

### How it works
1. **Catalog routes** and tag them based on their impact, such as Sends SMS, Auth, or Expensive Compute.
2. **Apply the check list** to each route to find missing limits, IDOR vulnerabilities, and brute-force windows.
3. **Generate implementation code** for your specific stack, including Redis or Postgres-based limiters.
4. **Define monitoring alerts** for spend spikes and 429 error rates.

### Frameworks & tools
This skill provides implementation patterns for Next.js, Node.js, Express, Supabase, Cloudflare WAF, and Firebase App Check. It includes specific logic for Upstash Ratelimit and Redis backends.

### Why this beats prompting it yourself
Generic security prompts often miss the financial side of API abuse, like premium-rate SMS ranges or LLM token draining. This skill uses a structured matrix to ensure no expensive or sensitive route is overlooked, providing the exact `429` logic and `Retry-After` headers required for professional API design.

### Use cases
- Protect an OTP endpoint from SMS pumping fraud.
- Add rate limits to a Next.js API that calls an LLM.
- Audit a backend for enumeration and IDOR before launch.
- Lock down file upload routes against storage and compute abuse.

### Known limitations
Does not perform active penetration testing or automated traffic simulation. It is a design and code-level review tool for identifying missing controls.

## Requires

- API or app backend
- Optional: Redis or Upstash
- Optional: Cloudflare

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the API Rate Limit & Abuse Review (OTP, AI, Exports) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific types of API abuse does this skill help prevent?

This skill identifies endpoints where bots can cause financial damage or data leaks, such as unprotected OTP services that lead to SMS pumping fraud or uncapped AI routes that drain LLM credits. It provides a structured audit to find missing rate limits, IDOR vulnerabilities, and expensive compute routes before they are exploited.

### What kind of report or code does this skill generate?

You will receive a detailed table for each endpoint that includes its risk level, suggested rate limits, and ready to use implementation code for stacks like Next.js, Node.js, Supabase, and Cloudflare WAF. It also provides a monitoring checklist to help you set up alerts for spend spikes and 429 error rates.

### Does this skill perform active penetration tests on my API?

This is a design and code level review tool meant to identify missing controls and implementation patterns. It does not perform active penetration testing or automated traffic simulation against your live infrastructure.

### How should I ask my agent to use this skill?

You can ask your agent to review your backend routes, audit an OTP flow for SMS pumping risks, or generate rate limiting code for a specific API endpoint. It is most effective when you provide a list of your routes or functions and the technologies you are using.

### Which frameworks and tools are supported for the implementation code?

The skill provides specific patterns for Next.js, Express, Supabase, and Firebase App Check. It also includes specialized logic for implementing limiters using Redis or Upstash Ratelimit.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
