---
updatedAt: 2026-06-12T12:33:49.000Z
agentTools:
  projectIndex: https://apidocs.neuronsinc.com/llms.txt
---

# Mixed Media Aois Status

# Return the current status of Mixed Media AOIs

<br />

## Request params

| Field      | Type          | Required | Description                                           |
| ---------- | ------------- | -------- | ----------------------------------------------------- |
| `media_id` | string (UUID) | Yes      | Path parameter. Identifier of the mixed media object. |

No request body is required.

## Response `200 OK`

| Field        | Type   | Description                                 |
| ------------ | ------ | ------------------------------------------- |
| `aoi_status` | string | Current AOI detection status for the asset. |

Possible `aoi_status` values:

| Value         | Description                                                          |
| ------------- | -------------------------------------------------------------------- |
| `unspecified` | No AOI detection has been configured or started.                     |
| `specified`   | AOIs have been defined manually but automatic detection has not run. |
| `started`     | AOI detection is in progress.                                        |
| `done`        | AOI detection completed successfully.                                |
| `failed`      | AOI detection failed.                                                |

### Other responses

| Status              | Description                                                                                                                                     |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **400 Bad Request** | The media does not exist for your company, or it is not mixed media. Response body: `{"detail": "Media does not exist or is not mixed media"}`. |

## Example request

```http
GET /predict/v2/mixed-media/036d5cb3-4fb1-4e88-98e6-1854b607d296/aois/status
X-API-Key: {your_api_key}
```

## Example response

```json
{
  "aoi_status": "done"
}
```

## Typical workflow

1. **Start AOI detection** — [Detect Mixed Media AOIs](./detectmixedmediaaois).
2. **Poll AOI status** — `GET /predict/v2/mixed-media/{media_id}/aois/status` (this endpoint) until `aoi_status` is `done` or `failed`.
3. When `aoi_status` is `done`, fetch AOI results from `GET /predict/v2/media/{media_id}` or define custom AOIs via `PUT /predict/v2/mixed-media/{media_id}/aois`.

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Neurons Customers API v2",
    "version": "2.0.0",
    "description": "Neurons Customers API"
  },
  "paths": {
    "/predict/v2/mixed-media/{media_id}/aois/status": {
      "get": {
        "operationId": "mixedMediaAoisStatus",
        "summary": "Mixed Media Aois Status",
        "parameters": [
          {
            "in": "path",
            "name": "media_id",
            "schema": {
              "format": "uuid4",
              "title": "Media Id",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AOIStatusOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Detail"
                }
              }
            }
          }
        },
        "description": "# Return the current status of Mixed Media AOIs",
        "tags": [
          "Mixed Media"
        ],
        "security": [
          {
            "LegacyPredictAPIAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AOIStatus": {
        "enum": [
          "unspecified",
          "specified",
          "started",
          "done",
          "failed"
        ],
        "title": "AOIStatus",
        "type": "string"
      },
      "Detail": {
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "string"
          }
        },
        "required": [
          "detail"
        ],
        "title": "Detail",
        "type": "object"
      },
      "AOIStatusOut": {
        "properties": {
          "aoi_status": {
            "$ref": "#/components/schemas/AOIStatus"
          }
        },
        "required": [
          "aoi_status"
        ],
        "title": "AOIStatusOut",
        "type": "object"
      }
    },
    "securitySchemes": {
      "LegacyPredictAPIAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.neuronsinc.com"
    }
  ]
}
```