API testing

Check what your API actually returns.

An endpoint can return the expected status and still return the wrong business result. With Cue April, test approved response expectations, input rules and supported access scenarios, then inspect the actual observations behind each outcome.

What is API testing?

API testing sends requests to your API and checks each response against the expected result, including status codes, response bodies, schemas and access rules. It tests the service directly, below the user interface.

Connect assertions to expected behaviour.

Define the operation, allowed actions, inputs and expected response in the approved testing scope. Supported assertions examine response status and declared values or schemas. This gives developers a specific comparison to investigate: what the API should have returned and what the executed check observed. The source revision and target remain part of that result.

Exercise a reviewed set of invalid inputs.

Supported schema campaigns prepare a finite set of valid and schema-invalid JSON requests before review. Execution uses that approved set and preserves case identities, response observations and completion counts. A missing response, redirect or exhausted limit remains incomplete. A completed case with the wrong expected value fails, even when its HTTP status looks correct.

  • Review the operation and expected rejection behaviour.
  • Retain the request corpus identity and execution evidence.
  • Investigate or replay the exact case associated with a failure.

Agree the target before sending traffic.

An evaluation should identify a suitable environment, synthetic data, allowed effects and spending limit. Schema campaigns support a bounded schema and operation subset; broader workflows, authentication matrices and performance workloads have separate requirements. Production writes require explicit authority. We review those boundaries with you before a scoped run starts.

Questions about this testing method

01

Is schema testing a complete security assessment?

Schema checks establish how the approved cases behaved. Security assessment needs its own scope and expectations, including relevant roles, tenant boundaries and authorised actions.

02

Can a response teach the agent what should pass?

The expected result is approved before execution. Observed responses cannot silently rewrite that expectation or expand the reviewed request campaign.

03

How do you test an API?

Decide the expected result for each request first: the status, body, schema and who may call it. Then send the requests to an agreed environment with synthetic data, compare each response with its expectation and keep the evidence for any failed case.

04

Can API tests run automatically on every change?

Yes. Automated API testing runs the same checks whenever the code changes. With Cue April, approved API assertions and schema campaigns run inside the plan your team approved, and each failure keeps the exact case behind it.

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.