Skip to main content
The main function of the Artistic QR Tasks API is to query the execution status of a task by inputting the task ID generated by the Artistic QR Generation API. This document will provide detailed integration instructions for the Artistic QR Tasks API, helping you easily integrate and fully utilize the powerful features of this API. With the Artistic QR Tasks API, you can easily query the execution status of tasks from the Artistic QR Generation API.

Application Process

To use Artistic QR Generation API, first open the Ace Data Cloud Console and copy your API Token. If you are not logged in, you will be redirected to sign in and brought back to this page automatically. A single API Token works across every service on the platform — no need to subscribe per service. New accounts receive free starter credit; when it runs low you can top up your shared balance in the console.
📘 Full documentation: Artistic QR Generation API →

Request Example

The Artistic QR Tasks API can be used to query the results of an API from the Artistic QR Generation API. For information on how to use the Artistic QR Generation API, please refer to the document Artistic QR Generation API. We will take an example of a task ID returned by the Artistic QR Generation API to demonstrate how to use this API. Suppose we have a task ID: e2c65b20-a970-431e-99c1-76721e799df8, and we will demonstrate how to pass in a task ID.

Task Example Image

Setting Request Headers and Request Body

Request Headers include:
  • accept: Specifies that the response should be in JSON format, set to application/json.
  • authorization: The key to call the API, which can be selected directly after application.
Request Body includes:
  • id: The uploaded task ID.
  • action: The operation method for the task.
Set as shown in the image below:

Code Example

You can see that various language codes have been automatically generated on the right side of the page, as shown in the image below:

Some code examples are as follows:

CURL

Python

Response Example

Upon successful request, the API will return the detailed information of the QR code task here. For example:
The returned result contains multiple fields, with the request field being the request body when the task was initiated, while the response field is the response body returned after the task is completed, consistent with the requests and returns of the Artistic QR Generation API. The field descriptions are as follows.
  • id: The ID of the QR code task generated, used to uniquely identify this QR code generation task.
  • request: The request information in the QR code task.
  • response: The return information in the QR code task.

Batch Query Operation

This is for querying the details of multiple QR code task IDs, and unlike the above, the action needs to be selected as retrieve_batch. Request Body includes:
  • ids: The array of uploaded task IDs.
  • action: The operation method for the task.
Set as shown in the image below:

Code Example

You can see that various language codes have been automatically generated on the right side of the page, as shown in the image below:

Some code examples are as follows:

Response Example

Upon successful request, the API will return the specific details of all batch QR code tasks. For example:

CURL

Python

Error Handling

When calling the API, if an error occurs, the API will return the corresponding error code and message. For example:
  • 400 token_mismatched: Bad request, possibly due to missing or invalid parameters.
  • 400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.
  • 401 invalid_token: Unauthorized, invalid or missing authorization token.
  • 429 too_many_requests: Too many requests, you have exceeded the rate limit.
  • 500 api_error: Internal server error, something went wrong on the server.

Error Response Example

Conclusion

Through this document, you have learned how to use the Artistic QR Tasks API to query all specific detail information of single or batch QR code tasks. We hope this document can help you better integrate and use the API. If you have any questions, please feel free to contact our technical support team.