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

# Introduction

> Get started with InsightAI API for Fraud Detection

<Note>
  Welcome to InsightAI’s API documentation! Here, you’ll find everything you need to integrate our powerful fraud detection capabilities into your systems.
</Note>

***

## API Key Requirement 🔑

To access InsightAI APIs, you must have a valid API key.

### How to Get an API Key:

1. Visit our web app: [https://app.insightai.in](https://app.insightai.in).
2. Generate your API key under the "API Keys" section.
3. For assistance, contact our team at [akash@insightai.in](mailto:akash@insightai.in).

### Credit Limit and Exhaustion:

Your API key usage is subject to credit limits based on your subscription plan. If your credits are exhausted, the following error will be returned:

```json theme={null}
{
  "status": "error",
  "code": 402,
  "message": "Credit limit exceeded. Please upgrade your plan or contact support."
}
```

### Sandbox Testing 🛠️

The sandbox environment allows you to test our APIs without affecting production data. It is the perfect space to validate integration and explore InsightAI’s capabilities.

**How to Access the Sandbox:**

* Login to the web app: [https://app.insightai.in](https://app.insightai.in)
* Navigate to the "Sandbox Testing" section.
* Use the API key provided for sandbox testing.
  Note: API responses in the sandbox are simulated to help you understand how the production system works.

### Authentication 🛡️

Every API request requires the API key to be sent in the Authorization header as a Bearer token.

**Header Example:**

```
Authorization: Bearer YOUR_API_KEY
```

### Base URL

All API endpoints are available at the following base URL:

```
https://api.insightai.in/
```

**Missing API Key Error:**
If the API key is not provided in the request, you will receive the following error:

```json theme={null}
{
  "status": "error",
  "code": 401,
  "message": "API key is missing. Please include a valid API key in the Authorization header."
}
```
