Signs an image with a basic C2PA signature by using a platform-owned certificate, supports content integrity verification, and returns the download URL of the signed image.
Operation description
Signature types
Basic signature: Signs with a platform-owned certificate and supports content integrity verification.
Trusted signature: In addition to integrity verification, the signing certificate chain can be verified through the C2PA official trust list.
This operation provides basic signing. For trusted signing, call CreateC2paSignTask to create a task and call GetC2paSignResult to query the result.
Request description
ImageUrlis required and must be a publicly accessible HTTP/HTTPS URL.External image URLs are not currently supported. Only image URLs that are publicly accessible within the Chinese mainland are supported. Upload the image to an Alibaba Cloud OSS bucket in a region within the Chinese mainland first, and then use the pre-signed URL of the image as the input parameter of this operation. References: How to obtain the URL of a single file or the URLs of multiple files.
Supported image formats: JPEG and PNG. Unsupported formats return the C2PA_FORMAT_UNSUPPORTED fault.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aideepsign:SignUserImage |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotency of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| ImageUrl |
string |
No |
The URL of the image to be signed. HTTP/HTTPS URLs are supported. Specify either |
https://example.com/photo.jpg |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| SignTime |
string |
The signing time in ISO 8601 format, such as |
2026-06-18T10:30:00Z |
| RequestId |
string |
The request ID. |
A1B2C3D4-E5F6-7890-ABCD-EF1234567890 |
| SignedImageUrl |
string |
The pre-signed download URL of the signed image. |
https://bucket.oss-cn-hangzhou.aliyuncs.com/deepsign/123456789/signed/abc12345.png?Expires=1718700000&OSSAccessKeyId=... |
| CertificateSubject |
string |
The subject information of the signing certificate. |
CN=AIDeepSign User Certificate,O=Alibaba Cloud |
| ObjectKey |
string |
The ObjectKey of the signed image in OSS. You can use this value for subsequent API calls. |
deepsign/123456789/signed/abc12345-def6-7890-abcd-ef1234567890.png |
| Algorithm |
string |
The algorithm used for signing, such as ps256 or es256. |
ps256 |
| Success |
boolean |
Indicates whether the request is successful. |
|
| Message |
string |
The additional information. "success" is returned if the request is successful. |
success |
| HttpStatusCode |
integer |
The HTTP status code. 200 is returned if the request is successful. |
200 |
| Code |
string |
The business error code. "OK" is returned if the request is successful. |
OK |
Examples
Success response
JSON format
{
"SignTime": "2026-06-18T10:30:00Z",
"RequestId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"SignedImageUrl": "https://bucket.oss-cn-hangzhou.aliyuncs.com/deepsign/123456789/signed/abc12345.png?Expires=1718700000&OSSAccessKeyId=...",
"CertificateSubject": "CN=AIDeepSign User Certificate,O=Alibaba Cloud",
"ObjectKey": "deepsign/123456789/signed/abc12345-def6-7890-abcd-ef1234567890.png",
"Algorithm": "ps256",
"Success": false,
"Message": "success",
"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.