Orders
Lists the orders for the current user with optional search and sorting.
Query Parameters:
q: Free-text search term applied to order name
sort: Sorting key (name, -name, date, -date). Defaults to -date (most recent first)
offset: Pagination offset token
per_page: Number of items per page
The offset token used to indicate which page of results to use.
0The amount of items to be loaded per page of results. The final response may have a smaller number than requested if too large.
5Free-text search term applied to order name. If omitted or empty, no search filter is applied.
nullSorting key with optional '-' prefix for descending order. Allowed values: 'name' (sort by name ascending), '-name' (sort by name descending), 'date' (sort by created_at ascending), '-date' (sort by created_at descending). If omitted or invalid, defaults to '-date' (most recent first).
-dateSuccessful response
Authentication error
Validation error
GET /v3/orders/ HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
{
"orders": [
{
"created_at": "2026-01-01T00:00:00.000Z",
"default_image_sort_order": "name",
"images": [
{
"ai_version": "text",
"cloud_type": "CLEAR",
"date_added": 1,
"downloaded": true,
"enhance": true,
"finetune_settings": {},
"image_id": "123e4567-e89b-12d3-a456-426614174000",
"image_name": "text",
"lens_correction": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"order_id": null,
"parent_image_id": "text",
"perspective_correction": true,
"perspective_correction_mode": "OFF",
"preset_id": null,
"preset_version": null,
"privacy": true,
"rating": 1,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"scene": "text",
"sky_replacement": true,
"status": null,
"status_reason": null,
"tripod_hide": true,
"upscale": true,
"user_id": null,
"window_pull_type": "NONE"
}
],
"is_deleted": true,
"is_merging": true,
"is_processing": true,
"last_updated_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"order_id": "text",
"status": null,
"total_images": 1
}
],
"pagination": {
"next_offset": "text",
"per_page": 5
}
}Default sort order for images in the order. Prefix with '-' for descending order.
The name for the order.
The ID for the order.
Successful response
Authentication error
Validation error
POST /v3/orders/ HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"default_image_sort_order": "name",
"name": "text",
"order_id": "text"
}No content
Retrieve a specific order. Images can be sorted using the sort_images_by parameter.
Specifies sort order for images in the order
Successful response
The creation date of the order.
Default sort order for images in the order.
The status of the order.
The processing status for the order
The processing status for the order
The last updated date of the order.
The name for the order.
The ID for the order.
The status of the order.
Number of images in the order.
Not found
Validation error
GET /v3/orders/{id} HTTP/1.1
Host: api:8080
Accept: */*
{
"created_at": "2026-01-01T00:00:00.000Z",
"default_image_sort_order": "name",
"images": [
{
"ai_version": "text",
"cloud_type": "CLEAR",
"date_added": 1,
"downloaded": true,
"enhance": true,
"finetune_settings": {},
"image_id": "123e4567-e89b-12d3-a456-426614174000",
"image_name": "text",
"lens_correction": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"order_id": null,
"parent_image_id": "text",
"perspective_correction": true,
"perspective_correction_mode": "OFF",
"preset_id": null,
"preset_version": null,
"privacy": true,
"rating": 1,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"scene": "text",
"sky_replacement": true,
"status": null,
"status_reason": null,
"tripod_hide": true,
"upscale": true,
"user_id": null,
"window_pull_type": "NONE"
}
],
"is_deleted": true,
"is_merging": true,
"is_processing": true,
"last_updated_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"order_id": "text",
"status": null,
"total_images": 1
}Deletes the specific order.
No Content
No content
Authentication error
Not found
DELETE /v3/orders/{id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
No content
Updates the details for the specific order. Images can be sorted using the sort_images_by parameter.
Specifies sort order for images in the order
Default sort order for images in the order. Prefix with '-' for descending order.
The name for the order.
The ID for the order.
Successful response
The creation date of the order.
Default sort order for images in the order.
The status of the order.
The processing status for the order
The processing status for the order
The last updated date of the order.
The name for the order.
The ID for the order.
The status of the order.
Number of images in the order.
Authentication error
Not found
Validation error
PATCH /v3/orders/{id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"default_image_sort_order": "name",
"name": "text",
"order_id": "text"
}{
"created_at": "2026-01-01T00:00:00.000Z",
"default_image_sort_order": "name",
"images": [
{
"ai_version": "text",
"cloud_type": "CLEAR",
"date_added": 1,
"downloaded": true,
"enhance": true,
"finetune_settings": {},
"image_id": "123e4567-e89b-12d3-a456-426614174000",
"image_name": "text",
"lens_correction": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"order_id": null,
"parent_image_id": "text",
"perspective_correction": true,
"perspective_correction_mode": "OFF",
"preset_id": null,
"preset_version": null,
"privacy": true,
"rating": 1,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"scene": "text",
"sky_replacement": true,
"status": null,
"status_reason": null,
"tripod_hide": true,
"upscale": true,
"user_id": null,
"window_pull_type": "NONE"
}
],
"is_deleted": true,
"is_merging": true,
"is_processing": true,
"last_updated_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"order_id": "text",
"status": null,
"total_images": 1
}Reorders images within an order. This endpoint allows you to set custom sort order for images using fractional indexing, which minimizes database updates.
If sort_images_by is provided in the query data, the images will first be sorted by that field, and then the custom reordering will be applied on top.
We use fractional indexing to handle the reordering, https://www.figma.com/blog/realtime-editing-of-ordered-sequences/
Specifies sort order for images in the order
Successful response
The list of images for the order.
Authentication error
Not found
Conflict
Validation error
PATCH /v3/orders/{id}/images HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"images": [
{
"id": "image-id-1",
"index": 0
},
{
"id": "image-id-2",
"index": 1
}
]
}{
"images": null
}Triggers the grouping of any brackets contained in the order and process the final images in the order.
TODO: Ideally we use transactions to help deal with errors but it;s a pain with MongoEngine so need to do it as part of Django or other ORM
The version of the AI model to use for enhancing the image. Versions ending in an .x will use the latest minor version as soon as it's published.
The type of clouds in the new sky to replace the original sky with. Options include: CLEAR, LOW_CLOUD, HIGH_CLOUD
Whether to enhance the image.
trueCorrect any lens distortion in the image.
trueIf provided then group into an image after every specified number of brackets, if not provided or set to 0 then we automatically group based on visual analysis.
Enable perspective correction to straighten vertical and horizontal lines in the image.
trueControls how aggressively perspective correction is applied when enabled. Only used when perspective_correction is true. 'PRESERVE_CONTENT' prioritizes keeping original image contents intact with strict guardrails. 'PRIORITIZE_PERSPECTIVE' relaxes guardrails to enforce straight lines, accepting heavy cropping. If omitted, or explicitly sent as null, when perspective_correction is true, the AI uses its default behavior.
Whether to blur any faces or license plates in the image.
Restage options for in-painting or modifying scene elements. Allows correcting details like lighting a fireplace, removing fingerprints from a TV screen, or removing unwanted items like tripods.
Enable the replacement of the original sky for a summer sky.
Whether to crop the bottom of 360-degree images to hide the tripod. Note: This performs a simple crop and does not use generative in-painting.
Whether to upscale the image.
What type of window pull to apply to the image (Available since AI version >= 4.0, WITH_SKIES can only be used from AI version 5.2 or higher).
Successful response
The creation date of the order.
Default sort order for images in the order.
The status of the order.
The processing status for the order
The processing status for the order
The last updated date of the order.
The name for the order.
The ID for the order.
The status of the order.
Number of images in the order.
Authentication error
Not found
Validation error
POST /v3/orders/{id}/process HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 473
{
"ai_version": "text",
"cloud_type": "CLEAR",
"enhance": true,
"finetune_settings": {},
"images": [
{
"bracket_ids": [
"text"
]
}
],
"lens_correction": true,
"number_of_brackets_per_image": 1,
"perspective_correction": true,
"perspective_correction_mode": "OFF",
"preset_id": "text",
"privacy": true,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"sky_replacement": true,
"tripod_hide": true,
"upscale": true,
"window_pull_type": "NONE"
}{
"created_at": "2026-01-01T00:00:00.000Z",
"default_image_sort_order": "name",
"images": [
{
"ai_version": "text",
"cloud_type": "CLEAR",
"date_added": 1,
"downloaded": true,
"enhance": true,
"finetune_settings": {},
"image_id": "123e4567-e89b-12d3-a456-426614174000",
"image_name": "text",
"lens_correction": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"order_id": null,
"parent_image_id": "text",
"perspective_correction": true,
"perspective_correction_mode": "OFF",
"preset_id": null,
"preset_version": null,
"privacy": true,
"rating": 1,
"restage": {
"fire_in_fireplaces": "AS_SHOT",
"grass": "AS_SHOT",
"photographer": "AS_SHOT",
"sky": "AS_SHOT",
"tvs": "AS_SHOT"
},
"scene": "text",
"sky_replacement": true,
"status": null,
"status_reason": null,
"tripod_hide": true,
"upscale": true,
"user_id": null,
"window_pull_type": "NONE"
}
],
"is_deleted": true,
"is_merging": true,
"is_processing": true,
"last_updated_at": "2026-01-01T00:00:00.000Z",
"name": "text",
"order_id": "text",
"status": null,
"total_images": 1
}Generates a zip archive of an order's images. Use the original, enhanced and restaged flags to choose which variants of each image to include — any combination is allowed. When no flag is set the archive contains the final restaged deliverable, preserving the behaviour of the legacy POST /orders//enhanced endpoint that aliases to this one.
Generation is asynchronous: the first call returns 202 while the archive is built, and subsequent calls 302-redirect to the finished zip.
DPI of the image, must at least be 72.
Include the enhanced (non-restaged) image in the archive.
falseWhether to apply finetuning to the image. Deprecated: use 'finetuned' instead.
nullWhether to apply finetuning to the image.
nullFormat of the image, must be one of 'avif', 'png', 'jpeg', 'jxl', or 'webp'.
IDs of the images to retrieve.
["image-id-1","image-id-2"]Naming convention for images in the export. 'image_name' uses the original image name, 'order_name' uses the order name with a numeric prefix for sortability.
Maximum width of the image in pixels. Must be a positive integer.
Include the original uploaded image in the archive.
falseWhether to show a lower quality preview version.
Quality of the image, must be between 1 and 90.
Include the final restaged-if-available image in the archive.
falseScale factor for the image, must be between 0.0 and 1.0.
Sort images by field name. Prefix with '-' for descending order.
Whether to overlay an AI disclosure label on the image.
falseWhether to apply a watermark to the image.
Successful response
Authentication error
Not found
Validation error
POST /v3/orders/{order_id}/archive HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 301
{
"dpi": 1,
"enhanced": false,
"finetune": true,
"finetuned": true,
"format": "avif",
"image_ids": [
"image-id-1",
"image-id-2"
],
"image_name_option": "image_name",
"max_width": 1,
"original": false,
"preview": true,
"quality": 1,
"restaged": false,
"scale": 1,
"sort_images_by": "name",
"visible_disclosure": false,
"watermark": true
}binaryRetrieves the brackets for a specific order by its unique identifier. If the order is not found, a 404 error is raised.
Args: order_id (str): The unique identifier of the order to retrieve brackets for.
Returns: Order: The retrieved order object containing brackets.
Raises: HTTPException: If the order is not found, a 404 error is raised.
Successful response
Not found
GET /v3/orders/{order_id}/brackets HTTP/1.1
Host: api:8080
Accept: */*
{
"brackets": [
{
"bracket_id": "text",
"image_id": null,
"is_uploaded": true,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"order_id": null
}
]
}Last updated
Was this helpful?