# Generate TikTok X-Mssdk-Info

Generate X-Mssdk-Info and X-Mssdk-RC, used for TikTok Web device registration, login, and other scenarios. Takes user agent (optional). Served by TikHub.

Purpose:
- Generate X-Mssdk-Info and X-Mssdk-RC, used for TikTok Web device registration, login, and other scenarios
Parameters:
- user_agent (str, optional): User-Agent string, currently not supported for customization, defaults to a fixed value
Return:
- 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

- Tool ID: `tikhub/tiktok-web-generate-x-mssdk-info`
- Name in the catalog: Tiktok, Generate X-Mssdk-Info
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [TikTok videos](/tools/tiktok/videos.md)
- Price: $0.002 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.002
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.002; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "user_agent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Agent",
      "description": "可选的用户代理字符串，目前不支持自定义，默认为固定的值 | Optional User-Agent string, currently not supported for customization, defaults to a fixed value"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/tiktok-web-generate-x-mssdk-info",
  "input": {}
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/TikTok-Web-API/generate_x_mssdk_info_api_v1_tiktok_web_generate_x_mssdk_info_post)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/tiktok-web-generate-x-mssdk-info) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/tiktok-web-generate-x-mssdk-info) · [Agent index](/llms.txt)
