# API call simulation

> Guides on API call simulation in the test mode.

API call simulation helps developers debug interfaces in the test mode.

## Before you start

Before conducting the API call simulation, log in to Antom Dashboard, enter the **Key configuration** page, and configure settings for the sandbox environment.

1.  Go to **Developer** > **Key Configuration**, click **Generate key**. Or go to **Developer** > **Quick start**, find **Integration resources and tools**, select **Integration resources**, and click **Generate key.**

**![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/5344c214-91cc-45b8-a82e-e3fcf6a43cc1.png)**

2.  Click **Confirm**. The keys are generated.

> **Note**: Your private key is only displayed once and Antom does not store it. Make sure you save your private key for later use.

3.  If you decide to replace the keys, you can replace API keys with one click or by using tools. Go to **Developer** > **Key configuration**, click **Replace keys**. Or go to **Developer** > **Quick start**, find **Integration resources and tools**, select **Integration resources**, and click **Replace keys**.

![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/3d6f0499-f745-487d-8b6f-8eedc2746b08.png)

> **Notes:**
>
> -   You can click **Replace** **keys with one click** to replace the old keys with the keys generated by Antom.
> -   Or you can generate your own public and private keys by using the offline tool popped up on the page after clicking **Use your own public and private keys**.

![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/cf0d116f-8599-4ecc-945e-71864c4974e2.png)

4.  Go to **Developer** > **Notification URL**. Select the **Configuration** tab. Click **Add** under **Action** and enter you URL under **Notification URL** for a notification interface.

> **Note:** Instead of using API call simulation, you can also download **Postman scripts** to debug locally.

## API call simulation

To test an interface integration, complete the following steps:

1.  Log in to Antom Dashboard. Go to **Developer** > **API call simulation**. In the **configuration** **request** tab, select the specific API and product you need to test. For example:

![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/20ba3559-e77a-4534-8344-9c88ffa82799.png)

2.  Enter your private key. The platform will not save your private key.
3.  (Optional) Edit the request message in the **Request body** field.

![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/11282073-ee39-4176-b782-64bd7771449b.png)

4.  Click **Send** to send the request.

![image.png](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/yuque/idocs/2025/png/093618dc-c4e5-484d-a87c-2f5ee005f244.png)

5.  After the request is sent, the response message is then displayed in the **Response** tab on the right side of the screen.