tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Callback Information

PDF
Focus Mode
Font Size
Last updated: 2026-01-12 18:52:36

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