Docs

Kotlin: Functions

Invoke your deployed functions with the Kotlin SDK.

Updated Oct 24, 2026

Invoke your deployed functions. Every call runs as the client's signed-in user, so your project's policies and row-level security apply. Types and members are listed in source order; each one links to its HTTP endpoint where it maps to one.

#Types and members

SovariaFunctions

Call the project's deployed functions the way an app does: POST /functions/v1/{name} with the signed-in user's token (or the anon key for public functions).

class SovariaFunctions(private val client: Sovaria)

SovariaFunctions.invoke

suspend fun invoke(name: String, body: Any? = null, headers: Map<String, String>? = null): Any?