Apps · Developer account

getAppInitData

Get signed launch data for an 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.

Returns the signed launch payload for opening an app. Any signed-in user may open a verified app; the initData carries their per-bot scoped identity and auth_date, HMAC-signed with the bot's app secret. When bot_id is passed (launch from a bot thread), the app must belong to that bot.

Request

curl https://api.sprintelex.com/getAppInitData \
  # authenticated with your dashboard session

Parameters

NameTypeRequiredRules
app_idstring (UUID)Noor app_url
app_urlstringNoor app_id
bot_idstring (UUID)Nobinds the app to this bot

Response

{ ok: true, result: { initData, app: { id, name, url, domain } } }

Rate limit: none in code

Errors

StatusErrorWhen
404app not foundno such app
403app domain is not verifiedunverified
403app does not belong to this botbot_id mismatch