Articles in this section

Provide mock response data for imports

You can enter mock response data when configuring imports instead of executing a call to retrieve live response data from an import step. The mock response data that you provide for an import applies only to that specific import, including its components such as mapping, transformation, and hooks. If no mock data has been added to the flow step, click Populate with > Live data to send a request to retrieve real data from the application.

Note

The Mock Response section is also available for flows in an Integration App.

Mock response section

When you are creating an import, if the preview panel is available, click Populate with > Live data to replace mock data in this editor with live data and view it in the Mock response field.

Provide_mock_response_new.jpg

Once you provide the mock data in valid integrator.io canonical JSON format , a message is displayed to confirm the validity of the JSON. Click Save or Save & close. If the entry provided does not match canonical format, a message prompts you to edit the mock data in the form. Your mock data can’t exceed 1 MB in size or 10 records.

View records in JSON or tree format: You can view and inspect records in the JSON or Tree view format. This flexibility helps to analyze complex payloads, navigate hierarchical structures, and quickly identify the data elements that matter to you.

You cannot edit data while you're in the Tree view.

Important

JSON is the default view; view preferences are not saved across sessions or pages.