Creates a C2PA trusted signing task for a single JPEG, PNG, or MP4 file. In addition to integrity verification, the signing certificate chain can be validated against the C2PA official trust list.
Operation description
Signing types
Basic signing: Signs content with a platform-owned certificate and supports content integrity verification.
Trusted signing: In addition to integrity verification, the signing certificate chain can be validated against the C2PA official trust list.
This operation provides trusted signing. To perform basic signing on an image, call SignUserImage.
Request description
This operation adds a C2PA trusted signature to a specified single JPEG/JPG, PNG, or MP4 file and generates Content Credentials.
A successful creation only indicates that the request has been accepted, not that the file has been signed. Save the returned
TaskIdand callGetC2paSignResultto query the final result.FileUrlmust be an absolute HTTP or HTTPS address accessible by the service and must not contain a URL user info component.Query parameters in the URL do not affect file name recognition. For example,
https://example.com/media/demo.mp4?token=xxxis recognized asdemo.mp4.The service does not follow HTTP 3xx redirects. The source address must directly return an HTTP 200 status code.
The maximum file size is 800 MiB. The actual limit is based on the number of bytes read, not the
Content-Lengthin the response header.The actual signable range for JPEG, PNG, and MP4 files depends on the backend configuration. Currently, files up to 800 MiB are supported.
Business parameters are passed through URL query parameters. POP supports both GET and POST methods, but the generated Go client uses the GET method.
After a task is successfully created, the file download, staging, or signing process may still fail asynchronously. Retrieve detailed error information by calling
GetC2paSignResult.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aideepsign:CreateC2paSignTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileUrl |
string |
Yes |
The absolute HTTP or HTTPS address of the JPEG or PNG file to be signed. The address can be up to 4,096 characters in length. |
https://example.com/images/photo.png?token=xxx |
| SourceType |
string |
No |
Not supported in the current version. |
trainedAlgorithmicMedia |
| SoftwareAgent |
string |
No |
Not supported in the current version. |
Alibaba Cloud Qwen ImageGen |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The task creation result. |
||
| RequestId |
string |
The request ID of this API call. |
A1B2C3D4-E5F6-7890-ABCD-EF1234567890 |
| TaskId |
string |
The opaque task ID generated by the service. Use this ID to call GetC2paSignResult. |
7093c29e-f472-4e1e-91c6-a43df7c7382e |
| Success |
boolean |
Indicates whether the API call was successful. |
True |
| Message |
string |
The additional information. The value success is returned if the request was successful. |
success |
| HttpStatusCode |
integer |
The HTTP status code. The value 200 is returned if the request was successful. |
200 |
| Code |
string |
The business error code. The value OK is returned if the request was successful. |
OK |
Examples
Success response
JSON format
{
"RequestId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890",
"TaskId": "7093c29e-f472-4e1e-91c6-a43df7c7382e",
"Success": true,
"Message": "success",
"HttpStatusCode": 200,
"Code": "OK"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.