---
name: "help_center_upload_image"
area: "helpcenter"
title: "Upload an image"
price: "$0.01"
method: "POST"
url: "https://api.conecto.chat/v1/tools/help_center_upload_image"
mcp_server: "https://api.conecto.chat/mcp/helpcenter"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/helpcenter/help_center_upload_image"
---

# Upload an image (`help_center_upload_image`)

Stores an image for the design or an article and returns the path to use.

Store an image (logo, header or hero background, article cover, picture for an article) and get the path to use in the design or an article. Give a public https `url`, or the file as base64 `data`. PNG, JPEG, GIF, WebP or SVG, up to 5 MB.

Price: $0.01 a call. A call that fails costs nothing.

## Use it when

A logo, header picture, cover or article image is needed.

## Say this to your agent

> Here's a photo of the shop floor. Put it in the help center's header.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `url` | string | no | Up to 2,000 characters. |  |  |
| `data` | string | no |  |  |  |
| `filename` | string | no | Up to 120 characters. |  |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `help_center_upload_image` on the MCP server `https://api.conecto.chat/mcp/helpcenter` with these arguments:

```json
{
  "filename": "shop-floor-header.png",
  "data": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAFUlEQVR42mPUVlFgwAaYGHCAwSkBAFztAH+qHNFaAAAAAElFTkSuQmCC"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/help_center_upload_image \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filename": "shop-floor-header.png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAFUlEQVR42mPUVlFgwAaYGHCAwSkBAFztAH+qHNFaAAAAAElFTkSuQmCC"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "help_center_upload_image",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.01",
  "balance_usd": "$19.75",
  "result": {
    "url": "/api/attachment/1c5f52a5-d26b-4d36-ad4d-f2b1d8aa7dc4/",
    "content_type": "image/png",
    "size": 78
  }
}
```

`result`: url: the stored image's path, to use in the design or an article, with its content_type and size in bytes.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `tool_error` | 422 | Both or neither of url and data were given, the url is not https or could not be fetched, or the file is not a PNG, JPEG, GIF, WebP or SVG of up to 5 MB. | Send exactly one of url or data, with an image in one of those formats. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [help_center_overview](https://conecto.chat/tools/helpcenter/help_center_overview.md): Where the help center lives and what is in it: its address, whether it is public, unpublished changes, collections and recent articles. Free up to 1,000,000 reads a month.
- [help_center_design_guide](https://conecto.chat/tools/helpcenter/help_center_design_guide.md): The whole design language as data: theme fields, section types, templates, fonts, icons, languages, CSS rules and article blocks. Free up to 1,000,000 reads a month.
- [help_center_get_design](https://conecto.chat/tools/helpcenter/help_center_get_design.md): The full design document, the draft or the published one, with the draft revision. Free up to 1,000,000 reads a month.
- [help_center_update_design](https://conecto.chat/tools/helpcenter/help_center_update_design.md): Changes the draft design: theme, whole pages, CSS, words or language; visitors see nothing until it is published. $0.001 a call.
- [help_center_edit_sections](https://conecto.chat/tools/helpcenter/help_center_edit_sections.md): Adds, changes, moves, copies or removes sections on one page of the draft. $0.001 a call.
- [help_center_apply_template](https://conecto.chat/tools/helpcenter/help_center_apply_template.md): Starts the draft design over from a built-in template; the brand, language, words and CSS carry over. $0.001 a call.
- [help_center_preview](https://conecto.chat/tools/helpcenter/help_center_preview.md): A private link to any page of the draft, and the page's HTML if you ask for it. Free up to 1,000,000 reads a month.
- [help_center_publish](https://conecto.chat/tools/helpcenter/help_center_publish.md): Makes the draft design what visitors see; the previous design is kept as a version. $0.01 a call.
- [help_center_set_public](https://conecto.chat/tools/helpcenter/help_center_set_public.md): Opens the published help center to everyone, or closes it again. $5 a month while the help center is public, $0.001 to close it ($5.00 a month while public), up to $5.00.
- [help_center_list_collections](https://conecto.chat/tools/helpcenter/help_center_list_collections.md): Every collection with its id, icon, description and article count. Free up to 1,000,000 reads a month.
- [help_center_save_collection](https://conecto.chat/tools/helpcenter/help_center_save_collection.md): Creates a collection, or changes one: name, description, icon and order. $0.01 a call.
- [help_center_delete_collection](https://conecto.chat/tools/helpcenter/help_center_delete_collection.md): Deletes a collection; its articles stay and move to General. $0.001 a call.
- [help_center_list_articles](https://conecto.chat/tools/helpcenter/help_center_list_articles.md): Articles, newest change first, matching words, in one collection, or only published or drafts. Free up to 1,000,000 reads a month.
- [help_center_get_article](https://conecto.chat/tools/helpcenter/help_center_get_article.md): One article with its HTML content and recent revisions, by id or slug. Free up to 1,000,000 reads a month.
- [help_center_save_article](https://conecto.chat/tools/helpcenter/help_center_save_article.md): Creates an article or changes one, written in Markdown or HTML; it stays a draft until published. $0.01 a call.
- [help_center_delete_article](https://conecto.chat/tools/helpcenter/help_center_delete_article.md): Deletes an article for good, with its revisions. $0.001 a call.
- [help_center_gaps](https://conecto.chat/tools/helpcenter/help_center_gaps.md): What visitors could not find: searches with no results, and chat questions that ended with a handoff to the team. Free up to 1,000,000 reads a month.
- [help_center_suggestions](https://conecto.chat/tools/helpcenter/help_center_suggestions.md): New articles and edits the help center proposes from the team's own answers, waiting for a decision. Free up to 1,000,000 reads a month.
- [help_center_review_suggestion](https://conecto.chat/tools/helpcenter/help_center_review_suggestion.md): Publishes a suggested article or edit, keeps it as a draft, or dismisses it. $0.001 a call.
