Skip to content

Create an Asset ​

Create an asset from an accessible media URL. Preprocessing runs asynchronously; poll status until active before use.

Endpoint Overview ​

POST/hyperone/xapi/api/ark_asset/{shortId}?Action=CreateAsset🔐 System API AK/SK
SpecificationDetails
ProtocolHTTPS (recommended) / HTTP
Service IDshortId is the 4-digit asset service identifier provisioned by your administrator
AuthenticationAGIOne System API AK/SK with Ark-compatible HMAC-SHA256 signing (see Authentication and signing)

Request parameters ​

Headers ​

HeaderRequiredDescription
AuthorizationYesHMAC-SHA256 signature computed with AGIOne AK/SK.
HostYesActual API host, matching the signed host.
X-DateYesUTC time, YYYYMMDDTHHMMSSZ.
X-Content-Sha256Used by the exampleLowercase SHA-256 hex digest of the actual UTF-8 body.
Content-TypeRequired for POSTapplication/json
AcceptRecommendedapplication/json
Accept-LanguageNozh-CN / en-US

If the deployment requires a routing header, use the name and value supplied by its administrator. Attribution headers cannot change the caller’s user, tenant or project.

Query parameters ​

ParameterRequiredValue
ActionYesCreateAsset
VersionRecommended2024-01-01

Body ​

ParameterTypeRequiredDescription
GroupIdStringRequired for this portrait flowOwned, verified portrait group ID.
AssetTypeStringRequired in this exampleImage, Video or Audio.
URLStringRequired in this exampleMedia URL reachable by the upstream service; asset upload does not use Base64 or multipart.
NameStringNoUp to 64 characters, for management and search.

ProjectName can be omitted. If provided, it must be default (case-sensitive). It is the upstream resource project, not an AGIOne business project.

Example body ​

This illustrates the field structure. Replace resource identifiers and URLs with values available to the caller.

json
{
  "GroupId": "group-example",
  "AssetType": "Image",
  "URL": "https://media.example.com/portrait.jpg",
  "Name": "portrait-example"
}

Response parameters ​

Read successful data from Result; use ResponseMetadata.RequestId for tracing. Depend on the documented fields and ignore additional fields. This differs from the Platform API status/result envelope.

FieldTypeDescription
IdStringCreated asset ID; preprocessing may still be pending.

Example success shape ​

json
{
  "ResponseMetadata": {
    "RequestId": "request-example",
    "Action": "CreateAsset",
    "Version": "2024-01-01"
  },
  "Result": {
    "Id": "asset-example"
  }
}

Request Examples ​

json
{
  "GroupId": "<GROUP_ID>",
  "Name": "portrait-sample",
  "AssetType": "Image",
  "URL": "https://media.example.com/portraits/sample.jpg"
}

Signing Helper Reference

Download and documentation for the Python signing helper is available in Authentication and signing helper script.

Access scope and error handling ​

Access follows the System AK/SK owner’s user and tenant. A personal system credential does not grant access to project assets or another user’s assets. Keep the same shortId and user throughout the flow.

Query Status with GetAsset. Use the asset for video generation only when Active; wait while Processing and inspect Error when Failed. Media and model input limits depend on the selected model and upstream asset constraints.

Error handling and troubleshooting

Reference ​

Upstream field reference: Create an asset.