POST /v1/tiktok/web/generate_x_mssdk_info
Generate X-Mssdk-Info
stable · 3 credits per success
Generate X-Mssdk-Info and X-Mssdk-RC, used for TikTok Web device registration, login, and other scenarios;user_agent (str, optional): User-Agent string, currently not supported for customization, defaults to a fixed value;X-Mssdk-Info: Generated signing information;X-Mssdk-RC: Generated RC value;user_agent: The User-Agent string used;version: The webmssdk version used for signing
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| user_agent | string | body | no | 可选的用户代理字符串,目前不支持自定义,默认为固定的值 | Optional User-Agent string, currently not supported for customization, defaults to a fixe… | demo |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 3 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.