Developer API

Ishanx DB is a high-performance, minimalist Backend-as-a-Service (BaaS). Integrate a database into your apps in minutes using simple JSON over HTTP.

Authentication

Every request must include the following header:

X-API-KEY: YOUR_SECRET_TOKEN
POST

/api/store

Stores or updates a key-value pair in your private SQLite instance.

$url = "https://db.xwalletbot.shop/api/store"; $payload = json_encode(["key" => "username", "value" => "Ishanx"]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-KEY: YOUR_KEY', 'Content-Type: application/json']); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch);
POST

/api/get

Retrieve a specific value using its key.

// Request Payload { "key": "username" } // Response { "status": "success", "data": "Ishanx" }
POST

/api/truncate

DANGER: Wipes all data from your instance permanently.