# Create Connect Url
source: https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/insights/tutorials/unlicensed-insights-connect-url-tutorial/index.md

This guides walks you through creating a Connect URL for either Account Owner Verification or Balance Check.

#### Prerequisites: {#prerequisites}

* You must have created an app for use with Insights. Make sure you have recorded the `CLIENT_ID` and `CLIENT_SECRET`.
* This tutorial uses `curl` in order to send requests and receive responses.

### Verifying Account Owner Name {#verifying-account-owner-name}

1. Retrieve the account owner name that you want to verify in your app
2. Create a Redirect Url that the user will be redirected to once they fnish the Connect Flow.
3. With the `CLIENT_ID`, `CLIENT_SECRET`, `ACCOUNT_OWNER_NAME` and `REDIRECT_URL`, use `curl` to send the request to the **Insights** platform.

```shell
curl -X POST \
https://insights.sandbox.aiia.eu/api/enterprise/insights \
 -H 'Content-Type: application/json' \
 -H 'X-Client-Id: <CLIENT_ID>' \
 -H 'X-Client-Secret: <CLIENT_SECRET>' \
 -d '{
       "insightsTypes": ["ACCOUNT_OWNER"],
       "accountOwner": {
         "customerName": <ACCOUNT_OWNER_NAME>
       },
       "redirectUrl": <REDIRECT_URL>
     }'
```

### Verifying Account Balance {#verifying-account-balance}

1. Create a Redirect Url that the user will be redirected to once they fnish the Connect Flow.
2. With the `CLIENT_ID`, `CLIENT_SECRET` and `REDIRECT_URL`, use `curl` to send the request to the **Insights** platform.

```shell
curl -X POST \
https://insights.sandbox.aiia.eu/api/enterprise/insights \
 -H 'Content-Type: application/json' \
 -H 'X-Client-Id: <CLIENT_ID>' \
 -H 'X-Client-Secret: <CLIENT_SECRET>' \
 -d '{
       "insightsTypes": ["ACCOUNT_BALANCE"],
       "redirectUrl": <REDIRECT_URL>
     }'
```

### Verifying Both Account Owner Name and Account Balance {#verifying-both-account-owner-name-and-account-balance}

1. Retrieve the account owner name that you want to verify in your app
2. Create a Redirect Url that the user will be redirected to once they fnish the Connect Flow.
3. With the `CLIENT_ID`, `CLIENT_SECRET`, `ACCOUNT_OWNER_NAME` and `REDIRECT_URL`, use `curl` to send the request to the **Insights** platform.

```shell
curl -X POST \
https://insights.sandbox.aiia.eu/api/enterprise/insights \
 -H 'Content-Type: application/json' \
 -H 'X-Client-Id: <CLIENT_ID>' \
 -H 'X-Client-Secret: <CLIENT_SECRET>' \
 -d '{
       "insightsTypes": ["ACCOUNT_OWNER", "ACCOUNT_BALANCE"],
       "accountOwner": {
         "customerName": <ACCOUNT_OWNER_NAME>
       },
       "redirectUrl": <REDIRECT_URL>
     }'
```

### Step 2 - Get the JobId​ {#step-2---get-the-jobid}

The response you will receive from the service will look like:

```json
{
  "jobId": "69bf1e3b-37b8-4bc3-ab93-add081e5a954",
  "connectUrl": "https://app-sandbox.aiia.eu/#/connect/new-user?sessionId=bce853d8-d216-455d-b062-2608c7f63026&closeUrl=https%3A%2F%2Fhttpbin.org%2Fanything&culture=en",
  "expires": "2022-11-14T08:30:00Z"
}
```

* Record the `jobId` for next steps.
* Redirect the user to the `ConnectUrl` to start the Connect Flow.
