Skip to content
Last updated

API reference

MiniApps expose a small REST surface for OAuth and inbound webhooks. Tenants interact with installed MiniApps through GraphQL in the Karzoun app (Marketplace install, credentials, action execution).

Base path: {SAAS_API_URL}/miniapps

REST endpoints (runtime)

MethodPathDescription
GET/{appNs}/oauth2Start or complete OAuth 2.0 authorization
POST/{appNs}/webhooksReceive webhooks from external providers

Register these URLs with your provider:

  • Redirect URI: {SAAS_API_URL}/miniapps/{ns}/oauth2
  • Webhook URL: {SAAS_API_URL}/miniapps/{ns}/webhooks

GraphQL — Marketplace & install

Available to authenticated Karzoun users in the app. See the public GraphQL reference for full argument types.

Queries

QueryDescription
listMiniAppsGeneralInfoBrowse Marketplace apps (installStatus, search)
miniAppGeneralInfoSingle app listing by ns
miniAppDetailInstalled app detail — actions and forms (miniAppNs)
miniAppsActionSourcesRPC dropdown data (miniAppNs, sourceKey, …)
testMiniApiRequestTest one action request (developer tooling in app)
miniAppDashboardConfigDashboard iframe bridge — actions and auth state

Mutations

MutationDescription
installMiniAppInstall from Marketplace (ns)
saveMiniAppCredentialsSave auth credentials; runs token exchange + registration
executeMiniAppActionRun an action with server-side credentials (appNs, actionName, formInput)
Rate limits

Action execution is rate-limited per user per app (30 requests / 60 seconds). Design actions to be idempotent where possible.

Tenant webhooks vs MiniApp webhooks

Tenant webhooksMiniApp webhooks
DirectionKarzoun → your serverProvider → Karzoun
PurposeNotify your backend about workspace eventsIngest provider events into automations/sync
RegistrationwebhooksAdd GraphQLDefined in MiniApp JSON + provider dashboard