tencent cloud

DocumentationTencent Cloud TI-ONE Platform

TI-ONE API Callback Description

Download
Focus Mode
Font Size
Last updated: 2026-09-04 13:15:27
AI-Translated

1. Callback Description

For requests to create model services, task-based modeling jobs, or offline batch processing jobs, if you set the CallbackUrl parameter, the creation result is returned through a callback. You need to set up an HTTP or HTTPS service that is accessible from a public network, and fill in the callback URL in the CallbackUrl parameter when creating the task. During the callback, all content is placed in the Body. The Content-Type is application/json.

2. Callback body Description

2.1 Callback body Example

{
"code":0,
"message":"SERVICE_ALL_AVAILABLE",
"id":"ms-rnpj4br8-1",
"appName":"tione",
"projectName":"ems",
"taskName":"CreateModelService",
"totalTime":103.395331817,
"responseTime":"2022-12-08 15:53:33"
}

2.2 Callback Parameter Description

Field
Type
Description
code
Integer
Task status code. 0 indicates success, and other values indicate failure. For details, see the status code description.
message
String
Detailed information.
id
String
Internal ID, used to distinguish resource identifiers.
appName
String
Tencent CloudApp name, which is "tione" here.
projectName
String
Module name, which is an enumeration value:
ems: model service;
training: task-based modeling.
predict: offline batch processing
taskName
String
Name of the task that triggers the callback. Enumeration values:
When projectName=ems, possible enumeration values:
CreateModelService: create model service

When projectName=training or predict, possible enumeration values:
Start: start up
Stop: stop
totalTime
Float
Total task duration, in seconds.
responseTime
String
Callback request sending time, in the format of 2022-12-08 15:53:33.

3. Callback Response Description

After receiving the callback request, the user side needs to return a response in JSON format.

3.1 Callback Response Example

{
"code" : 0,
"message" : "success"
}

3.2 Callback Response Parameter Description

Parameter Name
Type
Description
code
Integer
Error code. 0 indicates success, and other values indicate failure.
message
String
Failure cause description

4. Callback Status Code

4.1 Model Service Callback Status Code

Value
Description
10000
Creation Failed
10001
Some Services Are Available
10002
Service Stopped.

4.2 Callback Status Codes for Task-based Modeling and Offline Batch Processing

Value
Description
10001
Task creation failed.
10002
Task execution failed.
10003
Task terminated due to timeout or overdue payment.
10004
Other task exceptions.

5. FAQ

How Many Times Will Callbacks Be Attempted at Most?

Up to 2 times

What Should I Do If No Callback Is Received for a Long Time?

Confirm whether the callback service is working properly, whether the callback address is correct, and whether the callback address is accessible over the public network.
If the callback address uses HTTPS, confirm that the certificate is issued by a legitimate CA.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback