← 返回目录
📁 API Reference › Page

验证即时体验页面编辑器 SDK 访问令牌

您可以使用本接口验证即时体验页面编辑器 SDK 访问令牌是否过期。

若您确认令牌已过期,可使用 /oauth2/access_token/tip_sdk/renew/ 刷新访问令牌。

请求

地址 https://business-api.tiktok.com/open_api/v1.3/access_token/tip_sdk/validate/

方法 POST

Header

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](1738373164380162.html)接口获取。|
|Content-Type {必填}|string|请求信息类型。<br>允许格式:`application/json`。|

参数

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
| advertiser_id {必填} | string | 广告主 ID。 |
| tip_sdk_access_token{必填} | string| 即时体验页面编辑器 SDK 访问令牌。<br><br>若您想创建一个新的访问令牌,可使用[/oauth2/access_token/tip_sdk/create/](1820826755283969.html)。|

示例

(code curl http)
curl --location  --request POST 'https://business-api.tiktok.com/open_api/v1.3/oauth2/access_token/tip_sdk/validate/' \
--header 'Access-Token: {{Access-Token}}' \
--header 'Content-Type: application/json' \
--data '{
    "advertiser_id": "{{advertiser_id}}",
    "tip_sdk_access_token": "{{tip_sdk_access_token}}"
}'
(/code)

返回

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
|code |number| 返回码。完整返回码列表及描述,参见 [附录 - 返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|message |string| 返回信息。更多信息参见 [附录 - 返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。 |
|request_id |string| 请求的日志ID,唯一标识一个请求。 |
|data |object| 返回数据。 |
#|is_valid| boolean |访问令牌是否有效。<br><br>支持的值:`true`,`false`。|

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "is_valid": true
    }
}
(/code)

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →