---
schema_version: "1"
id: 34bced3967a9a3cb6237dbf7237d238f932d9cbbf0df044185c66f66ab67c370
title: Simulating API Calls Using the Mocking Service
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-experience-hub/simulating-api-calls-using-the-mocking-service.md
canonical_url: https://docs.mulesoft.com/api-experience-hub/simulating-api-calls-using-the-mocking-service
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e0f1fc8dbb20ebde5e26f6af5b33d5f2cdf9ca6aacac792e494d7216795ecb66
description: MuleSoft Documentation Site
latest: true
---
---
product: API Experience Hub
---

# Simulating API Calls Using the Mocking Service

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

To simulate calls to your API, use the mocking service in the API Console of the portal, you can
simulate calls to your API. The mocking service is a feature of Anypoint that enables you to
generate simulated servers to help you develop and test APIs. These mock servers imitate the actions
of accepting requests and providing responses. The mocking service replicates the functionality of a
genuine API.

## Before You Begin

You must have an API specification with at least one endpoint and one method in it.

## Simulate a Call to an API Using an Internal URL

To access the internal URL, you must specify the authorization headers as part of the request URL.
To test an API without supplying authorization headers, generate a mocking service public URL for
this project. The mocking service is the selected server in the **Try it** pane.

1.  On the **Home** or the **Services** page, select a REST API.

2.  Select the **API specification** tab.

3.  Click a method like `GET`.

4.  In the **Documentation** pane, review the requests and responses data.

5.  In the **Try it** pane, enter query parameters you want to test.

    You can enter query parameters as name-value pairs.

6.  Click **Send**.

    API Console displays the HTTP return code as specified in your API. Alternately, you can test
    the API by copying the Request URL and paste it into a web browser or Postman.

## See Also

- [Using the API Console](https://docs.mulesoft.com/api-experience-hub/using-the-api-console)
