Source: https://legiscore.in/docs/states/madhya_pradesh/record-room

# Record Room Documents (WebGIS 2.0) (Madhya Pradesh)

The scanned documents the revenue record room holds for one parcel: old khasras, mutation orders, maps.

Status: LIVE. Source status: No recent runs. Typical time: up to 6 min. state: `madhya_pradesh`, search_type: `record_room`.



## What you get

The list of every scanned document the record room holds for the parcel, and up to 25 of them as PDFs. A parcel with none comes back as not found.

## Request parameters

Keys of `params`. A value "from lookup" is a code you get by searching for the item by name first (https://legiscore.in/docs/api/lookups).

- At least one of `khasra_number`, `parcel_id`: Give the khasra number of the land, or its parcel ID.

| Name | Type | Required | Example | Comes from |
| --- | --- | --- | --- | --- |
| `loc_id` | string | required | from lookup "loc_id" | mp_village lookup (https://legiscore.in/docs/api/lookups#madhya_pradesh-mp_village) |
| `khasra_number` | string | one of | 323/2 | field "khasra_number" |
| `parcel_id` | string | one of | Optional | field "parcel_id" |

## Field details

| Field | Type | Notes |
| --- | --- | --- |
| `district` (District) | lookup |  |
| `tehsil` (Tehsil) | lookup |  |
| `loc_id` (Village) | lookup |  |
| `khasra_number` (Khasra Number) | text | Max 40 characters. |
| `parcel_id` (Parcel ID) | text | The portal’s own numeric parcel id. Not the ULPIN: that cannot be searched. Max 20 characters. |

## Resolve names to codes

| Field | Lookup | Needs first |
| --- | --- | --- |
| district | mp_district | - |
| tehsil | mp_tehsil | district |
| loc_id | mp_village | district, tehsil |

q is required (2+ characters), at most 10 matches.

## Example request

Replace each <...> with the value from its lookup match.

**curl**

```bash
curl -X POST "https://legiscore.in/api/v1/search" \
  -H "Authorization: Bearer lsk_your_api_key" \
  -H "Idempotency-Key: los-case-8841" \
  -H "Content-Type: application/json" \
  -d '{
  "state": "madhya_pradesh",
  "search_type": "record_room",
  "params": {
    "loc_id": "<loc_id.loc_id>",
    "khasra_number": "323/2",
    "parcel_id": "Optional"
  },
  "label": "Record Room Documents (WebGIS 2.0) - case 8841"
}'
```

**Python**

```python
import requests

resp = requests.post(
    "https://legiscore.in/api/v1/search",
    headers={"Authorization": "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841"},
    json={
      "state": "madhya_pradesh",
      "search_type": "record_room",
      "params": {
        "loc_id": "<loc_id.loc_id>",
        "khasra_number": "323/2",
        "parcel_id": "Optional"
      },
      "label": "Record Room Documents (WebGIS 2.0) - case 8841"
    },
)
resp.raise_for_status()
print(resp.json())
```

**Node**

```js
const resp = await fetch("https://legiscore.in/api/v1/search", {
  method: "POST",
  headers: { Authorization: "Bearer lsk_your_api_key", "Idempotency-Key": "los-case-8841", "Content-Type": "application/json" },
  body: JSON.stringify({
    "state": "madhya_pradesh",
    "search_type": "record_room",
    "params": {
      "loc_id": "<loc_id.loc_id>",
      "khasra_number": "323/2",
      "parcel_id": "Optional"
    },
    "label": "Record Room Documents (WebGIS 2.0) - case 8841"
  }),
});
if (!resp.ok) throw new Error(await resp.text());
console.log(await resp.json());
```

## Sample responses

202 Accepted, at submit:

```json
{
  "data": {
    "searches": [
      {
        "id": "SRCH-2026-A1B2C3D4",
        "state": "madhya_pradesh",
        "search_type": "record_room",
        "label": "Record Room Documents (WebGIS 2.0) - case 8841",
        "status": "queued",
        "progress": 0,
        "note": null,
        "found": null,
        "records": null,
        "record_count": null,
        "documents": [],
        "error": null,
        "refunded": false,
        "replayed": false,
        "batch_id": null,
        "recovery_of": null,
        "source": "api",
        "created_at": "2026-10-05T10:00:00Z",
        "completed_at": null
      }
    ],
    "rejected": [],
    "replayed": {
      "free": 0,
      "billed": 0,
      "idempotent": 0
    },
    "batch_id": null
  }
}
```

200 OK, GET /api/v1/search/{id} once finished:

```json
{
  "data": {
    "id": "SRCH-2026-A1B2C3D4",
    "state": "madhya_pradesh",
    "search_type": "record_room",
    "label": "Record Room Documents (WebGIS 2.0) - case 8841",
    "status": "succeeded",
    "progress": 100,
    "note": null,
    "found": true,
    "records": [
      {
        "...": "one object per row the source returned; shape varies by search"
      }
    ],
    "record_count": 1,
    "documents": [
      {
        "filename": "result.pdf",
        "content_type": "application/pdf",
        "bytes": 184233,
        "withheld": false
      }
    ],
    "error": null,
    "refunded": false,
    "replayed": false,
    "batch_id": null,
    "recovery_of": null,
    "source": "api",
    "created_at": "2026-10-05T10:00:00Z",
    "completed_at": "2026-10-05T10:03:12Z"
  }
}
```
