Retrieving

This API endpoint allows you to retrieve a single order. To retrieve an order, you must provide the order_id.

const orderId = "ID_OF_YOUR_ORDER";

const getOrder = async (orderId) => {
    const getOrderResponse = await fetch(
      `https://api.autoenhance.ai/v3/orders/${orderId}`,
      { method: "GET" }
    );

    const { order_id, name, images, status } = await getOrderResponse.json();
}

The response after successfully fetching an order will contain all the details of your order.

Specification

Retrieve Order

Retrieve a specific order.

GEThttps://api.autoenhance.ai//v3/orders/{id}
Path parameters
id*string
Response

Successful response

Body
created_atstring (date-time)

The creation date of the order.

imagesarray of ImageOut (object)
is_mergingboolean

The processing status for the order

is_processingany

The processing status for the order

last_updated_atstring (date-time)

The last updated date of the order.

namestring

The name for the order.

order_idstring

The ID for the order.

statusenum

The status of the order.

waitingprocessingprocessederror
Request
const response = await fetch('https://api.autoenhance.ai//v3/orders/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "created_at": "2024-07-27T08:55:08.460Z",
  "images": [
    {
      "ai_version": "text",
      "brightness_boost": "NONE",
      "brightness_boost_external": "NONE",
      "brightness_boost_internal": "NONE",
      "clarity_level": "NONE",
      "cloud_type": "CLEAR",
      "contrast_boost": "NONE",
      "contrast_boost_external": "NONE",
      "contrast_boost_internal": "NONE",
      "denoise_level": "NONE",
      "downloaded": false,
      "enhance": true,
      "enhance_type": "property",
      "enhanced": false,
      "error": false,
      "image_id": "123e4567-e89b-12d3-a456-426614174000",
      "image_name": "text",
      "image_type": "text",
      "lens_correction": true,
      "order_id": "text",
      "privacy": false,
      "saturation_level": "NONE",
      "scene": "text",
      "sharpen_level": "NONE",
      "sky_replacement": false,
      "status": "waiting",
      "user_id": "text",
      "vertical_correction": false,
      "window_pull": false
    }
  ],
  "is_merging": false,
  "last_updated_at": "2024-07-27T08:55:08.460Z",
  "name": "text",
  "order_id": "text",
  "status": "waiting"
}

Last updated