Installation
npx @insforge/cli secrets get ANON_KEY, or in the dashboard: click Install and open API Keys.
invoke()
Invoke a serverless function by slug.Parameters
slug(string, required) - Function slug/namebody(any, optional) - Request body (JSON-serializable)headers(object, optional) - Custom headersmethod(‘GET’ | ‘POST’ | ‘PUT’ | ‘PATCH’ | ‘DELETE’, optional) - HTTP method (default: POST)
Returns
SDK automatically includes authentication token from logged-in user.