Truva Indexer API

Integrate fast URL indexing into your applications with our REST API. Submit URLs programmatically and track indexing status in real time.

Use the Truva Indexer URL indexing service from your dashboard, or connect the Truva Indexer Telegram bot for chat-based submissions.

4 API Endpoints

Balance, submit, status and health.

Instant Submission

URLs are sent to the search engine the moment you call.

Real-time Status

Track every URL from submission to index.

Quick Start

Get started in minutes.

1 · Get Your API Key

Sign up and enable your API key from the panel's Profile page. Keys look like:

trv_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

2 · Make Your First Request

Submit URLs for indexing using our REST endpoint.

curl -X POST "https://www.truvaindexer.com/api/v1/submit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/page"]}'

3 · Check Response

Receive instant confirmation and track your indexing progress.

{
  "success": true,
  "message": "1 URLs submitted successfully",
  "data": {
    "submitted": 1,
    "failed": 0,
    "tracking_ids": [123],
    "credits_remaining": 150
  }
}

API Reference

Complete documentation for all available endpoints.

Base URL

https://www.truvaindexer.com/api/v1

Authentication

All API requests require authentication using your API key. You can find your key in your profile settings after signing up.

Recommended — Authorization header:

Authorization: Bearer YOUR_API_KEY

Alternative — X-API-Key header:

X-API-Key: YOUR_API_KEY

GET /v1/health

Check API service status. No authentication required.

curl "https://www.truvaindexer.com/api/v1/health"
{
  "success": true,
  "message": "Truva Indexer API v1.0 is running",
  "data": { "version": "1.0", "status": "operational" }
}

GET /v1/balance

Retrieve your account balance, credits and usage statistics.

curl "https://www.truvaindexer.com/api/v1/balance" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "Balance retrieved successfully",
  "data": {
    "user": { "id": 1, "email": "[email protected]", "name": "You" },
    "credits": { "available": 150, "used": 50 },
    "statistics": {
      "total_submitted": 50,
      "indexed": 42
    }
  }
}

POST /v1/submit

Submit one or more URLs for indexing.

Request body:

url  string  (optional)  Single URL to submit
urls array   (optional)  Multiple URLs to submit
# Single URL
curl -X POST "https://www.truvaindexer.com/api/v1/submit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/page"}'

# Multiple URLs
curl -X POST "https://www.truvaindexer.com/api/v1/submit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/page1", "https://example.com/page2"]}'
{
  "success": true,
  "message": "2 URLs submitted successfully",
  "data": {
    "submitted": 2,
    "failed": 0,
    "tracking_ids": [101, 102],
    "credits_remaining": 148
  }
}

One credit is consumed per URL. Insufficient credits returns 402 and no credits are spent.

GET /v1/status

Check the indexing status of your submitted URLs using tracking IDs, or get recent submissions.

Query parameters:

ids   string   (optional)  Comma-separated tracking IDs
urls  string   (optional)  Comma-separated URLs
limit integer  (optional)  Max results (1-100, default 50)
# Recent URLs
curl "https://www.truvaindexer.com/api/v1/status?limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Specific tracking IDs
curl "https://www.truvaindexer.com/api/v1/status?ids=101,102" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "Status retrieved successfully",
  "data": {
    "count": 1,
    "items": [
      {
        "tracking_id": 101,
        "url": "https://example.com/page1",
        "status": "Submitted",
        "indexed_status": "pending",
        "submitted_at": "2026-11-01 12:00:00",
        "updated_at": "2026-11-01 12:05:00"
      }
    ]
  }
}

Error codes

401

Missing or invalid API key.

403

IP not whitelisted.

402

Not enough credits.

422

No valid URLs provided.

429

Rate limit exceeded.

502

Upstream submission failed (credits refunded).

Webhooks

Receive a POST notification when a submission's status changes. Configure a webhook URL from the Profile page.

POST https://your-server.com/webhook
Header: X-Webhook-Secret: YOUR_WEBHOOK_SECRET

{
  "tracking_id": 101,
  "url": "https://example.com/page1",
  "status": "indexed",
  "previous_status": "submitted",
  "updated_at": "2026-11-01T12:05:00+00:00"
}
Get Your API Key