NewOffensive AI & LLM penetration testing is now available —Learn more →
xtreme.infosec
Book a call30 min · free · Google Meet
BlogAPI security

API Security Checklist for Product Teams: 40 Checks to Ship

A practical API security checklist for product teams: 40 checks across authentication, authorisation, data exposure, rate limiting, inventory and logging, mapped to the OWASP API Top 10.

By Xtreme InfoSec Security Team·12 Nov 2026·9 min read

An API security checklist is a short list of controls your team confirms before an API goes live, and again whenever it changes. It covers who can call the API, what each caller is allowed to see and do, how much they can ask for, what data comes back, and whether you would notice if someone misused it.

Most serious API problems need no clever exploit: an endpoint returns another customer's record when you change an ID, or an old API version still runs without the newer checks. The checklist below is written for product and engineering teams in SaaS, fintech and e-commerce, and it is grouped so a tech lead can walk through it in a sprint review.

Key takeaways

  • Authorisation on every object and every function is the single most important API control. Most real API incidents start there.
  • Authentication is not the same as authorisation: a valid token tells you who is calling, not what they may access.
  • Return only the fields a screen needs, and accept only the fields a caller is allowed to change.
  • Rate limiting and size limits protect both your infrastructure bill and sensitive business flows like OTP, login and checkout.
  • Keep an inventory of every API, version and environment. Forgotten endpoints are where attackers look first.
  • A checklist reduces common mistakes, but business-logic flaws still need a manual API penetration test.

Why APIs need their own security checklist

Mobile apps, single-page web apps and integrations all talk to the same endpoints, and anyone can watch that traffic, copy a request and change it. Every parameter, header and ID the app sends is something an attacker can edit.

That is why OWASP keeps a separate list for APIs. The OWASP API Security Top 10 (2023 edition) is led by broken object level authorisation, broken authentication and broken object property level authorisation. Notice that three of the top five items are about access control, not about injection or encryption. The checks below apply to REST APIs, GraphQL APIs and internal microservices alike, and most are cheap to build in early and expensive to retrofit later.

The API security checklist, section by section

Treat each item as a yes or no question. If the answer is "not sure", that is a no until someone checks the code or tests it.

1. Authentication (who is calling)

  • Every endpoint requires authentication unless it is deliberately public, and the public list is written down and reviewed.
  • Tokens are validated on the server for signature, issuer, audience and expiry on every request. Unsigned tokens and unexpected signing algorithms are rejected.
  • Access tokens are short-lived. Refresh tokens are rotated, can be revoked, and are invalidated on logout and password change.
  • API keys for server-to-server use are scoped to the minimum permissions, stored in a secrets manager, and never shipped inside mobile apps or front-end code.
  • Login, OTP and password-reset endpoints have brute-force protection and give the same response whether or not the account exists.
  • If you use OAuth 2.0, follow the current best practice (RFC 9700): authorisation code flow with PKCE for apps, exact redirect URI matching, and no implicit flow.

2. Object and function level authorisation (what they may touch)

  • For every request that takes an ID (order, invoice, user, file), the server checks that the logged-in user or tenant owns or may access that specific object.
  • The ownership check happens in the data layer or a shared policy layer, not in each controller by memory.
  • Admin and internal functions live on separate routes with their own role checks. Hiding a button in the UI is not a control.
  • Changing the HTTP method (GET to PUT or DELETE) does not bypass a check that was only written for one method.
  • In multi-tenant SaaS, every query is filtered by tenant ID taken from the token, never from a request parameter.
  • Hard-to-guess IDs are treated as defence in depth, never as authorisation.

Broken object level authorisation is the item scanners miss most often, because a scanner cannot know which invoice belongs to which customer. Testing it properly needs two or more test accounts and a human who understands your data model. Our API penetration testing guide explains how that testing is scoped.

3. Data exposure and input handling

  • Responses are built from explicit output schemas or DTOs. The API never returns a whole database object and relies on the front end to hide fields.
  • Fields like password hashes, internal flags, other users' contact details and full card or Aadhaar numbers never appear in responses.
  • Write endpoints accept an allow-list of fields. A user cannot set fields such as role, is_verified, balance or tenant_id by adding them to the request body (mass assignment).
  • All input is validated for type, length, format and range against a schema, and unknown fields are rejected or ignored by design.
  • Database access uses parameterised queries or a safe ORM pattern. User input is never joined into queries, shell commands or file paths.
  • Endpoints that fetch a URL supplied by the user (webhooks, image import, PDF generation) block internal addresses and cloud metadata services to prevent server-side request forgery.
  • File uploads check type and size on the server, are stored outside the web root, and are scanned or processed in isolation.

4. Rate limiting and resource limits

  • Rate limits are applied to each user, each API key and each IP address, with stricter limits on login, OTP, password reset, search and export.
  • Pagination is enforced with a maximum page size. A caller cannot ask for 100,000 records in one request.
  • Request body size, upload size, query complexity (for GraphQL, depth and cost limits) and timeouts are set.
  • Calls that cost you money, such as SMS, email, payment or third-party lookups, have their own quotas and alerts.
  • Sensitive business flows (coupon redemption, referral rewards, ticket booking, account creation) have checks against automated abuse, not just technical rate limits.
  • Throttled requests return HTTP 429 with a clear message, and limits are tested, not just configured.

5. Transport, configuration and headers

  • TLS 1.2 or higher everywhere, including internal service-to-service calls where practical. HTTP is redirected or refused.
  • CORS allows only known origins. A wildcard origin is never combined with credentials.
  • Error messages are generic for callers. Stack traces, SQL errors and framework versions stay in server logs.
  • Debug endpoints, Swagger or GraphQL introspection, and admin consoles are disabled or protected in production.
  • Unused HTTP methods are disabled, and security headers are set on responses that browsers render.

6. Inventory, versions and third-party APIs

  • There is a current list of every API host, version and environment (production, staging, UAT), with an owner for each.
  • Old API versions are retired on a schedule. If v1 must stay up, it gets the same security fixes as v2.
  • Staging and UAT do not hold real customer data and are not open to the internet without authentication.
  • Data received from third-party APIs is validated just like user input, and calls to them use timeouts and TLS.
  • Webhooks you receive are verified with a signature or shared secret before you act on them.

7. Logging, monitoring and response

  • Authentication failures, authorisation failures, rate-limit hits and admin actions are logged with user, tenant, IP and request ID.
  • Logs never contain passwords, tokens, OTPs or full card numbers.
  • Alerts fire on patterns such as one user reading many other users' objects, or a spike in 401 and 403 responses.
  • Logs are kept for the period your regulators and contracts require. Indian entities covered by the CERT-In directions of April 2022 should note the 180-day log retention requirement and check the latest guidance for their sector.
  • The team knows who to call and what to switch off if an API key leaks or an endpoint is being abused.

How the checklist maps to the OWASP API Security Top 10

If a customer or auditor asks whether your API addresses the OWASP API Security Top 10, this table shows where each risk is covered above.

OWASP API Top 10 (2023)What it means in plain wordsChecklist section
API1 Broken Object Level AuthorizationUser A can read or change user B's record by changing an ID2
API2 Broken AuthenticationWeak login, token or session handling1
API3 Broken Object Property Level AuthorizationToo many fields returned, or fields a user should not set can be set3
API4 Unrestricted Resource ConsumptionNo limits on requests, size or costly calls4
API5 Broken Function Level AuthorizationNormal users can call admin functions2
API6 Unrestricted Access to Sensitive Business FlowsAutomated abuse of flows like OTP, coupons or bookings4
API7 Server Side Request ForgeryThe server can be made to fetch internal URLs3
API8 Security MisconfigurationLoose CORS, verbose errors, debug features left on5
API9 Improper Inventory ManagementOld versions and forgotten hosts still running6
API10 Unsafe Consumption of APIsTrusting data from third-party APIs too much6

REST API security in the development lifecycle

A checklist works best as part of how the team ships, not a document opened once a year:

  1. Design: for every new endpoint, write down who may call it and which objects they may access. This one line prevents most authorisation bugs.
  2. Code review: add the authorisation and field allow-list checks to your pull request template. Reviewers should ask "what stops another tenant from calling this?"
  3. Automated tests: write integration tests that call endpoints as the wrong user and expect a 403 or 404. These tests are cheap and catch regressions for years.
  4. Static analysis: SAST tools and secret scanners in CI catch injection patterns and hardcoded keys. They will not catch missing ownership checks, so do not rely on them alone. See our comparison of SAST vs DAST for what each finds.
  5. Before major releases: a manual API penetration test with multiple roles and tenants, focused on the business logic your tools cannot understand.

Common API authentication and authorisation mistakes we see

None of these patterns is exotic, which is why they are worth checking first.

  • Trusting the client for the user ID. The API reads user_id from the request body instead of from the verified token.
  • Checking access on the list, not the detail. The list endpoint filters by user, but the single-record endpoint does not.
  • Mobile-only endpoints with weaker checks. A route built for the app skips checks because "only the app calls it".
  • OTP without limits. A 4 or 6 digit OTP endpoint with no attempt limit or expiry can be guessed with enough requests.
  • Export features. CSV or PDF export endpoints that accept a date range or account ID and do not re-check ownership.
  • Long-lived tokens. Tokens that never expire, or survive a password change, turn one leak into permanent access.

What a checklist cannot do

A checklist confirms that known controls exist. It does not prove they work in every endpoint, and it cannot find flaws in your business rules, such as a refund that can be triggered twice.

That is the role of an API penetration test. A good test uses several roles and tenants, tries the checks above by hand, and reports each finding with a reproduction and a fix. If your API is mostly consumed by a mobile app, pair it with mobile application testing so the client side is covered too.

At Xtreme InfoSec, API testing is manual and expert-led, every finding is verified before it goes in the report, findings are mapped to the OWASP API Security Top 10, and a retest after your fixes is included at no extra cost. API testing starts from ₹15,000, and the final price is a fixed quote after scoping. You can get a rough idea with our VAPT cost estimator.

Frequently asked questions

What should an API security checklist include?

At minimum: authentication and token handling, object and function level authorisation, control of which fields are returned and accepted, input validation, rate and size limits, secure configuration, an inventory of all API versions, and logging with alerts. The OWASP API Security Top 10 is a good framework to check coverage against.

Is REST API security different from GraphQL security?

The principles are the same: authorise every object and field. GraphQL adds introspection in production, deeply nested queries and batching that can bypass rate limits, so add query depth and cost limits.

Can an automated scanner check this API security checklist for us?

Partly. Scanners can find missing headers, some injection issues, weak TLS and exposed documentation. They usually cannot tell whether user A can read user B's data, because that depends on your data model. Authorisation and business logic need manual testing.

How often should we test our APIs?

Run automated checks in every build, and get a manual API penetration test at least once a year and before major releases, new integrations or large customer onboarding. Many enterprise buyers ask for a recent report during vendor assessments.

Want an expert to check your APIs?

Xtreme InfoSec tests REST and GraphQL APIs manually, with multiple roles and tenants, and maps every finding to the OWASP API Security Top 10 with step-by-step fixes and a free retest. Share your API documentation or Postman collection and get a fixed quote.

Get an API test quote

Keep reading

Get started

Get a free quote for your VAPT.

Share your app, scope and deadline. You’ll get a clear plan, a timeline and a fixed quote — we reply within 1 hour.

+91 98183 63944

    Message Us

    Tell us what you need — we’ll reply with clear next steps and a fixed quote.

    Your details stay confidential and are used only to respond to your enquiry.

    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

    Chat on WhatsApp