Skip to content

List assets ​

List the current user’s assets by group, name and preprocessing state.

Basic information ​

ItemValue
MethodPOST
Path/hyperone/xapi/api/ark_asset/{shortId}
AuthenticationAGIOne System API AK/SK + HMAC-SHA256

shortId is the four-digit asset service identifier supplied by the instance administrator, not an asset, group or model ID.

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
ActionYesListAssets
VersionRecommended2024-01-01

Body ​

ParameterTypeRequiredDescription
FilterObjectYesFilter object.
Filter.GroupTypeStringYesAIGC or LivenessFace.
Filter.GroupIdsString[]NoParent group IDs.
Filter.NameStringNoName search.
Filter.StatusesString[]NoActive, Processing, Failed.
NextTokenStringNoOpaque cursor; do not combine with page-number pagination.
MaxResultsIntegerNoCursor page size, 1–100; default 10.
PageNumber / PageSizeIntegerNoUse together: PageNumber starts at 1 and PageSize is 1–100. Do not combine with NextToken or MaxResults.
SortByStringNoCreateTime or UpdateTime. GroupId is also supported.
SortOrderStringNoDesc (default) or Asc.

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
{
  "Filter": {
    "GroupType": "LivenessFace",
    "Statuses": [
      "Active"
    ]
  },
  "MaxResults": 10
}

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
ItemsArrayVisible records from the current upstream page.
NextTokenStringUpstream continuation cursor, when present.
TotalCountIntegerWhen present, AGIOne replaces it with the visible count on this page, not an overall total.
PageNumber / PageSizeIntegerPage information when using page-number pagination.

Example success shape ​

json
{
  "ResponseMetadata": {
    "RequestId": "request-example",
    "Action": "ListAssets",
    "Version": "2024-01-01"
  },
  "Result": {
    "Items": []
  }
}

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.

AGIOne filters each upstream page by local ownership. Empty Items does not necessarily mean the last page: continue when NextToken is present. Do not reuse a cursor across users, asset services or operations.

Error handling and troubleshooting

Reference ​

Upstream field reference: List assets.