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
| Name | Type | Required | Rules |
|---|---|---|---|
| bot_id | string (UUID) | Yes | must be a bot you own |
Response
{ ok: true, result: { app_secret } } — shown only onceRate limit: none in code
Errors
| Status | Error | When |
|---|---|---|
| 404 | bot not found | no owned bot with that id |