Apps · Developer account

createApp

Register an embedded web app

This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.

Registers an embedded web app for a bot. The URL must be https; the domain starts unverified. Returns the app plus the bot's app signing secret, shown once.

Request

curl https://api.sprintelex.com/createApp \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>","name":"My Bot","url":"https://example.com/sprintex-webhook"}'

Parameters

NameTypeRequiredRules
bot_idstring (UUID)Yesmust be a bot you own
namestringYes1-64 chars
urlstringYesvalid https URL, max 2048 chars

Response

{ ok: true, result: { app, app_secret } } — app_secret is shown only once

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
400name must be 1-64 charactersbad name
400url must be a valid https URLnot https
404bot not foundno owned bot with that id