v1

latestOpenAPI 3.1.0Apache-2.02026-07-13153158.0 KB
invoke

Invoke a function asynchronously

post/functions/{id}/invoke-async

Path parameters

idstring uuid required

Server-assigned function identifier (UUIDv4).

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

exportstring nullable

Optional export-name override. When omitted (or null), the server tries _start first and falls back to main, matching the WASI command convention.

Response

Job accepted

job_idstring uuid required

Server-assigned job identifier (UUIDv4).