认证
路径参数
请求体
当前接口没有额外的业务字段。请求时提交空 JSON 对象:请求示例
- cURL
- TypeScript
- Python
成功响应
请求成功时返回 HTTP200。响应体不包含业务字段。
使用限制
- 仅支持当前用户拥有的普通营销活动草稿。
- 不支持定时营销活动、暂停恢复或失败重跑。
- 启动时会根据最新的联系人和标签成员生成收件人快照。
- 收件人较多时,请求可能需要更长的处理时间。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
生成收件人快照并启动普通批量营销活动
POST https://api.sendify.dingstore.cn/dmx/v2/campaigns/{id}/run
Authorization: Bearer YOUR_API_KEY
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 营销活动唯一标识,来自创建结果或营销活动列表 |
{}
curl -X POST \
"https://api.sendify.dingstore.cn/dmx/v2/campaigns/03ec9355-4bf3-4a09-9829-4f3ef1d12a90/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
const campaignId = "03ec9355-4bf3-4a09-9829-4f3ef1d12a90";
const response = await fetch(
`https://api.sendify.dingstore.cn/dmx/v2/campaigns/${campaignId}/run`,
{
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({}),
}
);
console.log(response.status);
console.log(await response.text());
import requests
campaign_id = "03ec9355-4bf3-4a09-9829-4f3ef1d12a90"
response = requests.post(
f"https://api.sendify.dingstore.cn/dmx/v2/campaigns/{campaign_id}/run",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={},
)
print(response.status_code)
print(response.text)
200。响应体不包含业务字段。
| HTTP 状态码 | 说明 |
|---|---|
400 | 活动类型或状态不支持、活动正在处理中、没有有效收件人,或引用的资源不可访问 |
401 | 访问未授权,请检查是否传递了正确的 Bearer API Key |
403 | 无 API 访问权限,请检查 API Key 的权限配置 |
404 | 营销活动不存在,或不属于当前 API Key 所属用户 |
Was this page helpful?
