Applications & codeAPI penetration testing

API Penetration Testing Services

API penetration testing is a manual, authorized attack on your REST, GraphQL and webhook endpoints that checks whether one user can reach another’s data.

Key facts

Price
$2,500–$5,500
By size
1–3 roles: from $2,500; multi-tenant: up to $5,500
Typical timeline
1–3 weeks plus a few days for the report
Aligned with
OWASP API Security Top 10 and WSTG
Contract
NDA on request · professional indemnity insurance

Priced in tester-days NDA on request Retest available after fixes How the test works See a sample report

API penetration testing is a manual, authorized attack on your REST, GraphQL and webhook endpoints that checks whether one user, role or tenant can reach another’s data or functions. Pentestica’s certified pentesters test every in-scope endpoint role by role and object by object, aligned with the OWASP API Security Top 10.

What an API test covers

  • Object level authorization (BOLA) per role and tenant
  • Function level authorization (BFLA) and mass assignment
  • Authentication and token handling
  • Rate limiting and resource consumption
  • REST, GraphQL and webhook endpoints
  • Request and response evidence per finding

Fixed scope, tester-days and price, agreed after a scoping call about your endpoints, roles and tenants, before testing starts. $2,500 to $5,500 for a standard web application or API test. Small API (1–3 roles): from $2,500; multi-tenant API with admin functions: up to $5,500; fixed price for the agreed scope, confirmed in writing before testing. Work outside the agreed scope can cost more. Priced in tester-days, no hidden fees. We sign an NDA before testing.

Price, effort and report

An API penetration test at Pentestica costs $2,500 to $5,500 per API. A small single-API scope starts at about 5 tester-days; most take 5 to 10. The report pairs an Executive Summary with a Technical Report that shows the endpoint, role, request and response behind each finding, plus the fix. A retest is available after fixes.

An API pentest targets the layer underneath the interface: authentication, authorization, input handling, rate control and business logic exposed over REST, GraphQL or webhooks.

The difference from a web application penetration test changes how the test is planned. A web app has a user interface that hides fields, disables buttons and enforces the order of steps. An API has none of that. Every endpoint has to enforce its own rules, per role and per object, and a single missing authorization check can expose the records of every customer in the database rather than one page of one account.

Key takeaways

  • API penetration testing checks authorization per endpoint and per object, because there is no interface layer to enforce it for you.
  • Broken object level authorization is first on the OWASP API Security Top 10 (2023): one unchecked identifier can expose every customer record.
  • REST, GraphQL and webhooks each fail differently, so the test plan changes with the technology.
  • A standard web application or API pentest at Pentestica runs $2,500 to $5,500, typically 1 to 3 weeks of testing plus a few days for the report.
  • PCI DSS v4.0.1, DORA, NIS2 and GDPR all push regulated organizations toward regular, evidence-backed testing of the interfaces that carry sensitive data.

Last updated: November 29, 2026

API pentest: every role and tenant calls every endpoint, checked for BOLA, BFLA and mass assignment
Every endpoint, called as every role and from another tenant.
~

Authorization first

Two accounts per role and a second tenant, so every object and every function is tested against every role.

Z

OWASP API Top 10

All ten categories tested by hand, not matched against a signature list.

REST and GraphQL

Introspection, batching, query depth and per-resolver limits get their own checks.

Evidence per finding

Each issue ships with the request and response that prove it, plus the fix.

Why APIs are tested differently from web applications

APIs are tested differently because nothing between the attacker and the backend enforces intent. The interface that normally guides a user through steps 1, 2 and 3 is absent, so a tester can call step 3 first, call it as the wrong user, call it with fields the form never displayed, or call it ten thousand times in a minute. That freedom is exactly what an attacker has, and it is why API security testing built only on automated scanning can look clean while authorization and logic flaws stay untested.

Four properties shape how we plan the work:

  • No enforced sequence. Multi-step flows such as checkout, KYC or password reset can be entered out of order, which is where state and logic flaws surface.
  • Machine speed. Requests arrive as fast as a script can send them, so missing rate limits turn into credential stuffing, inventory hoarding, SMS cost abuse and race conditions.
  • Versioning and forgotten endpoints. Old versions, staging hosts and deprecated routes can stay reachable after the product team moves on, and may not receive the patches the current version gets.
  • Documentation is an attack map. An OpenAPI or GraphQL schema shows a tester every documented parameter and type. So we use it, and we also look for what it fails to mention.

For multi-tenant platforms, see how we scope SaaS and multi-tenant APIs.

A pattern from our API tests: in one B2B API, an administrative endpoint was hidden in the interface but still answered direct calls, so a standard user could run an admin-only operation. A scan can miss this, because it doesn’t know the permission model. The client moved the permission check from the front end to the backend.

If a mobile app calls your API, a mobile app penetration test covers the app side as well. If the API serves an LLM chatbot or AI agent, AI penetration testing covers prompt injection and the actions the agent can take.

Know which endpoints, roles and tenants need testing?

Send us the spec, the roles and the tenants in scope and get the test type, tester-days, timeline and a fixed price in writing. Prefer to compare first? See our prices.

What we test: the OWASP API Security Top 10

Ten categories, each one tested by hand against your endpoints and your roles.

Our test plan follows the OWASP API Security Top 10 (2023), extended with business logic cases specific to your product. Here is what each category means in practice rather than in the abstract:

~

Broken object level authorization (BOLA)

You change an ID in the path or body and the API hands you another customer’s invoice, message or account.

Broken authentication

A token signature is never verified, a refresh token never expires, or the one-time code endpoint accepts unlimited guesses.

Broken object property level authorization

The response carries fields the role should never see, or the endpoint accepts a field the form never sent, such as adding a role value to a profile update.

Unrestricted resource consumption

No rate cap, size cap or pagination limit, so one script drains your SMS budget, your third-party API quota or your database connections.

Broken function level authorization

A standard user reaches an administrative route by guessing the path or by switching the method from GET to DELETE.

Unrestricted access to sensitive business flows

A bot completes registrations, bookings or promo redemptions at machine speed, and nothing in the flow distinguishes it from a customer.

Server side request forgery (SSRF)

An endpoint fetches a URL you supply, so the server can be made to reach internal services or the cloud metadata address.

Security misconfiguration

Stack traces in error responses, permissive CORS rules, debug routes left enabled, or headers that expose the stack and its version.

Improper inventory management

Version 1 is still live and unpatched beside version 2, or a staging copy of the API answers on public DNS with production data behind it.

Unsafe consumption of APIs

Your backend trusts a partner or third-party response and writes it straight into the database without validating it.

OWASP API Security Top 10 (2023) as a test plan

Each risk, the test we run against your endpoints and a typical finding as it reads in a report (illustrative, not taken from a specific client).

RiskWhat we testExample finding
API1:2023 Broken Object Level AuthorizationEvery object ID in paths, bodies and filters, swapped between two accounts of the same role and across tenantsAnother customer’s invoice returned after changing the ID in GET /invoices/{id}
API2:2023 Broken AuthenticationToken signature and expiry, refresh and logout, password reset and one-time code endpointsA token from a logged-out session still accepted by the backend
API3:2023 Broken Object Property Level AuthorizationResponse fields per role, and fields the client never sends on create and update callsA role field accepted on a profile update (mass assignment)
API4:2023 Unrestricted Resource ConsumptionRate, size, pagination and batching limits on costly endpointsNo rate limit on an object lookup, so a script walks through sequential IDs
API5:2023 Broken Function Level AuthorizationAdmin and internal routes called from lower roles, including methods the documentation leaves outA standard user runs an admin-only operation by calling the route directly
API6:2023 Unrestricted Access to Sensitive Business FlowsSign-up, booking, checkout and promo flows run at script speed and out of orderPromo codes redeemed in bulk by a script that the flow treats as a customer
API7:2023 Server Side Request ForgeryEvery parameter that takes a URL, including webhook destinations and redirectsA webhook worker follows a redirect to an internal address without revalidating it
API8:2023 Security MisconfigurationCORS rules, error handling, debug routes, HTTP methods and TLSStack traces in error responses reveal the framework and internal paths
API9:2023 Improper Inventory ManagementOld versions, staging hosts and endpoints missing from the specificationA retired /v1/ path still answers and returns more data than v2
API10:2023 Unsafe Consumption of APIsHow your backend validates partner and third-party responses before it uses themA partner response written to the database without validation

Source: OWASP API Security Project, Top 10 2023 edition, checked November 2026.

REST, GraphQL and webhooks: what changes

REST APIs

REST API penetration testing centers on identifiers and methods. Testers walk every resource path with every role, swap object IDs between accounts, try methods the documentation does not list, and check whether filtering and pagination parameters can be pushed past their intended bounds. Versioned paths get special attention, since an older version can miss checks the current one has.

GraphQL APIs

GraphQL penetration testing starts with the schema and ends with the resolvers. If introspection is enabled in production, it hands over the full type graph. Batched queries let one HTTP request carry hundreds of operations, which defeats rate limits counted per request. Deeply nested or cyclic queries can exhaust the server on their own. Authorization needs checking per resolver: a mutation may be protected while a nested field on another query returns the same data unguarded. The OWASP GraphQL Cheat Sheet documents the defensive controls we verify.

Webhooks

Webhooks reverse the direction of trust, so we test your receiver. We check whether the signature is verified at all, whether it is compared in a way that resists timing analysis, whether a captured payload can be replayed later, and whether timestamps and nonces are enforced. We also test what happens when the payload is valid but the content is hostile, since a receiver can treat webhook data as trusted input.

How do we test BOLA, BFLA and mass assignment in an API?

We start from an endpoint-by-role matrix: every endpoint, called as every role, as a second account of the same role and as a user from another tenant, with fields the client never sends. Each cell the API should refuse becomes a test case, for example for broken object level authorization (BOLA), broken function level authorization (BFLA) or mass assignment. Our explainer on BOLA and mass assignment shows what those requests look like and how to fix them.

Example matrix for a multi-tenant invoicing API (simplified for illustration, not a client’s actual test plan; yours is built from your spec and roles during scoping). Cells name roles; the last column is the test case.

EndpointAllowedMust be deniedTest case
GET /invoices/{id}Customer: own; Accountant: own tenantSecond customer, other tenantAnother invoice ID (BOLA)
GET /orgs/{orgId}/usersOrg admin: own organizationOrg admin of another tenantAnother organization ID (BOLA across tenants)
DELETE /users/{id}Platform adminOrg admin, customerThe same call from a lower role (BFLA)
PATCH /users/meAny user: name, emailSame user: role, tenant, planA role field the form never sends (mass assignment)
GET /v1/invoicesNobody: version retiredEvery roleThe old path beside v2 (improper inventory management)
Any call after logoutNobodyEvery roleA token from a logged-out session (broken authentication)

In one multi-tenant SaaS API, an organization admin could change the organization ID in a request and pull part of another customer’s data. A scan can miss this, because spotting it takes several accounts and a comparison of what each one gets. The client added central tenant ID validation for every API request.

When your API calls out: what our webhook SSRF case showed

Authorization isn’t the only boundary. In a grey box test of a logistics platform’s partner API, the risk sat in outbound connections.

u

1. The obvious route was blocked

Saving a private IP address as the webhook destination was blocked, so the boundary looked enforced.

U

2. The delivery worker followed a redirect

The tester pointed the webhook at a controlled public endpoint that returned a redirect. The delivery worker followed it to an agreed internal test endpoint without revalidating the destination.

3. Proof without data access

A unique marker on the internal endpoint and the matching worker log entry confirmed the connection. The report kept confirmed SSRF apart from unproven data retrieval.

4. Fix and retest scope

Redirects were disabled, validation strengthened and the worker got its own network controls. The retest covered the original redirect, IPv4 and IPv6 destinations and multi-step redirects.

Read the case study

How an API penetration test runs

u

Scoping and rules of engagement

We agree the endpoint list, roles, environment, testing window, excluded actions and escalation contacts in writing before anything is sent.

Endpoint inventory

We reconcile the documentation against what the API actually answers, then hunt for undocumented, deprecated and staging endpoints that belong in scope.

~

Authorization analysis per role and per object

Every in-scope endpoint is called with every role, and object references are tested across account boundaries. This is where BOLA and BFLA are tested.

Exploitation with evidence

Confirmed issues are exploited far enough to prove impact and no further, with the exact request and response captured for the report.

Reporting and retest

We deliver the report, walk your team through it, and a retest is available after fixes.

What we need before testing starts

We need documentation, credentials and a defined environment. Good inputs shorten the inventory phase and put more tester time into authorization analysis per role and per object. If you can share source code, a secure code review run alongside the test shows the pattern behind each finding. Before the test, our API security checklist shows which of 25 pre-release checks your team can close in-house and which need a tester. Still designing the API? Threat model your API design first, and the threats it finds become test cases.

  • Specification. An OpenAPI file, a GraphQL schema, or an exported API client collection. A recorded traffic capture works too.
  • Test accounts in every role. At least two accounts per role, so we can test one user against another, plus admin, support and partner roles where they exist. For a multi-tenant API, accounts in at least two tenants.
  • Environment and access. Target hostnames, the remote access agreed during scoping, and any allowlisting needed so a WAF doesn’t block the test before it reaches the API.
  • Constraints. Endpoints that trigger payments, messages or irreversible actions, plus traffic limits and the contact who can pause the test.

What you receive

You receive two documents, and a retest is available after fixes. The Executive Summary is written for management and boards: risk in business terms, what an attacker could reach, and what to prioritize. The Technical Report is written for engineers.

Each technical finding includes the affected endpoint and method, a severity rating with the reasoning behind it, the full request and response as proof, the business impact, and step-by-step remediation that names the control to add rather than telling you to “validate input”. When a retest is run, we confirm in writing whether each issue is closed.

How long does an API pentest take, and how is it priced?

A typical engagement takes 1 to 3 weeks of testing plus a few days to produce the report, and a standard web application or API penetration test costs between $2,500 and $5,500. We price in tester-days with no hidden fees, so the estimate moves with the amount of work rather than with the size of your company.

For example, a SaaS API with about 40 endpoints, three user roles, an admin panel, MFA and a payment integration might need about 5 to 7 tester-days (an example, not a price list).

What moves the priceWhy it matters
Number of endpointsEvery endpoint is tested against every role, so effort grows with both counts together.
Roles and tenantsMulti-tenant and partner APIs multiply the authorization combinations to check.
Technology mixREST, GraphQL and webhook receivers in one product means three test plans.
Compliance scopeEvidence mapped to specific control requirements adds reporting time.
Retest depthVerifying a few fixes is quick; re-validating a reworked authorization layer is not.

Our pricing page breaks down the ranges for other assessment types, and the services overview shows how API testing fits alongside infrastructure, cloud and red team work.

Which regulations ask for API testing evidence?

PCI DSS, DORA, NIS2 and GDPR come into play whenever your APIs carry cardholder data, personal data or a financial service and the relevant framework asks for tested, evidenced security controls. The requirement follows the data and the service, and the API is where both live.

FrameworkRequirementWhat it means for your API
PCI DSS v4.0.1Requirement 11.4Penetration testing at least every 12 months and after significant changes, so a payment API in scope follows that cycle.
DORA (EU) 2022/2554Articles 24 and 25Financial entities run a digital operational resilience testing program, and those selected by their TLPT authority also run threat-led penetration testing (Articles 26 and 27). Customer-facing and partner APIs that support those services belong in that program.
NIS2 (EU) 2022/2555Article 21Risk management measures include assessing the effectiveness of security controls.
GDPR (EU) 2016/679Article 32Lists, as appropriate, a process for regularly testing technical measures. An API exposing personal data sits inside that process.
SOC 2, ISO 27001, HIPAAAudit evidenceThe report can serve as evidence for your SOC 2 auditor, an ISO 27001 risk assessment or a HIPAA security risk analysis.

See the API tests we ran

A grey box test of a high volume payment API, with every endpoint called as each of three roles (customer, merchant and support operator), uncovered a critical broken object level authorization flaw and a race condition that allowed double spending, both missed by automated scans. Read the FinTech API case study.

“Pentestica found logic bugs our automated scans had never flagged.” CISO of the client

The webhook walkthrough above follows our SSRF case study of a partner API. On a cloud host, the same flaw usually goes after the instance metadata service, as our guide to SSRF in AWS shows.

Logic flaws sit behind APIs too: our business logic case study of an approved purchase order shows how a draft-saving function still changed an order after approval.

How can you vet an API pentest provider before you hire one?

Ask any provider these four questions; our answers to the last two are below.

  • Will you test with two accounts per role and a second tenant?
  • Do you look for endpoints the spec doesn’t list? Our fintech test found live endpoints missing from the specification.
  • Can I see a sample finding with the endpoint, method, role, request and response?
  • Who runs the test, and which API tests have you published?
Example page of a redacted Pentestica penetration test report with a critical finding, evidence and remediation steps

What does an API finding look like in the report?

Every report opens with an executive summary for management, then one page per finding: severity and CVSS score, the endpoint, method and role used, the request and response that prove exploitation, business impact and step-by-step remediation. Browse our sample pentest report with every section explained.

Who tests your API?

Senior pentesters from our penetration testing team of 25, holding hands-on offensive security certifications such as OSCP and OSCE alongside CEH, CISA, CISM and CRISC. On an API engagement they work from your spec and live traffic, calling each in-scope endpoint with each role by hand. We sign an NDA before testing and carry professional indemnity insurance.

OSCP certificationOSCE certificationCEH certificationCISA certificationCISM certificationCRISC certificationISO/IEC 27001 Lead Auditor certification

Frequently asked questions

What is the difference between API penetration testing and API security testing?

API security testing is the broad term for any activity that checks an API for weaknesses, including automated scanning, dependency checks and static analysis in the build pipeline. API penetration testing is one part of it: a manual, time-boxed engagement where testers attempt real exploitation and prove impact with evidence. Scanners find known patterns well; only a person can judge that a request is technically valid but should never have been allowed.

Can you test an API without documentation?

Yes. When no specification exists, we build the endpoint inventory from traffic captures, client applications, JavaScript bundles and mobile app analysis, then confirm each endpoint by calling it. Expect more of the schedule to go into discovery, which leaves less time for deep authorization testing at the same budget. Even a rough request collection shifts that balance in your favor.

Do you test in production?

We test in staging or production, as set in the rules of engagement agreed during scoping. When we work in production, we agree exclusions for destructive and irreversible actions, cap request rates, use clearly marked test accounts, and keep a named contact available to pause testing immediately.

How many endpoints can you cover?

Coverage depends on tester-days and role count rather than a fixed endpoint number, because every endpoint is tested against every role and across account boundaries. For large APIs we agree a priority order during scoping: authentication, payments, personal data and administrative endpoints first, low-risk read-only endpoints last. The report states exactly what was covered and what was not.

Do you retest API findings after we fix them?

Yes, a retest is available after fixes; whether it’s included depends on the engagement and is set out in the quote. Once your team deploys the remediation, we re-run the original attack paths and check sibling endpoints and roles, not just the patched parameter. The updated report marks each finding as fixed, partially fixed or still present.

Is there an API pentest checklist we can use to prepare?

Yes. Our API penetration testing checklist covers what a test should include and what to prepare before it starts.

Fixed-price quote

Request an API penetration test

Send us the details below. You get a written scope, the number of tester-days and a fixed price before any testing starts. No hidden fees.

  • Endpoints: base URL, approximate count and spec format
  • Roles and tenants: user roles, whether the API is multi-tenant, and at least two test accounts per role
  • Authentication and integrations: token type, webhooks, partner or payment APIs
  • Environment: staging or production, plus any WAF
  • Deadline and any compliance requirement

Standard web app or API test: $2,500–$5,500, priced in tester-days. All prices

Compare it with typical pentest budgets by test type.

What happens after you send it

  1. Tell us what to test Send the details listed above.
  2. Get a written scope and price We reply by email with scoping questions about endpoints, roles and tenants, or a fixed quote in tester-days.
  3. Test, report, retest A typical test takes 1–3 weeks plus a few days for the report. Critical findings, such as another customer’s records in reach, are reported during testing. Retesting after fixes is available.
  • OSCP, OSCE and CISSP certified testers
  • 500+ penetration tests
  • Aligned with OWASP WSTG, PTES and NIST SP 800-115
  • Executive summary and technical report
  • NDA signed before testing
  • Professional indemnity insurance