# Rent ITAI Audit API

### Overview

The **ITAI API** provides real-time access to on-chain audit intelligence. With this integration, developers and project owners can:

* Instantly audit smart contracts
* Fetch detailed risk analysis and security summaries
* Deliver AI-powered insights directly to users
* Enhance trust and transparency on any DeFi or Web3 platform

***

### Getting Started

Base URL: `https://itsafe.ai`

### Authentication <a href="#authentication" id="authentication"></a>

Include your API key in the `X-API-KEY` header on every request.

```
GET /get_token_info?address=0x... HTTP/1.1
Host: itsafe.ai
X-API-KEY: YOUR_API_KEY
```

Rate limits are enforced per plan on a rolling 24-hour window.

### Endpoints

#### GET /get\_token\_info <a href="#get_token_info" id="get_token_info"></a>

Returns token metadata, market/liquidity metrics, chain and social links.

* **query**: `address` — contract address (EVM)

**Response 200**

```
{
  "address": "0x2Dc1C8BE620b95cBA25D78774F716F05B159C8B9",
  "name": "Itsafe AI",
  "symbol": "ITAI",
  "chain": "BASE",
  "age": { "human": "2mo 2d", "seconds": 5356800 },
  "market": { "marketCapUsd": 225200, "taxBuy": 0.0, "taxSell": 0.0 },
  "liquidity": {
    "totalLp": "6.7 WETH",
    "pair": "WETH",
    "locked": true,
    "lockInfo": { "locker": "UNCX", "lockDuration": "4y" }
  },
  "socials": {
    "website": "https://itsafe.ai",
    "telegram": "https://t.me/itsafe_ai",
    "x": null
  }
}
```

#### GET /short\_audit <a href="#short_audit" id="short_audit"></a>

Concise AI audit highlighting risky or privileged functions only.

* **query**: `address` — contract address (EVM)

**Response 200**

```
{
  "address": "0x2Dc1C8BE620b95cBA25D78774F716F05B159C8B9",
  "chain": "ETH",
  "summary": "Short AI Audit",
  "findings": [
    { "function": "transferOwnership", "status": "green", "details": "cannot execute, ownership already renounced" },
    { "function": "addLPToUniswap", "status": "green", "details": "cannot execute, ownership renounced" }
  ]
}
```

#### GET /full\_audit <a href="#full_audit" id="full_audit"></a>

Comprehensive function-by-function analysis for full transparency.

* **query**: `address` — contract address (EVM)

**Response 200**

```
{
  "address": "0x2Dc1C8BE620b95cBA25D78774F716F05B159C8B9",
  "chain": "ETH",
  "functions": [
    { "name": "constructor", "status": "green", "details": "Standard ERC-20 constructor, mints total supply to deployer" },
    { "name": "transfer", "status": "green", "details": "Standard ERC-20 transfer, no hidden fees or restrictions" },
    { "name": "approve", "status": "green", "details": "Standard OpenZeppelin approve implementation" },
    { "name": "transferFrom", "status": "green", "details": "Standard OpenZeppelin implementation, no special privileges or minting" }
  ]
}
```

### Pricing & Limits

| Plan     | Short Audits / day | Full Audits / day | Token Info / day | Price        |
| -------- | ------------------ | ----------------- | ---------------- | ------------ |
| Standard | 500                | 100               | 1000             | $100 / month |
| Pro      | 1000               | 1000              | 1000             | $500 / month |

### Errors

```
{
  "error": { "code": "UNAUTHORIZED", "message": "Missing or invalid API key" }
}

{
  "error": { "code": "RATE_LIMITED", "message": "Daily quota exceeded for this plan" }
}
```

### SDKs

Simple fetch example:

```
fetch('https://itsafe.ai/get_token_info?address=0x2Dc1...', {
  headers: { 'X-API-KEY': 'YOUR_API_KEY' }
}).then(r => r.json()).then(console.log);
```

***

### ⚠️ API Error Codes

The API uses standard HTTP status codes to indicate the success or failure of a request:

| 400 | Bad Request           | Missing or invalid parameters               |
| --- | --------------------- | ------------------------------------------- |
| 401 | Unauthorized          | Invalid or missing API key                  |
| 403 | Forbidden             | Access denied for this endpoint or key tier |
| 404 | Not Found             | Contract not found or not yet audited       |
| 429 | Too Many Requests     | Rate limit exceeded                         |
| 500 | Internal Server Error | Something went wrong on ITAI’s side         |

Include error handling in your integration for a smooth user experience.

***


---

# 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://docs.itsafe.ai/services/api.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.
