---
title: "Test Image Host Upload"
method: POST
path: "/api/user_settings/image_host/test"
tags: ["image_host"]
---

# Test Image Host Upload

`POST /api/user_settings/image_host/test`

Performs a real upload using the saved config. Used by the Keys
page's "Test upload" button. inline=true uploads a 1×1 transparent
PNG so the user can confirm the round-trip without picking a file.

## Query parameters

- `authorization` unknown

## Request body

- ImageHostTestIn — Test-upload payload. `inline=true` means use the bundled 1×1 PNG; otherwise content_b64 is the uploader's payload (raw bytes b64'd). Used by the Keys page's "Test upload" button.
  - `inline` boolean
  - `content_b64` string, nullable
  - `filename` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
