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

# Installation

> This is your installation guide

### Example

To install the Geoloc Monitoring SDK in your project, copy and paste the code below into the page where you want to use the SDK.

<CodeGroup>
  ```html HTML theme={null}
  <script src="https://cdn.legitimuz.com/js/sdk/antifraude.js"></script>
  <script type="text/javascript">
    const sdkInstance = LegitimuzAntiFraude({
      apiURL: "https://api.legitimuz.com",
      token: "your-integration-token",
      action: "signin",
      // Optional default is false
      enableRequestGeolocation: true
    });

    // Mount the SDK
    sdkInstance.mount();
  </script>
  ```
</CodeGroup>

### Uso

Before implementing the following code, it is important to ensure that the page contains the necessary HTML elements.
The Geoloc Monitoring SDK requires an [input](https://developer.mozilla.org/pt-BR/docs/Web/HTML/Element/Input)
element with the [id](https://developer.mozilla.org/pt-BR/docs/Web/HTML/Global_attributes/id) attribute set to [legitimuz-action-send-analisys](./actions).
This element is used for CPF input.

<CodeGroup>
  ```html HTML theme={null}
  <input id="legitimuz-hydrate-cpf" type="tel" inputmode="numeric" max-length="11" />
  ```
</CodeGroup>

Additionally, the page must include a [button](https://developer.mozilla.org/pt-BR/docs/Web/HTML/Element/button)
element with the id attribute set to [legitimuz-action-send-analisys](./actions).

This button **is not essential, but** it is used to submiting the CPF and [actions](./options#action) to the SDK.

<Warning>
  Ensure that these elements are present on the page before proceeding with the implementation of the code above.
</Warning>

<Tip>
  Does your code have a different writing pattern? Don't worry, you can change the element selector through the [methods](./actions) exported by the SDK.
</Tip>
