# Getting Started

Getting Started with Xalora API

### [​](https://docs.heurist.ai/dev-guide/heurist-sdk/getting-started#install)Install <a href="#install" id="install"></a>

To get started with the Xalora SDK, you need to install it in your project. The SDK is available via npm, simply follow the instructions to set up the SDK and begin interacting with Xalora in no time.

Recommend using `pnpm` for installation.

* npm
* pnpm
* yarn
* bun

Copy

```
npm i xalora
```

### [​](https://docs.heurist.ai/dev-guide/heurist-sdk/getting-started#authentication)Authentication <a href="#authentication" id="authentication"></a>

The Xalora API requires authentication using an API key. API keys are used to verify your identity when making requests to the API. Keep in mind the following important points:

* **Keep your API key secure!** Your API key is sensitive information and should not be shared with others. It must never be exposed in client-side code or in any publicly accessible location (e.g., browser code, repositories).
* **Secure your key with backend services:** It’s recommended to store your API key in a secure location such as environment variables or key management services (KMS) on your backend server.

#### [​](https://docs.heurist.ai/dev-guide/heurist-sdk/getting-started#example-authentication-flow)Example Authentication Flow <a href="#example-authentication-flow" id="example-authentication-flow"></a>

To authenticate your application, you will need to pass the API key to the Xalora SDK in your code. Here’s how you can set up authentication:

### [​](https://docs.heurist.ai/dev-guide/heurist-sdk/getting-started#initialization)Initialization <a href="#initialization" id="initialization"></a>

Copy

```
import Xalora from 'xalora'

const xalora = new Xalora({
  apiKey: process.env['XALORA_API_KEY'], 
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xalora-ai.gitbook.io/xalora-ai-docs/getting-started-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
