tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary

Callback Information

PDF
Focus Mode
Font Size
Last updated: 2025-09-09 18:33:04

Feature Overview

Cloud Infinite supports custom configuration of callback URLs. After a task is completed, the system sends an HTTP POST request to this URL, with the notification content in the request body. You can use the callback URL to learn about the task processing progress and status in a timely manner for other business operations.

Callback Content

After task completion, the system will send callback content to your configured callback address. The following shows the complete content of the node data:
<Response>
<EventName>TaskFinish</EventName>
<JobsDetail>
<Code>Success</Code>
<CreationTime>2022-06-30T15:29:42+0800</CreationTime>
<EndTime>2022-06-30T15:29:48+0800</EndTime>
<Input>
<BucketId>test-123456789</BucketId>
<Object>input/demo.mp4</Object>
<Region>ap-chongqing</Region>
</Input>
<JobId>j6842765cf84611ecb8546d80f2baf56f</JobId>
<Message/>
<Operation>
<MediaInfo>
<Format/>
<Stream>
<Audio/>
<Subtitle/>
<Video/>
</Stream>
</MediaInfo>
<MediaResult>
<OutputFile>
<Bucket>test-123456789</Bucket>
<Md5Info/>
<ObjectName>output/smartcover-0.jpg</ObjectName>
<ObjectName>output/smartcover-1.jpg</ObjectName>
<ObjectName>output/smartcover-2.jpg</ObjectName>
<ObjectName>output/smartcover-3.jpg</ObjectName>
<ObjectName>output/smartcover-4.jpg</ObjectName>
<ObjectPrefix/>
<Region>ap-chongqing</Region>
</OutputFile>
</MediaResult>
<Output>
<Bucket>test-123456789</Bucket>
<Object>output/smartcover-${number}.jpg</Object>
<Region>ap-chongqing</Region>
</Output>
<SmartCover>
<Count>5</Count>
<DeleteDuplicates>false</DeleteDuplicates>
<Format>jpg</Format>
<Height>960</Height>
<Width>1280</Width>
</SmartCover>
<UserData>This is my SmartCover job.</UserData>
<JobLevel>0</JobLevel>
</Operation>
<QueueId>p2242ab62c7c94486915508540933a2c6</QueueId>
<StartTime>2022-06-30T15:29:43+0800</StartTime>
<State>Success</State>
<Tag>SmartCover</Tag>
</JobsDetail>
</Response>
The data content is as follows:
Node Name (Keyword)
Parent Node
Description
Type
Response
None
Container for saving results
Container
The content of container node Response:
Node Name (Keyword)
Parent Node
Description
Type
EventName
Response
The value is fixed as TaskFinish
String
JobsDetail
Response
Same as Response.JobsDetail in the submit Intelligent Cover task API
Container array
If the task is triggered by a workflow, Response.JobsDetail.Input will also include a CosHeaders node, which is of type Container array.
The content of container node CosHeaders:
Node Name (Keyword)
Parent Node
Description
Type
Key
Response.JobsDetail.Input.CosHeaders
Name of custom Header
String
Value
Response.JobsDetail.Input.CosHeaders
Value of custom Header
String
If the task is triggered by a workflow, Response.JobsDetail will also include a Workflow node, which is of type Container.
The content of container node Workflow:
Node Name (Keyword)
Parent Node
Description
Type
RunId
Response.Workflow
Workflow instance ID
String
WorkflowId
Response.Workflow
Workflow ID
String
WorkflowName
Response.Workflow
Workflow name
String
Name
Response.Workflow
Workflow node name
String

Practical Example

Case 1: Task Callback Triggered by Task API

<Response>
<EventName>TaskFinish</EventName>
<JobsDetail>
<Code>Success</Code>
<CreationTime>2022-06-30T15:29:42+0800</CreationTime>
<EndTime>2022-06-30T15:29:48+0800</EndTime>
<Input>
<BucketId>test-123456789</BucketId>
<Object>input/demo.mp4</Object>
<Region>ap-chongqing</Region>
</Input>
<JobId>j6842765cf84611ecb8546d80f2baf56f</JobId>
<Message/>
<Operation>
<MediaInfo>
<Format/>
<Stream>
<Audio/>
<Subtitle/>
<Video/>
</Stream>
</MediaInfo>
<MediaResult>
<OutputFile>
<Bucket>test-123456789</Bucket>
<Md5Info/>
<ObjectName>output/smartcover-0.jpg</ObjectName>
<ObjectName>output/smartcover-1.jpg</ObjectName>
<ObjectName>output/smartcover-2.jpg</ObjectName>
<ObjectName>output/smartcover-3.jpg</ObjectName>
<ObjectName>output/smartcover-4.jpg</ObjectName>
<ObjectPrefix/>
<Region>ap-chongqing</Region>
</OutputFile>
</MediaResult>
<Output>
<Bucket>test-123456789</Bucket>
<Object>output/smartcover-${number}.jpg</Object>
<Region>ap-chongqing</Region>
</Output>
<SmartCover>
<Count>5</Count>
<DeleteDuplicates>false</DeleteDuplicates>
<Format>jpg</Format>
<Height>960</Height>
<Width>1280</Width>
</SmartCover>
<UserData>This is my SmartCover job.</UserData>
<JobLevel>0</JobLevel>
</Operation>
<QueueId>p2242ab62c7c94486915508540933a2c6</QueueId>
<StartTime>2022-06-30T15:29:43+0800</StartTime>
<State>Success</State>
<Tag>SmartCover</Tag>
</JobsDetail>
</Response>

Case 2: Task Callback Triggered by Workflow

<Response>
<EventName>TaskFinish</EventName>
<JobsDetail>
<Code>Success</Code>
<CreationTime>2022-06-30T15:29:42+0800</CreationTime>
<EndTime>2022-06-30T15:29:48+0800</EndTime>
<Input>
<BucketId>test-123456789</BucketId>
<Object>input/demo.mp4</Object>
<Region>ap-chongqing</Region>
<CosHeaders>
<Key>Content-Type</Key>
<Value>video/mp4</Value>
</CosHeaders>
<CosHeaders>
<Key>x-cos-request-id</Key>
<Value>NjJiZDYwYTFfNjUzYTYyNjRfZjEwZl8xMmZhYzY5</Value>
</CosHeaders>
<CosHeaders>
<Key>EventName</Key>
<Value>cos:ObjectCreated:Put</Value>
</CosHeaders>
<CosHeaders>
<Key>Size</Key>
<Value>1424687</Value>
</CosHeaders>
</Input>
<JobId>j6842765cf84611ecb8546d80f2baf56f</JobId>
<Message/>
<Operation>
<MediaInfo>
<Format/>
<Stream>
<Audio/>
<Subtitle/>
<Video/>
</Stream>
</MediaInfo>
<MediaResult>
<OutputFile>
<Bucket>test-123456789</Bucket>
<Md5Info/>
<ObjectName>output/smartcover-0.jpg</ObjectName>
<ObjectName>output/smartcover-1.jpg</ObjectName>
<ObjectName>output/smartcover-2.jpg</ObjectName>
<ObjectName>output/smartcover-3.jpg</ObjectName>
<ObjectName>output/smartcover-4.jpg</ObjectName>
<ObjectPrefix/>
<Region>ap-chongqing</Region>
</OutputFile>
</MediaResult>
<Output>
<Bucket>test-123456789</Bucket>
<Object>output/smartcover-${number}.jpg</Object>
<Region>ap-chongqing</Region>
</Output>
<SmartCover>
<Count>5</Count>
<DeleteDuplicates>false</DeleteDuplicates>
<Format>jpg</Format>
<Height>960</Height>
<Width>1280</Width>
</SmartCover>
<UserData>This is my SmartCover job.</UserData>
<JobLevel>0</JobLevel>
</Operation>
<QueueId>p2242ab62c7c94486915508540933a2c6</QueueId>
<StartTime>2022-06-30T15:29:43+0800</StartTime>
<State>Success</State>
<Tag>SmartCover</Tag>
<Workflow>
<Name>SmartCover_1581665960537</Name>
<RunId>ic90edd59f84f11ec9d4f525400a3c59f</RunId>
<WorkflowId>web6ac56c1ef54dbfa44d7f4103203be9</WorkflowId>
<WorkflowName>workflow-test</WorkflowName>
</Workflow>
</JobsDetail>
</Response>

Case 3: Task Callback Triggered by Workflow in JSON Format

{
"EventName": "TaskFinish",
"JobsDetail": [{
"Code": "Success",
"CreationTime": "2022-06-30T15:29:42+0800",
"EndTime": "2022-06-30T15:29:48+0800",
"Input": {
"BucketId": "test-123456789",
"Object": "input/demo.mp4",
"Region": "ap-chongqing",
"CosHeaders": [{
"Key": "Content-Type",
"Value": "video/mp4"
},
{
"Key": "x-cos-request-id",
"Value": "NjJiZDYwYTFfNjUzYTYyNjRfZjEwZl8xMmZhYzY5"
},
{
"Key": "EventName",
"Value": "cos:ObjectCreated:Put"
},
{
"Key": "Size",
"Value": "1424687"
}
]
},
"JobId": "j6842765cf84611ecb8546d80f2baf56f",
"Operation": {
"MediaInfo": {
"Stream": {

}
},
"MediaResult": {
"OutputFile": {
"Bucket": "test-123456789",
"ObjectName": [
"output/smartcover-0.jpg",
"output/smartcover-1.jpg",
"output/smartcover-2.jpg",
"output/smartcover-3.jpg",
"output/smartcover-4.jpg"
],
"Region": "ap-chongqing"
}
},
"Output": {
"Bucket": "test-123456789",
"Object": "output/smartcover-${number}.jpg",
"Region": "ap-chongqing"
},
"SmartCover": {
"Count": "5",
"DeleteDuplicates": "false",
"Format": "jpg",
"Height": "960",
"Width": "1280"
},
"UserData": "This is my SmartCover job.",
"JobLevel": 0
},
"QueueId": "p2242ab62c7c94486915508540933a2c6",
"StartTime": "2022-06-30T15:29:43+0800",
"State": "Success",
"Tag": "SmartCover",
"Workflow": {
"Name": "SmartCover_1581665960537",
"RunId": "ic90edd59f84f11ec9d4f525400a3c59f",
"WorkflowId": "web6ac56c1ef54dbfa44d7f4103203be9",
"WorkflowName": "workflow-test"
}
}]
}



Help and Support

Was this page helpful?

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

Feedback