account

Grant Wechat Miniprogram Login

Changed on

Exchange a mini-program js_code for a one-time web-view ticket. No session cookie.

post/account/auth/wechat-miniprogram/grant

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

WechatMiniProgramGrantRequest required
js_code, string required
locale, 'zh' | 'en' nullable
expected_user_id, string nullable

Response

Successful Response

WechatMiniProgramGrantResponse required
ticket, string required
new_user, boolean

Changes