Pirate Tok
Docs/TikTok protocol/Shop & messaging/API V1 Shop IM Buyer User Get Token
POST/api/v1/shop_im/buyer/user/get_token

API V1 Shop IM Buyer User Get Token

Purpose

Bootstrap buyer-side OEC IM connectivity in the native TikTok client by returning both API and websocket routing targets.

Endpoint

  • transport context: native Android OEC/Cronet capture
  • observed host: oec16-normal-no1a.tiktokv.eu
  • method: POST
  • path: /api/v1/shop_im/buyer/user/get_token

Observed Request Characteristics

In addition to the broader native OEC query envelope:

  • content-type: application/x-www-form-urlencoded; charset=UTF-8
  • content-length: 9
  • x-ss-stub
  • x-argus
  • x-gorgon
  • x-khronos
  • x-ladon
  • x-tt-token

The observed body was decoded as null. This does not establish whether the original form body was empty or could not be decoded.

Observed Response Shape

  • /code
  • /message
  • /data/token_info/token
  • /data/token_info/env
  • /data/token_info/idc_region
  • /data/token_info/ws_url
  • /data/token_info/biz_service_id
  • /data/token_info/api_url
  • /data/token_info/frontier_urls[]
  • /data/token_info/app_id
  • /data/token_info/fp_id
  • /data/token_info/app_key
  • /data/token_info/frontier_service_id
  • /data/token_info/im_buyer_id

Observed preserved values:

  • code=0
  • message=""
  • data.token_info.env="prod"
  • data.token_info.idc_region="no1a"
  • data.token_info.ws_url="wss://frontier.tiktokv-eu.com/ws/v2"
  • data.token_info.api_url="https://oec-im-tt-i18n.tiktokglobalshopv.com/"
  • data.token_info.frontier_urls=[]
  • data.token_info.app_id=5341
  • data.token_info.fp_id=92
  • data.token_info.frontier_service_id=10002

Interpretation Notes

  • this is the strongest preserved native route that turns an app-authenticated OEC session into concrete IM transport targets
  • the returned api_url is corroborated by follow-on requests to OEC IM V1 Message Get By User
  • the returned ws_url points at frontier.tiktokv-eu.com/ws/v2, distinct from the webcast WebSocket host family