← 返回目录
📁 API Reference › Events 1.0 › CRM Events

创建客户关系管理事件集

此接口可用于在广告主账号中创建 CRM(客户关系管理)事件组。最多可在一个广告主账号中创建 50 个 CRM 事件组。

重要说明
使用事件 API 接口,即表示你同意遵守 TikTok 商业产品(数据)条款,并且你不会与 TikTok 分享敏感数据。

请求

地址 https://business-api.tiktok.com/open_api/v1.3/crm/create/

方法 POST

Header

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

参数

|字段{30%}|类型{15%}|描述{55%}|
|--- |--- |--- |
| advertiser_id {必填} | string | 广告主 ID。 |
| name {必填} | string | 要在广告账号中创建的 CRM 事件组的名称。<br><br>长度限制:40 个字符。<br>首尾空格将被删除,且最终名称不得为空。<br><br><p><span style="color:darkred"><strong>注意</strong></span>:CRM 事件组名称不得重复。</p> |

示例

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

返回

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
|code |number|返回码。完整返回码列表及描述参见[附录 - 返回码](1737172488964097.html)。 |
|message|string|返回信息。更多信息参见[附录 - 返回码](1737172488964097.html)。|
|request_id |string|请求的日志 ID,唯一标识一个请求。  |
|data |object|返回数据。|
#| event_set_id | string | CRM 事件组的 ID。 |
#| name | string | CRM 事件组的名称。 |
#| create_time | string | CRM 事件组的创建时间,采用 [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) 格式。<br><br>示例:`2026-01-01T00:00:01Z`。 |

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "event_set_id": "{{event_set_id}}",
        "name": "{{name}}",
        "create_time": "{{create_time}}"
    }
}
(/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 每日平台更新简报 →