Apps · Developer account

regenerateAppSecret

Regenerate the app signing secret

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.

Generates a new app signing secret for the bot, shown once. Old initData stops validating; update SPRINTELEX_APP_SECRET on your server.

Request

curl https://api.sprintelex.com/regenerateAppSecret \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>"}'

Parameters

NameTypeRequiredRules
bot_idstring (UUID)Yesmust be a bot you own

Response

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

Rate limit: none in code

Errors

StatusErrorWhen
404bot not foundno owned bot with that id