Open Valstorm API Reference (416 Endpoints)
Open Valstorm routes standard REST, GraphQL, OAuth, and DDL requests to open-api (Python :8010) and performance-critical WebSockets, Fleet Deployments, AI Desktop Sync, Public Inbound Forms, Booking Availability, and Telephony/Email Webhooks directly to open-worker (Go :8080).
⚡ Direct Go Worker Endpoints (open-worker :8080 — 16 Routes)
GET /v1/openapi.json on :8080/v1/ws/create/v1/ai/chat/{chat_id}/desktop-sync/v1/booking/{slug}/availability/v1/booking/{slug}/reserve/v1/webhooks/telnyx/{org_id}/v1/webhooks/twilio/{org_id}/health/v1/deployment/install/v1/deployment/rollout/v1/deployment/status/{job_id}/v1/email-services/sendgrid/webhook/{org_id}/v1/inbound/submit/v1/inbound/webhook/v1/ws/desktop/execute/v1/ws/send_message/v1/ws/{org_id}/{user_id}Health Check
Status Check
Get All Users
Get Single User Status
Get My Status
Update User Availability
Update User Availability
Oauth2 Generate Code
Oauth2 Token
Standard OAuth 2.0 Token Endpoint supporting: - `authorization_code` (with PKCE and/or one-way hashed `client_secret_hash` verification) - `client_credentials` (with self-routing `client_id` + `client_secret_hash` verification) - `refresh_token`
Oauth2 Login
Standard OAuth2 password login supporting: 1. application/x-www-form-urlencoded (OAuth2 standard) 2. application/json
Oauth2 Refresh
Refreshes expired access tokens using a valid refresh token. Accepts refresh_token from JSON body, form data, or Authorization header. Does NOT require a valid access token dependency, allowing seamless renewal.
Register
Login
Get Me
Auth Load
Initial boot loader contract used by frontend workspaces and desktop clients. Aggregates user profile, organization info, active apps, pages, tags, and settings.
Logout
Switch Organization
Switches the authenticated user between their root production organization and its child sandboxes. Supports both legacy Desktop payload `{"id": "..."}` on `/v1/auth/switch` and Admin payload `{"organization_id": "..."}` on `/v1/auth/switch-org`. Strictly forbids switching into unrelated tenant organizations.
Switch Organization
Switches the authenticated user between their root production organization and its child sandboxes. Supports both legacy Desktop payload `{"id": "..."}` on `/v1/auth/switch` and Admin payload `{"organization_id": "..."}` on `/v1/auth/switch-org`. Strictly forbids switching into unrelated tenant organizations.
List Active Sessions
Returns active sessions for the authenticated user.
Revoke All Sessions
Revoke Single Session
Generate Cli Browser Token
Generates a short-lived, single-use token to exchange for a browser session (`valstorm project open`).
Consume Cli Browser Token
Consumes a single-use CLI exchange token and returns standard web session tokens.
Create Pat
List Pats
Revoke Pat
Register User Route
Register Or Login With Google Route
Verify Otp Route
Resend Otp Route
Activate User Route
Register User To Org Route
Activate Invite Route
Get Schemas Api
Returns all registered schemas for the tenant as a dictionary keyed by api_name. Matches frontend expectation: schemas[object.toLowerCase()]
Create Schema Api
Creates a new custom object: compiles CREATE TABLE and inserts schema metadata.
Update Schema Api
Updates schema metadata (title, prefix, required, properties).
Get Schema Sync Status Api
Detects drift between the physical PostgreSQL database and Valstorm schemas metadata. Designed for engineering teams who directly execute SQL or run migrations.
Sync Schema From Postgres Api
Introspects native PostgreSQL tables/columns and synchronizes them into Valstorm schemas metadata. Enables engineering teams to run direct SQL migrations (Alembic/Prisma/Flyway) and immediately reflect new tables and columns into the dynamic UI grids, GraphQL, and AI agent runtime.
Get Schema By Name Api
Returns a single schema by api_name or schema ID.
Get Schema Field Api
Returns definition and metadata for a specific field on an object schema.
Create Schema Field Api
Adds a field to an existing object: executes ALTER TABLE ADD COLUMN and updates schemas.
Update Schema Field Api
Updates an existing field's metadata in the schema definition.
Delete Schema Api
Deletes an object schema and drops the physical table.
Delete Schema Field Api
Drops a column from the table and removes it from schemas metadata.
Create Validation Rule Api
Adds a validation rule to an object schema.
Update Validation Rule Api
Updates an existing validation rule on an object schema.
Delete Validation Rule Api
Deletes a validation rule from an object schema.
Create Records Api
Creates records in the specified object table through PlatformContext.
Update Records Api
Updates records in the specified object table through PlatformContext.
Delete Records Api
Deletes multiple records by comma-separated query parameter 'ids' or JSON body through PlatformContext.
Get Records Api
Lists records for an object with standard pagination headers through PlatformContext.
Create Records Api
Creates records in the specified object table through PlatformContext.
Update Records Api
Updates records in the specified object table through PlatformContext.
Delete Records Api
Deletes multiple records by comma-separated query parameter 'ids' or JSON body through PlatformContext.
Get Records Api
Lists records for an object with standard pagination headers through PlatformContext.
Delete Single Record Api
Deletes a single record by its ID through PlatformContext.
Get Single Record Api
Fetches a single record by its ID through PlatformContext.
Delete Single Record Api
Deletes a single record by its ID through PlatformContext.
Get Single Record Api
Fetches a single record by its ID through PlatformContext.
Undelete Single Record Api
Restores a single soft-deleted record within the 14-day retention window.
Undelete Single Record Api
Restores a single soft-deleted record within the 14-day retention window.
Undelete Records Api
Restores one or more soft-deleted records within the 14-day retention window.
Undelete Records Api
Restores one or more soft-deleted records within the 14-day retention window.
Get Deleted Records Api
Lists soft-deleted records currently in the 14-day Recycle Bin for an object.
Get Deleted Records Api
Lists soft-deleted records currently in the 14-day Recycle Bin for an object.
Get Devices Api
Returns registered desktop/mobile devices for the current organization.
Create Device Api
Update Device Api
Delete Device Api
Sql Query Get Route
Executes a SQL query via GET through PlatformContext.
Sql Query Post Route
Executes a SQL query via POST through PlatformContext.
Search Stream Post Route
Streams progressive Spotlight search results (SSE) across PostgreSQL CRM tables, VFS files, and Vaults.
Search Stream Get Route
Search Rest Post Route
Non-streaming unified Omnisearch across PostgreSQL CRM tables, VFS files, and Vaults.
Search Rest Post Route
Non-streaming unified Omnisearch across PostgreSQL CRM tables, VFS files, and Vaults.
Search Rest Get Route
Report Frontend
Executes single or batch analytical report aggregations against PostgreSQL. For batch requests (used by Dashboard.tsx), executes items concurrently, publishes WebSocket `analytics_report` events, and returns resolved results in the 202 response payload so dashboards render immediately even without WebSockets.
List Sandboxes Api
Lists all sandbox environments belonging to the current organization.
Create Sandbox Api
Provisions a dedicated sandbox database for the current organization.
List Sandboxes Api
Lists all sandbox environments belonging to the current organization.
Create Sandbox Api
Provisions a dedicated sandbox database for the current organization.
Update Sandbox Api
Updates metadata (name, description, environment) for an existing sandbox.
Delete Sandbox Api
Deletes and cleanly drops a dedicated sandbox database.
Refresh Sandbox Api
Synchronizes schemas and apps from production into the specified sandbox.
List App Environments Api
Lists all environments (Live Production Org + Sandboxes) in the tenant's organization family.
Pull Metadata Get Api
Dedicated single-roundtrip metadata pull endpoint (GET). Fetches requested metadata collections and schemas without requiring N sequential SQL queries.
Pull Metadata Post Api
Dedicated single-roundtrip metadata pull endpoint (POST). Supports manifest filtering, object_types lists, app_id scoping, and schema inclusion.
Push Metadata Api
Dedicated single-roundtrip, ACID-transactional metadata push endpoint. Compiles optional schemas and bulk-upserts metadata records across collections.
List Installed Apps Api
Lists applications installed inside the current tenant database. If marketplace=True is passed, returns the global marketplace catalog.
List Marketplace Apps Api
Lists all available applications from the global marketplace catalog.
Get App Bundle Api
Retrieves full application bundle (including schemas and record blueprints).
Uninstall App Delete Api
RESTful DELETE endpoint to uninstall an application from the tenant's database.
Apply Apps Api
Installs a list of applications into the tenant's PostgreSQL database. Compiles all DDL tables, foreign keys, injects admin permissions, and seeds default records within ACID transactions.
Install Single App Api
Installs a single application into the tenant's database.
Uninstall App Post Api
Uninstalls an application from the tenant's database. Supports safe mode (preserving data tables) or clean teardown mode (drop_schemas=True, drop_columns=True).
Onboard App Api
Marks an application as onboarded inside the tenant database.
Promote App Get Api
Legacy GET endpoint for 'Deploy to Next Environment' in Desktop AppSettings.tsx: GET /v1/apps/deploy/{app_id}
Package App Api
Packages a tenant application (updating version, schemas, and assigned records) and returns the complete portable app bundle.
Get Tenant App Bundle Api
Extracts the complete portable app bundle for a tenant app.
Promote App Post Api
Promotes/deploys an application package between environments (Sandbox <-> Live Production Org).
Deploy To Marketplace Api
Exports an application developed in this tenant and publishes/updates it in the global marketplace catalog.
Receive App Deploy Api
Deploys an application definition directly from an exported JSON bundle into the current tenant database with ACID transaction rollback safety.
Update Subscribers Legacy Api
Legacy query-parameter based subscriber update endpoint: POST /v1/apps/app-update-subscribers?id={app_id}
Update Subscribers Api
Propagates an updated application across all tenant organizations subscribed to this application.
Execute Function Api
Executes or dry-runs a serverless Python function in an isolated sandbox. Supports execution by function_id, function_name, or direct raw source code, and respects custom HTTP return envelopes (e.g. `text/xml` TwiML or custom JSON).
List Functions Api
Lists functions registered in the tenant database.
Create Function Api
Creates a new custom Python function with AST gatekeeper security verification.
Execute Public Function Api
Public webhook endpoint to execute a tenant's Open Valstorm Function (`fun_*`, name, or `file_name`). Enforces `public=True` (fail-closed), injects `PlatformContext.for_org(org_id)`, executes the function in the AST sandbox, and supports custom HTTP return structures (such as `text/xml` TwiML from `platform.twilio.twiml.response(...)`).
Execute Public Function Api
Public webhook endpoint to execute a tenant's Open Valstorm Function (`fun_*`, name, or `file_name`). Enforces `public=True` (fail-closed), injects `PlatformContext.for_org(org_id)`, executes the function in the AST sandbox, and supports custom HTTP return structures (such as `text/xml` TwiML from `platform.twilio.twiml.response(...)`).
Execute Public Function Api
Public webhook endpoint to execute a tenant's Open Valstorm Function (`fun_*`, name, or `file_name`). Enforces `public=True` (fail-closed), injects `PlatformContext.for_org(org_id)`, executes the function in the AST sandbox, and supports custom HTTP return structures (such as `text/xml` TwiML from `platform.twilio.twiml.response(...)`).
List Logs Api
Lists recent execution logs from the tenant's unified 'log' table with pagination.
List Logs Api
Lists recent execution logs from the tenant's unified 'log' table with pagination.
Get Log Details Api
Decompresses and returns complete execution inputs, outputs, and stack traces for a log entry.
Get Log Details Api
Decompresses and returns complete execution inputs, outputs, and stack traces for a log entry.
Purge Logs Api
Purges logs older than the specified retention window (default: 30 days).
Get Log Details Api
Decompresses and returns complete execution inputs, outputs, and stack traces for a log entry.
Purge Logs Api
Purges logs older than the specified retention window (default: 30 days).
Get Session V2
Returns lightweight session and identity context (~3-8 KB) in <20ms. Includes user identity, organization context, active workspace, scopes, and permissions. Replaces waiting for multi-megabyte /v1/auth/load to unlock the client UI.
