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

# Try API

> More about the Try API Settings and how it can assist you to fire and test workflows in Refold.

The **Try API** feature in Refold allows users to simulate event or workflow execution, providing a convenient way to test workflows and validate the behavior of associated actions.

<Info> The Try API feature can be utilized in both **Production** and **Test** environments.</Info>

Events selected through the Try API interface can serve as triggers within workflows. The payload associated with the selected event is loaded by default within the Try API interface and users can make necessary modifications to it before firing the event.

<Tip>
  Using **Try API**, you can simulate execution for workflows with `Event based` triggers or `Workflows API` triggers.
</Tip>

### Pre-Condition

Before utilizing the Try API feature, ensure that the Application is connected for the Linked Account and configured properly.

* Navigate to the Application for which you want to create and test a workflow.
* Create a workflow and add an **Event** or **Workflow API** depending on your use-case in the Start Node, along with associated actions. Publish the workflow to make it available for execution.

<Tip>
  Learn more about how to create workflows [here](https://docs.gocobalt.io/build/workflow/overview).
</Tip>

* Enable the workflow for a Linked Account after making a successful connection through authenticating.

### Execution

To fire an event in the Try API section, follow these steps:

* Navigate to the **Try API** section in Refold.
* You will have 2 options to perform execution depending on the trigger added:

<Accordion title="Fire Event">
  <Steps>
    <Step title="Configure">
      Select the **Linked Account**, choose the desired **Event** from the available options, specify the **Application** associated with the workflow. Optionally, select a **Config ID** if required.

      <Note>
        If an **Application** is not selected for Try API, then all the workflows in the associated **Linked Account** with the selected **Event** will be fired.
      </Note>
    </Step>

    <Step title="Fire">
      Click on the `Fire Event` button in the top right.

      <img height="200" src="https://mintcdn.com/cobalt-55/vPGojg1WCLHlMpWZ/images/Guides/Platform/try-api.png?fit=max&auto=format&n=vPGojg1WCLHlMpWZ&q=85&s=dd036001dab6f0961454c9dfb73e9ff9" alt="Try API Section in Refold" data-path="images/Guides/Platform/try-api.png" />
    </Step>
  </Steps>
</Accordion>

<Accordion title="Execute Workflow API">
  <Steps>
    <Step title="Workflow tab">
      Switch to the **Workflow** tab in the Try API.
    </Step>

    <Step title="Configure">
      Select the **Linked Account**, choose the `Workflow` with Workflow API as trigger and specify the **Application** associated with it. Optionally, select a **Config ID** if required.

      <Note>
        Toggle on the `Synchronous Execution` toggle if required.
      </Note>
    </Step>

    <Step title="Execute">
      Click on the `Execute Workflow` button in the top right.

      <img height="200" src="https://mintcdn.com/cobalt-55/vPGojg1WCLHlMpWZ/images/Guides/Platform/try-api_execute.png?fit=max&auto=format&n=vPGojg1WCLHlMpWZ&q=85&s=527bdc381850ae7d0371e684f851bde6" alt="Try API Execute Workflow in Refold" data-path="images/Guides/Platform/try-api_execute.png" />
    </Step>
  </Steps>
</Accordion>

#### Expected Result

Upon firing or executing, it will be logged within the Refold system. You can check the logs by navigating to [**Logs**](https://docs.gocobalt.io/maintain/logs) section in Refold.

<img height="200" src="https://mintcdn.com/cobalt-55/vPGojg1WCLHlMpWZ/images/Guides/Platform/try-api-logs.png?fit=max&auto=format&n=vPGojg1WCLHlMpWZ&q=85&s=e0ea41bea35b90cdb3c94053c5b7b7d6" alt="Logs of Try API in Refold" data-path="images/Guides/Platform/try-api-logs.png" />
