CreateWatermarkSignTask

Updated at:

Submits a combined task for invisible watermark embedding and C2PA signing.

Operation description

Completes invisible watermark embedding and official C2PA signing in a single call. The service first embeds an invisible watermark into an image, video, or audio file, and then applies an official DigiCert C2PA signature to the result. You only need to upload and download the file once.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

aideepsign:CreateWatermarkSignTask

create

*All Resource

*

None None

Request syntax

GET  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The idempotency parameter.

xxx

FileType

string

Yes

The file type. Valid values: image, video, and audio. For audio files, the watermark is always processed through the EAS pipeline, the capacity is always 32 bits (auto_len is invalid), and the file name extension of the signed output is always .wav.

video

FileUrl

string

No

The URL of the file to be processed. You must specify either this parameter or ObjectKey. Images, videos, and audio files are supported. Only HTTP and HTTPS protocols are supported. The source file name extension is verified based on the intersection of C2PA signing capabilities and watermark tier capabilities. For images, only .jpg, .jpeg, and .png are supported. For videos, only .mp4 is supported, and the video must be within 10 minutes and 100 MB in size. For audio files, only .flac, .m4a, .mp3, and .wav are supported.

https://example.com/images/photo.png?token=xxx

WatermarkContent

string

Yes

The watermark content. The service internally maps the content to an integer watermark ID and restores the original content when the watermark is extracted.

wm-e2e-85970647

Level

string

Yes

The watermark embedding strength. Valid values: 0 to 3. Default value: 2. A higher strength indicates better robustness but lower visual quality.

"2"

Reserved

string

No

The reserved parameter used to pass extended parameters such as subkeys. Example: subkey:xxx. A subkey is used to isolate different customers under the same primary key and cannot contain commas.

""

SourceType

string

No

The optional content source type used for C2PA tracing. The current version does not support writing to the DigiCert manifest.

digitalCapture

SoftwareAgent

string

No

The optional name of the software that generated the content, used for C2PA tracing. The current version does not support writing to the DigiCert manifest.

Adobe Photoshop 25.0

CustomAssertions

string

No

The optional custom C2PA assertions. The value is a JSON array string. You can specify up to 64 assertions, and each assertion cannot exceed 4,096 bytes.

[{"label":"com.xxx.internal","data":{"meta_id":"emp001","generation":{"modelVersion":"2.1","count":3},"tags":["AI-generated","E-commerce"],"enabled":true,"optional":null}}]

TargetBucketName

string

No

The optional name of the user's OSS bucket to which the signing result is written. If this parameter is left empty, the result is written to an internal bucket of the service and returned through SignedFileUrl.

test-bucket

TargetBucketRegion

string

No

The region ID of the user's OSS bucket. This parameter is required when TargetBucketName is not empty. Example: cn-hangzhou.

cn-hangzhou

TargetObjectKey

string

No

The optional full object key of the signed output written to the user's bucket. This parameter must be provided together with TargetBucketName. The value must start with ai-deepsign-signed/ and must be a full object name including the file name extension, not a directory prefix. The server does not append the _signed suffix or a trailing slash.

ai-deepsign-signed/2026/photo.png

AllowOverwrite

boolean

No

Specifies whether to allow overwriting the target object if it already exists. Default value: false. If this parameter is set to false, the creation is rejected when the target object already exists. If this parameter is set to true, existing objects can be overwritten, which supports in-place signing where the target object key can be the same as the source object key.

false

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

A1B2C3D4-E5F6-7890-ABCD-EF1234567890

TaskId

string

The ID of the combined task, which is used for subsequent GetWatermarkSignTaskResult queries.

f47ac10b-58cc-4372-a567-0e02b2c3d479

Success

boolean

Indicates whether the request is successful.

true

Message

string

The details of the backend exception.

poll timeout: no result within 30m0s

HttpStatusCode

string

The HTTP status code. 200 is returned if the request is successful.

200

Code

string

The status code. A value of 200 indicates success.

OK

Examples

Success response

JSON format

{
  "RequestId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
  "TaskId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "Success": true,
  "Message": "poll timeout: no result within 30m0s",
  "HttpStatusCode": "200",
  "Code": "OK"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.