> ## 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.

# Setup

> Connect to your ClickUp app for OAuth.

To setup your ClickUp app in Refold for OAuth, you will need the following credentials from your [ClickUp account](https://app.clickup.com/login):

* Client ID
* Client Secret

### Pre-requisites

1. ClickUp account. You can create one [here](https://app.clickup.com/signup).

<Info>If you haven't already created an app in ClickUp, you'd need to create one.</Info>

### Creating an app in ClickUp

To create a ClickUp app and acquire the above mentioned credentials, please follow the steps mentioned below:

1. Log in to your [ClickUp account](https://app.clickup.com/login).
2. Click on the `Profile` icon in the top right, select `Settings` button and navigate to `ClickUp API` in the side menu.

<img height="200" src="https://mintcdn.com/cobalt-55/YZVVpdFwo8NtLV-a/images/Clickup/clickup_navigation.png?fit=max&auto=format&n=YZVVpdFwo8NtLV-a&q=85&s=94a4ab28842c4458befcf240e40c6a69" alt="Navigation for App setup" data-path="images/Clickup/clickup_navigation.png" />

3. Go to your [`Apps catalog`](https://app.gocobalt.io/apps) in **Refold** > Search for `Clickup` > `Settings` > `Use your credentials` > `Callback Url` > Copy it.
4. Click on `+ Create an App` button in the right in `ClickUp API` settings.
5. Enter the `App Name`, paste the **Callback Url** and click on the `Create App` button.
6. Copy the **Client ID** and **Client Secret** displayed.

<img height="200" src="https://mintcdn.com/cobalt-55/YZVVpdFwo8NtLV-a/images/Clickup/clickup_credentials.png?fit=max&auto=format&n=YZVVpdFwo8NtLV-a&q=85&s=d0328bf7abc98d062b2dd3ba062831ba" alt="Getting Credentials" data-path="images/Clickup/clickup_credentials.png" />

#### Configuring credentials in Refold

App settings page lets you configure the authentication settings for an `OAuth2` based application. For your customers to provide you authorization to access their data,
they would first need to install your application. This page lets you set up your application credentials.

<img height="200" src="https://mintcdn.com/cobalt-55/YZVVpdFwo8NtLV-a/images/Clickup/clickup_cobalt.png?fit=max&auto=format&n=YZVVpdFwo8NtLV-a&q=85&s=7cff1ac2e5f8ffc6b369fed394679684" alt="Setting up application client credentials" data-path="images/Clickup/clickup_cobalt.png" />

Provide the acquired Client ID and Client Secret under Settings of the app and save it.

#### Actions and triggers

Once the above setup is completed, you can create orchestrations of your use-cases using ClickUp actions and triggers. Following are the set of ClickUp actions and triggers
supported by Refold.

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Tasks">
        1. **Create Task** - Create a task in ClickUp.
        2. **Update Task** - Update a task in ClickUp.
        3. **Delete Task** - Delete a task in ClickUp.
      </Accordion>

      <Accordion title="Others">
        4. **HTTP Request** - Make HTTP API calls to any ClickUp documented REST APIs.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Triggers">
    1. **Task Created** - Triggers when a task is created on ClickUp.
    2. **Task Updated** - Triggers when a task is updated on ClickUp.
    3. **Task Comment Updated** - Triggers when a comment is updated for a task on ClickUp.
    4. **Task Comment Posted** - Triggers when a comment is posted for a task on ClickUp.
    5. **Folder Created** - Triggers when a new folder is created on ClickUp.
  </Tab>
</Tabs>
