Playground API
DocsStatsBlogStudio
Documentation Tree
Technical BlogFeature Deep Dives
  • Introduction
  • Quickstart
    5 min
  • How It Works
  • Recipes & Cookbooks
  • Platform Comparisons
  • Real-World Showcase
  • Interactive Studio
    Studio
  • GraphiQL IDE
    IDE
  • Session Quotas & Activity
  • Network Chaos Simulator
  • Atomic Sandbox Reset
  • Overview & Models
    Hub
  • Users Resource
  • Posts Resource
  • Comments Resource
  • Todos Resource
  • Custom Collections
    Custom
  • Multipart File Uploads
    Upload
  • Dynamic SVG Avatars
    SVG
  • Image Thumbnails
    CDN
  • Relational Filtering
  • Full-Text Search
  • Dynamic Sorting
  • Offset Pagination
  • Cursor Pagination
    Scroll
  • CSV & Excel Export & Import
    IO
  • Custom Collections
    CRUD
  • Overview & Architecture
    Hub
  • JWT Auth Flow
  • Refresh Token Rotation
    Mutex
  • RBAC Permission Matrix
    Roles
  • Expiry Simulation
  • Clock Skew Drift
  • Password Recovery Loop
  • Dual-Mode Sandboxing
  • GraphiQL IDE
    IDE
  • Relational Queries
  • Stateful Mutations
  • Realtime Subscriptions
  • Overview & Flowcharts
    Hub
  • Hosted Checkout
    Stripe
  • Payment Intents API
  • 3DS Challenge Modal
    Modal
  • Customers Vault
  • Charges & Refunds
  • Test Cards Catalog
  • Overview & Channels
    Hub
  • Virtual Email Mailbox
    Mailtrap
  • Virtual SMS Terminal
    Phone
  • In-App Notifications
  • Message Dispatcher
  • Realtime Studio
    Studio
  • Native WebSocket (/ws)
  • Socket.io Gateway
  • Presence & Echo Bot
  • Server-Sent Events (SSE)
    SSE
  • Analytics Telemetry
  • Webhook Subscriptions
  • HMAC SHA-256 Signatures
  • Delivery Logs
  • Manual Retry Simulator
  • Network Latency Delay
  • HTTP Status Codes
  • Rate-Limit Simulator
    429
  • Flaky Network & Jitter
    Chaos
  • Session Quotas & Activity
  • JSON Snapshots
    JSON
  • Headless CI/CD Testing
    CI
  • Mobile QR Code Sync
  • System Metrics & Health
  • Atomic Sandbox Reset
  • Official TypeScript SDK
  • Multi-Language Generators
  • DevTools Extension
  • OpenAPI 3.1 Spec
    JSON
  • Postman Collection v2.1
  • Bruno Collection
  • Insomnia Workspace
  • TypeScript .d.ts
    .d.ts
  • AI Prompt Rules
    Rules
  • Context Index (llms.txt)
  • Full Schema (llms-full.txt)
  • Manifest (product.json)
  • All Feature Articles
    Blog
  • React CRUD Without Backend
    Deep Dive
  • Why Static APIs Fail
  • Mocking Stateful Auth
  • WebSockets & SSE Guide
Technical Blog
Articles

In-depth articles explaining stateful mock APIs, WebSockets, payments, and frontend resilience.

Read Articles
PreviousNetwork Chaos Simulator
NextOverview & Models
Sandbox Lifecycle

Atomic Sandbox Reset

Instantly purge all created records, modified fields, soft-deleted items, and custom collections for your visitor session. Returns your workspace to the pristine baseline dataset immediately.

Reset Active Session Overlay

This action executes DELETE /api/v1/session/reset. Only your private session delta is discarded. Other developers' sessions and global seed data remain 100% untouched.

Posts & Comments

Reverts to the standard 100 baseline posts and 500 comments.

Users & Todos

Restores default demo credentials and 200 standard todos.

Custom Collections

Purges all dynamically generated schemas and test products.

Resetting Programmatically

In automated end-to-end tests or local shell scripts, you can execute a reset with a single HTTP call:

Terminal cURL
Terminal
1
# Purge all visitor mutations and restore baseline dataset
2
curl -X DELETE "https://playground.nileslabs.com/api/v1/session/reset" \
3
-H "X-Playground-Identity: test-runner-1" \
4
-H "Content-Type: application/json"
5
6
# Response: 200 OK
7
# { "status": "success", "message": "Baseline restored" }
Playwright Test Hook
test-suite.spec.ts
1
// In your Playwright / Cypress test file
2
test.beforeEach(async ({ request }) => {
3
// Guarantee clean baseline seed before every test case runs
4
await request.delete('https://playground.nileslabs.com/api/v1/session/reset', {
5
headers: { 'X-Playground-Identity': 'test-runner-1' },
6
});
7
});

Want to inspect session telemetry before resetting?

Check current mutation counts, memory quotas, and active custom collections.

View Session Quotas