Skip to main content

Applications and webhooks

Console client configuration · Response and shared models

Applications belong to the signed-in account. Creation returns appSecret only once. updateConfig replaces the complete config object; read and merge the existing configuration before changing selected fields.

updateWebhook accepts webhookUrl, subscribedEvents, and rotateSecret. A nonempty URL requires at least one event. An empty URL clears the callback and removes its signing secret. webhookSecret is returned only when setting or rotating the secret. See webhooks for events and verification.

apps.list​

List applications.

GET /v1/apps

Authentication: tenant Bearer token.

LanguageCall
Node.jsc.apps.list()
Pythonc.apps.list()
Javac.apps.list()
Goc.Apps.List(ctx, &result)
PHP$c->apps->list()

No request fields.

Returns: AppRecord[]. See shared models for nested fields.

apps.get​

Get application.

GET /v1/apps/detail

Authentication: tenant Bearer token.

LanguageCall
Node.jsc.apps.get(input)
Pythonc.apps.get(**input)
Javac.apps.get(input)
Goc.Apps.Get(ctx, input, &result)
PHP$c->apps->get($input)

Input: AppIdInput. Fields are sent as URL query parameters.

FieldRequiredTypeDescription
appIdYesstringTarget application ID

Returns: AppRecord. See shared models for nested fields.

apps.create​

Create application.

POST /v1/apps

Authentication: tenant Bearer token.

LanguageCall
Node.jsc.apps.create(input)
Pythonc.apps.create(**input)
Javac.apps.create(input)
Goc.Apps.Create(ctx, input, &result)
PHP$c->apps->create($input)

Input: CreateAppPayload. Fields are sent in the JSON body.

FieldRequiredTypeDescription
nameYesstringApplication or classroom name
environmentNoAppEnvironment | undefinedApplication environment
configNoRecord<string, unknown> | undefinedComplete replacement application configuration

Returns: AppRecord. See shared models for nested fields.

apps.updateConfig​

Replace application configuration.

PATCH /v1/apps/config

Authentication: tenant Bearer token.

LanguageCall
Node.jsc.apps.updateConfig(input)
Pythonc.apps.update_config(**input)
Javac.apps.updateConfig(input)
Goc.Apps.UpdateConfig(ctx, input, &result)
PHP$c->apps->updateConfig($input)

Input: UpdateAppConfigInput. Fields are sent in the JSON body.

FieldRequiredTypeDescription
configYesRecord<string, unknown>Complete replacement application configuration
appIdYesstringTarget application ID

Returns: AppRecord. See shared models for nested fields.

apps.updateWebhook​

Configure webhook and signing secret.

PATCH /v1/apps/webhook

Authentication: tenant Bearer token.

LanguageCall
Node.jsc.apps.updateWebhook(input)
Pythonc.apps.update_webhook(**input)
Javac.apps.updateWebhook(input)
Goc.Apps.UpdateWebhook(ctx, input, &result)
PHP$c->apps->updateWebhook($input)

Input: UpdateWebhookInput. Fields are sent in the JSON body.

FieldRequiredTypeDescription
webhookUrlYesstringWebhook URL; empty string clears callback and signing secret
subscribedEventsNostring[] | undefinedSubscribed event types
rotateSecretNoboolean | undefinedRotate webhook signing secret
appIdYesstringTarget application ID

Returns: UpdateWebhookResult. See shared models for nested fields.