Get the results of a Smart Fix task
GET/video/fix/task/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/
Description
Use this endpoint to get the results of a Smart Fix task.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| task_id | query | string | Yes | Fix task ID. Pass in the fix_task_id you get from the response of the /video/fix/task/create/ or /file/video/ad/upload/endpoint. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/?task_id=" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/",
params={
"task_id": ""
},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/');
for (const [k, v] of Object.entries({"task_id":""})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok_business/video/fix/task/get/' . '?' . http_build_query(['task_id' => '']); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | number | Response code. For the complete list of response codes and descriptions, see Appendix - Return Codes. | |
| message | string | Response message. For details, see Appendix - Return Codes. | |
| data | object | The returned data | |
| status | string | Task status. Enum values: `PROCESSING`, `FAILED`, `SUCCESS`. | |
| error_msg | string | Error message. Returned only when the status is `FAILED`. | |
| videos | object[] | Fixed video info. Max size is 3. Returned only when the status is `SUCCESS`. | |
| video_id | string | Fixed video ID. | |
| video_url | string | Fixed video preview URL. Valid only for 7 days. | |
| request_id | string | The log id of a request, which uniquely identifies the request. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "202208180952320101860032142108B920",
"data": {
"error_msg": null,
"videos": [
{
"video_url": "http://v16m-default.akamaized.net/a17b15b1c623eea1856c89d521af1bfc/63074676/video/tos/alisg/tos-alisg-v-0000/c98a4fb0433d4e3e9adf27228c7543cb/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=748&bt=374&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=NTk2NWk7Nzg0O2VlMzloZUBpamtvcmU6ZnIzZTMzODYzNEAuMV9gLTIwNmAxLWMyNGI1YSNxLjNicjRnanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
"video_id": "v10033g50000cbv0mojc77ubeo6l1htg"
},
{
"video_url": "http://v16m-default.akamaized.net/85d8eb552878e7f12f81c692e987bdb8/63074676/video/tos/alisg/tos-alisg-v-0000/67029d0cd5a7411bbd25c42062765a21/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=748&bt=374&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=M2k4OTs3Zjg6aWU0aTU7O0BpM3BqeWY6ZnIzZTMzODYzNEA1Yl81NS8vXjExNWJfYTY1YSNnZmAucjRnanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
"video_id": "v10033g50000cbv0mojc77uc1vcgimj0"
},
{
"video_url": "http://v16m-default.akamaized.net/11609ae2c7055dfee98b657103e4e3e0/63074676/video/tos/alisg/tos-alisg-v-0000/cd9e274c0def4d398b1228a35ebabd19/?a=0&ch=0&cr=0&dr=0&er=0&lr=default&cd=0%7C0%7C0%7C0&br=746&bt=373&cs=0&ds=1&ft=uSV.Ng3-Inz.Jx9oABM&mime_type=video_mp4&qs=0&rc=NjNkNzo8NGhoNmlmaTxpNkBpM2U4bzk6ZnMzZTMzODYzNEBeMDJeXzY2NmExNDMxMV4yYSNwNWhhcjQwanNgLS1kMC1zcw%3D%3D&l=202208180952320101860032142108B920&btag=80000",
"video_id": "v10033g50000cbv0mp3c77u6dlk58bs0"
}
],
"status": "SUCCESS"
}
}
(/code);
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above