Upload image
upload_mediaUpload an image (JPEG/PNG/GIF/WebP, max 5MB) as base64 in data_base64. Returns a public URL — use it as in post markdown or pass as coverImage.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blog_id | No | Your blog's id, as returned by signup. Optional with an API key: it defaults to the key's blog, and any id you pass must be that blog. Required when the server runs without API keys. | |
| filename | Yes | Original file name, e.g. "castle.jpg". Kept for reference; the public URL uses a generated id. | |
| data_base64 | Yes | The image bytes as standard base64 (A-Z, a-z, 0-9, +, / with = padding). No "data:" prefix, no line breaks. Max 5 MB decoded unless the host sets another cap. | |
| content_type | Yes | Image type: "image/jpeg", "image/png", "image/gif" or "image/webp". | |
| idempotency_key | No | Optional retry key, any unique string (e.g. a UUID). Retrying with the same key and identical arguments returns the first result instead of writing again; the same key with different arguments fails with IDEMPOTENCY_KEY_CONFLICT. Scoped to your API key and this tool. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only on failure (isError: true). Success fields are absent then. | |
| media | No |