Skip to content

Security

Find API routes anyone can run up a bill on

An endpoint that calls an AI model or sends email has no sign-in check and no limit.

What you get
Every costly or sensitive route listed, with a sign-in check and a rate limit added.
Paste it into
Your AI tool, in your project
The prompt
Find the routes in this project that a stranger could call again and again.

List every API route and server action that spends money or does something sensitive: calls an AI model, sends email or SMS, creates records, uploads files, or triggers a sign-in email. For each, tell me whether it requires sign-in, whether it has a rate limit, and what one person with a script could run up in an hour. If you don't know my prices, give the formula.

Add protection in order of risk: require sign-in where it makes sense, add a limit per user and per IP using what the stack already offers, cap the input size, and set a hard daily ceiling on AI spend. Show me a blocked request as proof, made against a local or test setup.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.

More in Security