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

# Functions

> Invoke tenant Functions via the JavaScript SDK

```ts theme={null}
const result = await client.functions.invoke('hello', {
  body: { name: 'Ada' },
  method: 'POST',
});
// result.data — parsed JSON body
// result.executionId — X-Function-Execution-Id
// result.status — HTTP status
```

Account slug is taken from the authenticated account, or `defaultAccount` in client config when that value is the account slug.


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