---
title: "Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited."
method: POST
path: "/textql.rpc.public.app.AppService/InvokeAppComputeFunction"
tags: ["AppService"]
---

# Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.

`POST /textql.rpc.public.app.AppService/InvokeAppComputeFunction`

Executes a declared compute function on a pooled sandbox worker; gated, org-scoped, rate-limited.

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- TextqlRpcPublicAppInvokeAppComputeFunctionRequest
  - `appId` string
  - `functionName` string
  - `paramsJson` string

## Response `200`

Success

- TextqlRpcPublicAppInvokeAppComputeFunctionResponse — ComputeFunction is a declared server-side function invocable from the app via the bridge. Exactly one of code (python, runs on the app's worker), sql (plain SQL on the app's private DB), tql (inline TQL source), or tql_path (a Context Library .tql) must be set. TQL variants are real TQL (compiled at save time) executed against a connector; sql is the app-state path (:name params bound server-side, reserved :_now / :_uuid).
  - `resultJson` string

## Other responses

- `default` — Error

---

[API](https://skmtc.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/revisions/31ce2b0c4427/schema)
