# Setup

> To successfully establish a connection and send requests to the Marketo API, the [Marketo Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/marketo-scope) activity must complete authentication using the supported [OAuth 2.0 authentication](https://developers.marketo.com/rest-api/authentication/).

To successfully establish a connection and send requests to the Marketo API, the [Marketo Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/marketo-scope) activity must complete authentication using the supported [OAuth 2.0 authentication](https://developers.marketo.com/rest-api/authentication/).

To give the **Marketo Scope** activity the ability to authenticate and to enable the other activities to successfully send requests to Marketo API, you must complete the following steps:

1. [Create Access Token](https://docs.uipath.com/activities/other/latest/legacy-integrations/marketo-setup#setup)
2. [Build your project](https://docs.uipath.com/activities/other/latest/legacy-integrations/marketo-setup#setup)

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-179004-f89b18a8-52b3d088.webp)

## Steps

### 1. Create an Access Token

The following input properties are required in the **Marketo Scope** activity:

* **ClientID**, **Client Secret**, and **Base Url**

To get the **ClientID** and **Client Secret** values, follow [Creating an Access Token](https://developers.marketo.com/rest-api/authentication/#creating_an_access_token) steps in the Marketo documentation.

After generating the values, copy the values to enter it as a `String` in the **ClientID** parameter and as a `SecureString` for the **Client Secret** parameter. Then, enter the value of the *Identity Url* as a `String` in to the **Base URL** parameter by omitting the "/identity", so the value should look like "https://111-AAA-999.mktorest.com".

### 2. Build your project

1. Create a new automation project.
   1. Open **UiPath Studio**.
   2. Under **New Project**, click **Process** (this opens a **New Blank Process** window).
   3. Enter a project **Name**, **Location**, and **Description**.
   4. Click **Create**.
2. Install the **UiPath.Marketo.Activities** package.
   1. In the **Design** ribbon, click **Manage Packages** (this opens the **Manage Packages** window).
   2. Under **All Packages**, click **Connect**
   3. In the **Search** bar, enter *Marketo*.
   4. Click, install and accept the license for the **UiPath.Marketo.Activities**.
      * For more information about Uipath Studio packages, see [Managing Packages](https://docs.uipath.com/studio/docs/managing-activities-packages) in the Studio Guide.

You're done!

Now that you have completed the setup, you can start adding the Marketo activities to your project.

To learn more about the Marketo activities (including example property inputs/outputs), see the [Activities](https://docs.uipath.com/activities/other/latest/legacy-integrations/marketo-activities) page for a complete activity list and links to the activity detail pages.
