> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# api.executeComponent()

> Public low-code contract, signatures and examples for api.executeComponent.

## `api.executeComponent()`

Executes another active component in the managed RevoEngine runtime and returns its execution result.

Notes:

* Supports CODE\_JS, CODE\_TS, and CUSTOM\_NODEJS components.
* CODE\_JS and CODE\_TS run in a fresh isolated execution on the current host by default.
* Set options.executionHost to "remote" to use the separate Sandbox host.
* CUSTOM\_NODEJS runs in its governed RevoEngine component environment.
* If timeoutMs is omitted, the child receives the parent execution's remaining timeout budget.
* A larger timeoutMs is clamped to that remaining budget.
* Nesting is limited to five levels across local, remote and custom component calls.
* At least 1 second of parent budget is required for remote Sandbox calls.
* Promise.all() starts independent child component executions.

### Signature

```ts theme={null}
static executeComponent<T = LooseObject<any>>(
      request: ComponentExecuteRequest,
    ): Promise<ComponentExecuteResult<T>>;
```

### Example

```ts theme={null}
const [pricing, taxes] = await Promise.all([
  api.executeComponent({ componentId: pricingComponentId, inputs: { customerId }, timeoutMs: 9000 }),
  api.executeComponent({ componentId: taxComponentId, inputs: { customerId }, timeoutMs: 9000 }),
]);
```

See [all api methods](https://docs.revoengine.com/low-code/reference/api.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.