# Data Connector CAST AI

On the main Data Connectors screen, when clicking the “Add” button, the system will display the screen to connect a new data source to the platform.

For each Data Connector option available on the platform, the system will present some additional fields to be filled in.

When selecting the **Cast AI** option, you will be asked to fill in the following fields:

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F3YAhNTICPYKZ8ZYMgtki%2Fimage.png?alt=media&#x26;token=8323a38a-3a79-4200-8f6f-b15ffb744c2a" alt=""><figcaption></figcaption></figure>

* **Data Connector Identifier Name**: Enter the name that will identify the data source that will be connected
* **Select the secret for this data connector**: Select the secret you want to use from the registered options. We will use this secret to connect to the service.
* **Endpoints**:&#x20;
  * **Endpoint**: Enter the endpoint we should query.

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FDZYRhJkS8SHavvyZ0OIo%2Fimage.png?alt=media&#x26;token=06082c5a-4180-4962-a9ef-d78ed937b23d" alt=""><figcaption></figcaption></figure>

* **Request Headers**:

  * **Key**: Enter the header key
  * **Value**: Enter the header value

  You can add programmed values, possible values are

  * $token (Token generated from the registered secret)

  Usage example: "Bearer $token"

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FUL9B7mBUyRoXo7Fg7YkT%2Fimage.png?alt=media&#x26;token=8b103657-1069-4398-affa-8927ea988795" alt=""><figcaption></figcaption></figure>

* **Request Query Params**:&#x20;

  * **Name**: Enter the name of the parameter
  * **Value**: Enter the value of the parameter

  You can add programmed values, possible values ​​are:

  * $current\_day (Current day's date (YYYY-MM-DD))
  * $start\_of\_month (Start of month (YYYY-MM-DD))
  * $end\_of\_month (End of month (YYYY-MM-DD))
  * $d-1 (Current Day - 1 Day (YYYY-MM-DD))
  * $d-2 (Current Day - 2 Days (YYYY-MM-DD))
  * $d-3 (Current Day - 3 Days (YYYY-MM-DD))

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2FuKigiqZulLIaGskXmu2s%2Fimage.png?alt=media&#x26;token=91db1a49-3fbd-48ed-9d0d-7a769e5c459e" alt=""><figcaption></figcaption></figure>
