Common parameters

Updated at:

This page lists the request parameters and response fields common to all Aidge API calls.

Common request parameters

URL query parameters

Append the following parameters to the request URL for every API call.

Parameter

Type

Required

Description

partner_id

String

Yes

Fixed value: aidge.

sign_method

String

Yes

Fixed value: sha256.

sign_ver

String

Yes

Fixed value: v2.

app_key

String

Yes

The API key name.

timestamp

String

Yes

The current time as a millisecond timestamp.

sign

String

Yes

HMAC-SHA256 signature. For more information, see authentication.

Common request headers

Header

Type

Required

Description

Content-Type

String

Yes

Fixed value: application/json.

x-iop-trial

String

No

Set to true to use the trial quota. Defaults to false.

Common response fields

All API responses contain the following top-level fields:

Field

Type

Description

Code

String

The business response code. A value of "Success" indicates success, while other values are named error codes, such as InvalidParameter or FreeQuotaExhausted. For more information, see error codes.

Message

String

Error description. On success, the value is "ok" or empty.

RequestId

String

The unique request identifier. Provide this identifier when submitting a support ticket.

Success

Boolean

Indicates whether the request was successful. Equivalent to Code == "Success".

Data

Object

API-specific response data. The value is null if the request fails. This field may contain a UsageMap sub-field that records call usage.

Asynchronous task fields

The submission endpoint for all asynchronous APIs—including document translation, video translation, video removal, smart image generation, size chart extraction, and product material optimization Lite / Pro—returns the following task-tracking fields in the Data field of the response:

Field

Type

Description

Data.TaskId

String

The unique task identifier, used to query the task status.

Data.Status

String

The task status. Possible values are QUEUED (queued), IN_PROGRESS (in progress), COMPLETED (completed), and FAILED (failed). Retrieve the status of all asynchronous tasks by polling the unified QueryAsyncTaskResult endpoint. Note: For video translation and video removal (functionality deferred in phase one), the legacy Data.TaskStatus field is used with the values submitted, running, finished, and failed. For more information, see the documentation for those specific services.