v1

latestOpenAPI 3.1.0Apache-2.02026-07-13153158.0 KB
lifecycle

Deploy a new Wasm module

post/functions

Headers

X-TensorWasm-Tenantinteger

Tenant scope (u64). Defaults to 0 if absent. Mandatory when the gateway runs with TENSOR_WASM_API_REQUIRE_TENANT=1.

Request body

namestring required

Tenant-supplied display name (free-form, non-empty).

wasm_b64string required

Base64-encoded Wasm module bytes (standard alphabet, padded). Decoded value must validate as a complete Wasm module via wasmparser::validate.

Response

Function deployed

idstring uuid required

Server-assigned function identifier (UUIDv4).