> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mock API Users

> Learn how to mock APIs for testing and development.

While you are building your API Connection, you can use Mock Data to test the API Connection and ensure your transformations are working as expected. This Mock data saves as a Mock User where you can group mock responses for a given scenario.

<Note>
  The system only uses the Mock Data when testing the API Connection. Use [Test Users](/generativeagent/configuring/tasks-and-functions/test-users) to test and simulate Tasks and Function responses.
</Note>

## Mock Users

A mock user is a collection of mock responses that simulate how your server may respond. Each endpoint in use by an API Connection can have a mock response defined. By default, the mock user will return the [default mock data](/generativeagent/configuring/connect-apis#api-source) defined in the API Connection's API Source.

To Create a Mock User:

<Steps>
  <Step title="Navigate to API Integration Hub > API Mock Users">
    Access the API Mock Users section from the API Integration Hub.
  </Step>

  <Step title="Click 'Create User'">
    Select the 'Create User' button to start creating a new mock user.
  </Step>

  <Step title="Specify the User Details">
    Provide the following information:

    * Name of the User
    * Description of the User
  </Step>

  <Step title="Define Mock Responses">
    The newly created mock user will have a default mock response for each endpoint in the API Connection.

    You can check "Override Default Mock response" and specify a new mock response.

    Make sure to save the mock user to apply the changes.
  </Step>
</Steps>

## Using Mock Users

You can use Mock Users to test your transformations. From within the Response interface, you can select the mock user to use in the "Test Response" panel.

<Frame>
  <img width="500px" src="https://mintcdn.com/asapp/5vfIXwfnKhACH2a_/images/generativeagent/connect-apis/mock-user-selection.png?fit=max&auto=format&n=5vfIXwfnKhACH2a_&q=85&s=48a0c9b12199cfcbf44c44a419fcc445" alt="Mock User Selection" data-path="images/generativeagent/connect-apis/mock-user-selection.png" />
</Frame>

This allows you to save common responses from your server in sets of Mock users. As you iterate on your API Connection, you can test your transformation using the same mock responses.

## Next Steps

<CardGroup>
  <Card title="Test Users" icon="user-check" href="/generativeagent/configuring/tasks-and-functions/test-users">
    Learn how to use test users to simulate and validate task and function responses
  </Card>

  <Card title="Connect APIs" icon="plug" href="/generativeagent/configuring/connect-apis">
    Understand how to connect and configure external APIs with your application
  </Card>

  <Card title="Authentication Methods" icon="key" href="/generativeagent/configuring/connect-apis/authentication-methods">
    Learn how to authenticate your API connections
  </Card>

  <Card title="Integration Guide" icon="code-merge" href="/generativeagent/integrate">
    Step-by-step guide to integrate APIs with your GenerativeAgent implementation
  </Card>
</CardGroup>
