---
search:
  tags:
    - Media
    - POST
seo:
  description: >-
    Confirm a prepared mediaImport upload descriptor with the original JPEG, PNG
    or WebP bytes (at most 3145728 bytes). The byte length and SHA-256 must
    match the…
sidebar:
  label: Confirm a binary image upload
  badge: POST
title: Confirm a binary image upload
type: openapi-operation
---
Confirm a prepared mediaImport upload descriptor with the original JPEG, PNG or WebP bytes (at most 3145728 bytes). The byte length and SHA-256 must match the descriptor. For file references or larger local files, use the documented media tools and SDK multipart workflow.

`POST /api/v1/media/import`

**Request body** (`application/octet-stream`, required)

Request body example:

```json
"string"
```

**Responses**

- `200` — Media result; inspect ok and the asset status.
- `400` — Invalid request. Query parameters are not accepted. Tool validation failures may use a tool error envelope.
- `401` — Missing, invalid or expired bearer credential.
- `403` — The credential lacks required permissions.
- `404` — The machine API or requested tool is unavailable.
- `413` — The request exceeds the byte limit.
- `429` — Rate limit exceeded. The error is retryable.
- `503` — The API or its upstream execution is unavailable.

Response example, 200:

```json
{
  "ok": true,
  "output": "string",
  "toolName": "adAuditQuote"
}
```
