# Upload Article Image

POST /api/v2/projects/{projectId}/knowledge/articles/images

Uploads a screenshot for a Help Center article, using the same project image upload as pasting an image into the article editor. Send base64 image bytes, a content type, and an optional file name. Optionally set pathPrefix to the article slug so the file is stored with that article's other screenshots. Returns a public https://storage.saasco.com URL to embed in the article body when creating or updating the article. An existing storage URL can be embedded directly and does not need to be uploaded again.

## Request

- projectId: string, path, required — ID of the project that will own the screenshot.
- contentType: string, required — Image MIME type, for example image/png or image/svg+xml.
- dataBase64: string, required — Base64-encoded image bytes. A data: URL is also accepted.
- fileName: string — File name including the extension, for example step-1.png. Omit to derive one from the content type.
- pathPrefix: string — Article slug the editor groups pasted images under, for example how-to-install-the-sdk. Letters, numbers, hyphens, and underscores, up to 80 characters.

## Response

- 200: Successful response
  - fileUrl: string, required — Public https://storage.saasco.com URL. Embed it in the article body as an image.
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
