Skip to content

Mock API

A mock API simulates a real API by returning predefined responses. Developers and testers can work without depending on live external services.

  1. In the left navigation, open API Tests, then select Mock API’s.

  2. In the Create New Mock API section, enter the endpoint URL to mock in the Endpoint field, for example /resource.

  3. Use the HTTP Method dropdown to choose GET, POST, PUT or DELETE.

  4. In the Response field, enter the response the real API would return. For example:

    { "status": "success" }
  5. Select Save.

Send requests to the mock endpoint with Postman, curl or CloudQA’s API tests, and check that it behaves as you expect.