Sails · First-party SDK

Sails API monitoring that sees every request.
Including the half that isn’t human.

An installable hook: add the dependency and lift. It puts itself first in your HTTP middleware order, so it sees every request - including the ones your policies turn away.

Source: Imperva 2026 Bad Bot Report

npm i @apitraffic/sails

// npm i @apitraffic/sails
//
// config/apitraffic.js
module.exports.apitraffic = {
  token: process.env.API_TRAFFIC_TOKEN,
  bucket: process.env.API_TRAFFIC_BUCKET,
};
Sails loads the hook from your dependencies when it lifts. With the two environment variables set, this file is optional.

@apitraffic/sails records each request with the route Sails matched, and the firewall runs ahead of your policies, enabled from your account like everywhere else. tag(), trace() and span() work in policies, helpers and middleware as well as in your actions, and sails.lower() delivers what was captured before the server closes.

Sails 1.x · Node 20+ · types included · Sails setup guide · read the middleware source

Sails

What this looks like in Sails

Policies reject before your action exists

The 401s and 403s your policies produce are traffic worth looking at - a key probing endpoints it has never touched shows up here first. The hook runs ahead of the router, so they are recorded with their final status and whatever your policy tagged.

Blueprint routes are generated, not declared

Blueprints mean endpoints exist that nobody typed. Those are exactly the routes worth discovering - traffic arriving at a generated endpoint that is not in anyone’s spec - and they are recorded like every other request.

Lifting the app is not deploying an agent

Nothing changes about how you lift, host or scale. It is one dependency and, if you want it, one config file - the same conventions as every other Sails hook.

API traffic monitoring

Every Sails request, with its queries and its verdict attached

One pass through one middleware: the payload, every query and outbound call it caused, and the firewall's decision - on one record, watched for incidents, drift and regressions.

Pricing

Simple, published pricing

Every plan and what it includes, read live from our billing system - with a free trial and no credit card to start.

Solo

$79per month
Start free trial

Retention: 30 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 1M requests · Captured requests (then $0.08 per 1,000 requests)
  • 5 buckets · Buckets
  • 2 environments · Environments
  • 1 seat · Team members

Logging & search

  • 30 days · Retention window

Firewall

  • 2 policies · WAF policies per account

Alerts & drift

  • 1 channel · Alert channels

Integrations

  • 1 repository · Linked repositories
Most Popular

Team

$249per month
Start free trial

Retention: 180 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 5M requests · Captured requests (then $0.05 per 1,000 requests)
  • 20 buckets · Buckets
  • 5 environments · Environments
  • 20 seats · Team members

Logging & search

  • 180 days · Retention window

Firewall

  • 10 policies · WAF policies per account

Alerts & drift

  • Unlimited · Alert channels

Integrations

  • 5 repositories · Linked repositories

Business

$799per month
Start free trial

Retention: 365 days of request history

Replaces a request logger, an APM, an alerting tool and a WAF

Usage & limits

  • 25M requests · Captured requests (then $0.03 per 1,000 requests)
  • 100 buckets · Buckets
  • 20 environments · Environments
  • Unlimited · Team members

Logging & search

  • 365 days · Retention window

Firewall

  • Unlimited · WAF policies per account

Compliance

  • Compliance

Alerts & drift

  • Unlimited · Alert channels

Integrations

  • Unlimited · Linked repositories

Compare all plan features

Every plan starts with a 7-day free trial - no credit card to begin, and nothing is charged unless you choose a plan.

One bill instead of four: logging, APM, alerting and a firewall on every plan. On Team, that is less than $0.05 per 1,000 captured requests, with all four included.

Prices in the currency shown, excluding tax. Overage is billed per unit and rounded to the cent on the invoice.

FAQ

Sails API monitoring questions

Know what your API did - before your customers tell you.

One npm install and one line of code. Your first requests arrive in minutes, with their queries, their firewall verdict and a baseline for every endpoint already building.

Free trial · No credit card · Set up in minutes