API testing

API testing for the contracts your product depends on.

Verify the endpoints, permissions, error states, and integrations behind the interface — before a UI hides the failure.

What is API testing?

API testing verifies the contracts your product depends on: endpoints, authentication, permissions, error responses, rate limits, pagination, and webhooks. A UI can look correct while the API behind it returns the wrong data, leaks another tenant's record, or fails silently on retry.

Gil Product Studio tests REST and GraphQL APIs directly, then checks how the UI and integrations behave when the API is slow, empty, or broken. For SaaS-specific coverage, see SaaS QA testing. This is contract and behavior verification, not a full penetration test. We are explicit about the boundary.

What we test

Six areas of API coverage.

The checks follow the contract and the failure modes, not just the happy-path response.

API-01

Endpoint contracts

Request and response shapes, required fields, status codes, and pagination behavior.

  • REST and GraphQL endpoints
  • Schema and field validation
  • Pagination and filtering
API-02

Auth and permissions

Authentication, token handling, role boundaries, and cross-tenant isolation.

  • API keys and OAuth flows
  • Role-based access
  • Tenant and record isolation
API-03

Error handling

Malformed input, missing fields, expired tokens, and dependency failures.

  • 4xx and 5xx behavior
  • Error message consistency
  • Graceful degradation
API-04

Rate limits and pagination

The limits and paging behavior that protect the service and the client.

  • Rate-limit responses
  • Retry and backoff behavior
  • Large result sets
API-05

Webhooks and retries

Delivery, signatures, ordering, duplicate handling, and failure recovery.

  • Signature verification
  • Retry and idempotency
  • Duplicate and out-of-order events
API-06

Data integrity

The API returns the right record to the right caller, every time.

  • Create/read/update/delete
  • Cross-tenant boundaries
  • Consistency after retries
How it works

Four steps from contract to confidence.

API testing starts with the documented contract and then tests the failure modes.

01
Map the contracts
We inventory the endpoints, auth model, integrations, and the data each caller is allowed to see.
02
Build the checks
We write contract and behavior tests for the happy path, permissions, and edge cases.
03
Test failure modes
We exercise malformed input, expired tokens, rate limits, retries, and dependency failures.
04
Wire into CI
The checks run on the changes that matter, with artifacts that make failures traceable.
What you get

What you get at the end.

A contract-level record of what works, what fails, and what needs a fix.

Endpoint matrix

Endpoints, methods, auth requirements, and the checks that cover them.

Contract checks

Request/response validation and schema assertions.

Auth and permission cases

Role, tenant, and token-boundary tests.

Error and edge-case report

Malformed input, expired tokens, rate limits, and dependency failures.

Webhook verification

Delivery, signature, retry, and duplicate handling.

CI integration

The checks run automatically, with artifacts for failures.

Who this is for

Where API testing pays off.

If the API is the product or the integration layer, the UI is not enough.

The risk is the contract

Public or partner API

External developers depend on the contract, and a breaking change is a support incident.

The risk is hidden

UI and API integration

The interface looks right, but the data behind it may be wrong or missing.

The risk is isolation

Multi-tenant permissions

One mis-scoped query can expose another customer's data.

Pricing factors

What changes the quote.

API scope is driven by the number of contracts, auth complexity, and the integration surface.

Endpoint count The number of routes and operations determines the size of the matrix.
Auth complexity API keys, OAuth, roles, and tenant boundaries add test cases.
Environments and data Seeded data and sandbox access affect how realistic the checks can be.
Webhook and integration scope Retries, signatures, and third-party dependencies add failure modes.
CI integration Where the checks run and what artifacts they produce changes the setup.
Documentation quality A current OpenAPI or GraphQL schema makes coverage faster and more reliable.

API testing is often paired with a regression suite or a SaaS QA engagement. We scope it after reviewing the contracts.

Questions

Frequently asked

What is API testing?

API testing verifies the contracts and behavior behind an interface: endpoints, authentication, permissions, error responses, rate limits, pagination, webhooks, and data integrity. It catches failures that a UI test may never see.

Do you test GraphQL APIs?

Yes. We test GraphQL queries, mutations, schema behavior, field-level permissions, and error responses, alongside REST endpoints where both exist.

Can you test third-party APIs?

We test your integration with a third-party API: auth, request/response handling, error paths, retries, and fallbacks. The third-party service's internal reliability is outside our control, and we will say so.

Do you perform security testing?

We test authentication, authorization, tenant isolation, and error handling as part of API behavior. That is not a full penetration test or a substitute for a dedicated security assessment.

How is API testing reported?

You get an endpoint matrix, pass/fail results, reproduction details for each failure, severity, and a prioritised fix list. Checks can be integrated into CI where the scope includes automation.

Next step

Verify the contract before your customers do.

Start with a QA Audit — fixed price, one week, plain-language report.