Articles can include images hosted by Help.Center. Upload the file first, then reference the returned URL in your article HTML.
Upload an image
POST /v0/centers/:centerId/articles/images
POST /v0/centers/:centerId/articles/:articleId/images
Both endpoints behave the same — the article-specific variant is optional. Requires the content.write scope.
Send the file as multipart/form-data with the field name image:
curl -s -X POST \
-H "Authorization: Bearer $HC_API_KEY" \
-F "image=@/path/to/screenshot.png" \
"https://api.help.center/v0/centers/$HC_CENTER_ID/articles/images"
Constraints
- Maximum file size: 10 MB
- Supported formats: JPEG, PNG, GIF, WebP, SVG
- The multipart field name must be
image
Response
{
"success": true,
"data": {
"url": "https://cdn.help.center/images/...",
"filename": "screenshot.png",
"size": 1024576
}
}
Use the image in an article
Reference the returned url in your draft HTML, then update the draft:
<img src="https://cdn.help.center/images/..." alt="The settings page with the API tab open">
Tip
Always set a descriptive
altattribute. It improves accessibility and gives the AI more context when it reads your articles to answer customers.