Skip to main content

Installation

  1. Add InsForge dependencies to your project
build.gradle.kts:
  1. Initialize InsForge SDK
  1. Enable Logging (Optional)
For debugging, you can configure the SDK log level:
Use NONE or ERROR in production to avoid exposing sensitive data in logs.

Android Initialization

  1. Add Chrome Custom Tabs dependency to your build.gradle.kts:
  1. Initialize InsForge SDK (With Chrome Custom Tabs and Session Storage)
  1. Use Jetpack DataStore for Session Storage (Optional)

invoke()

Invoke a serverless function by slug.

Parameters

  • slug (String) - Function slug identifier
  • body (Any?, optional) - Request body (will be JSON serialized)

Returns

Examples

Example with Typed Request


invokeRaw()

Invoke a function and get the raw HTTP response.

Example


Admin Functions

The following methods require admin/service role authentication.
These methods require the client to be initialized with a service role key instead of the anon key. Service role keys have elevated privileges and should only be used in secure server-side environments, never in client-side code.

listFunctions()

List all functions.

getFunction()

Get specific function details.

createFunction()

Currently, InsForge only supports JavaScript/TypeScript functions running in a Deno environment.
Create a new function.

updateFunction()

Update an existing function.

deleteFunction()

Delete a function.

Error Handling


Models Reference

FunctionMetadata

FunctionDetails