> For the complete documentation index, see [llms.txt](https://docs.autoenhance.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autoenhance.ai/api/brackets.md). Agents can also search and read this documentation through its [MCP server](https://docs.autoenhance.ai/~gitbook/mcp).

# Brackets

A bracket is one exposure of an HDR shot. Process the order to group brackets and merge them into images. See [grouping brackets](https://docs.autoenhance.ai/orders/grouping-brackets).

## Create a bracket

> Registers a bracket (one exposure of an HDR shot) on an order and returns an upload URL for the file.\
> \
> If no order with the given \`order\_id\` exists yet, it is created. If the order already has a bracket with\
> the same \`name\`, the new bracket is renamed with a \`.copy-\<number>\` suffix so names stay unique within the order.\
> \
> Once the bracket file is uploaded, call \[Process an order]\(<https://docs.autoenhance.ai/orders/grouping-brackets)\\>
> to group the brackets and merge them into images.

```json
{"openapi":"3.0.3","info":{"title":"Autoenhance API","version":"2026-11-09"},"tags":[{"description":"A bracket is one exposure of an HDR shot. Process the order to group brackets and merge them into images. See [grouping brackets](https://docs.autoenhance.ai/orders/grouping-brackets).","name":"Brackets"}],"servers":[{"url":"https://api.autoenhance.ai"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"BracketIn":{"properties":{"metadata":{"additionalProperties":{},"description":"Metadata for the bracket.","type":"object"},"name":{"pattern":"^[^/]+$","type":"string"},"order_id":{"minLength":1,"type":"string"}},"required":["name","order_id"],"type":"object"},"BracketCreatedOut":{"additionalProperties":false,"properties":{"bracket_id":{"type":"string"},"image_id":{"readOnly":true},"is_excluded":{"readOnly":true,"type":"boolean"},"is_uploaded":{"type":"boolean"},"metadata":{"additionalProperties":{},"description":"Metadata for the bracket.","type":"object"},"name":{"type":"string"},"order_id":{"readOnly":true},"upload_url":{"readOnly":true}},"type":"object"},"HTTPError":{"properties":{"detail":{"type":"object"},"message":{"type":"string"}},"type":"object"},"ValidationError":{"properties":{"detail":{"properties":{"<location>":{"properties":{"<field_name>":{"items":{"type":"string"},"type":"array"}},"type":"object"}},"type":"object"},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v3/brackets/":{"post":{"description":"Registers a bracket (one exposure of an HDR shot) on an order and returns an upload URL for the file.\n\nIf no order with the given `order_id` exists yet, it is created. If the order already has a bracket with\nthe same `name`, the new bracket is renamed with a `.copy-<number>` suffix so names stay unique within the order.\n\nOnce the bracket file is uploaded, call [Process an order](https://docs.autoenhance.ai/orders/grouping-brackets)\nto group the brackets and merge them into images.","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BracketIn"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BracketCreatedOut"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPError"}}},"description":"Authentication error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}},"description":"Validation error"}},"summary":"Create a bracket","tags":["Brackets"]}}}}
```

## Retrieve a bracket

> Retrieves a bracket by its ID, including whether its file has finished uploading.\
> \
> Returns \`404\` if the bracket does not exist or belongs to another account.

```json
{"openapi":"3.0.3","info":{"title":"Autoenhance API","version":"2026-11-09"},"tags":[{"description":"A bracket is one exposure of an HDR shot. Process the order to group brackets and merge them into images. See [grouping brackets](https://docs.autoenhance.ai/orders/grouping-brackets).","name":"Brackets"}],"servers":[{"url":"https://api.autoenhance.ai"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"BracketOut":{"additionalProperties":false,"properties":{"bracket_id":{"type":"string"},"image_id":{"readOnly":true},"is_excluded":{"readOnly":true,"type":"boolean"},"is_uploaded":{"type":"boolean"},"metadata":{"additionalProperties":{},"description":"Metadata for the bracket.","type":"object"},"name":{"type":"string"},"order_id":{"readOnly":true}},"type":"object"},"HTTPError":{"properties":{"detail":{"type":"object"},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v3/brackets/{bracket_id}":{"get":{"description":"Retrieves a bracket by its ID, including whether its file has finished uploading.\n\nReturns `404` if the bracket does not exist or belongs to another account.","parameters":[{"in":"path","name":"bracket_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BracketOut"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPError"}}},"description":"Authentication error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPError"}}},"description":"Not found"}},"summary":"Retrieve a bracket","tags":["Brackets"]}}}}
```

## Delete a bracket

> Deletes a bracket that has not been uploaded yet.\
> \
> Returns \`400\` if the bracket's file has already been uploaded, and \`404\` if the bracket does not exist.

```json
{"openapi":"3.0.3","info":{"title":"Autoenhance API","version":"2026-11-09"},"tags":[{"description":"A bracket is one exposure of an HDR shot. Process the order to group brackets and merge them into images. See [grouping brackets](https://docs.autoenhance.ai/orders/grouping-brackets).","name":"Brackets"}],"servers":[{"url":"https://api.autoenhance.ai"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"HTTPError":{"properties":{"detail":{"type":"object"},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v3/brackets/{bracket_id}":{"delete":{"description":"Deletes a bracket that has not been uploaded yet.\n\nReturns `400` if the bracket's file has already been uploaded, and `404` if the bracket does not exist.","parameters":[{"in":"path","name":"bracket_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPError"}}},"description":"Authentication error"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPError"}}},"description":"Not found"}},"summary":"Delete a bracket","tags":["Brackets"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.autoenhance.ai/api/brackets.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
