API Documentation

TurboWarp Integration Guide

Return to Dashboard

Overview

This Dual-Layer API allows TurboWarp to natively read and store persistent data (SSD + Memory). All data interactions happen via the HTTP Extension natively without any JSON parsing required. All responses return Raw Text.

Reading Data (Pull)

Full Value Pull

Fetch the entire contents of a variable.

GET /api.php?action=pull&name=my_var

Range Pull (Substring)

Fetch only specific characters by defining a 0-indexed range. Awesome for decoding chunked data!

GET /api.php?action=pull&name=my_var&range=0-5
Cheat Sheet: If the string is Hello World:
range=0-4 returns Hello
range=6-10 returns World

Writing Data (Save/Append/Replace)

Save (Overwrite)

Replaces everything in the variable. If the variable doesn't exist, it creates it.

POST /api.php?action=save&name=my_var&value=12345

Append

Stuffs data onto the end of an existing variable. Extremely fast for logs!

POST /api.php?action=append&name=my_var&value=_new_data

Replace Range

Replaces characters exclusively in the targeted index range without downloading the whole string.

POST /api.php?action=replace&name=my_var&range=0-4&value=Howdy

If my_var was Hello World, it becomes Howdy World.