HistoryShowcaseDocumentationOpen your sites

Photos and videos

Search list_media first. It accepts q (a case-insensitive filename match), offset and limit (default 25, maximum 100) and returns { revision, total, nextOffset, assets }. Each asset has its id, name, type (image, video or resource), mimeType, bytes, sha256, url, status and createdAt. Use an existing asset ID when the intended file is already present.

Uploading needs the content scope and a role that can edit the site.

Upload through MCP or JSON API

upload_media takes revision, name (up to 200 characters), mimeType and base64. Send raw, padded base64 without a data-URL prefix. The decoded file must be between 12 bytes and 2 MiB; larger files return 413 too-large.

Files sent through the API are stored as received, camera details included: EXIF (with any GPS location) and XMP stay with the photo for the school's media library, as they do for uploads in the visual editor. On a live site visitors can open that stored file, for example by zooming, so remove the location from any photo whose location should stay private before you send it.

Format mimeType
JPG image/jpeg
PNG image/png
GIF image/gif
WebP image/webp
MP4 video/mp4
WebM video/webm

The service checks the file's signature. mimeType must match the actual bytes; renaming a file or changing its label does not convert it and returns file-type.

The response contains assetId, revision and reused. A new upload advances the draft revision by one. If identical bytes are already in this site, the existing asset is returned with reused: true and the revision does not change. If the response is lost, resend the same bytes; do not make a new copy just to obtain a response.

Multipart API for larger files

Files up to 3 MiB can use multipart upload:

curl --fail-with-body https://api.history-showcase.com/api/platform/agent/v1/media \
  -H "Authorization: Bearer $HISTORYSHOWCASE_TOKEN" \
  -F 'revision=REVISION_FROM_CONTEXT' \
  -F 'file=@school-photo.jpg;type=image/jpeg'

Give the file part its real content type, or none. The response is { revision, assetId, reused: false }. Multipart uploads always store a new asset, even for bytes already in the library, and use revision protection. If the response is lost, check list_media for the file before resending with the current revision.

A file over 3 MiB returns 400 file-size. A request body over 4 MiB returns 413 too-large.

Attach or use a photo

Use media in a content change (an item { "asset": "<asset ID>" } per file, in visitor order), or a supported image field such as primaryLogo, backgroundImage or headshot in a design change. Use an asset ID from this site's library. An ID that is not one of this site's images returns asset-reference, and external image URLs are rejected.

Upload before making a batch that references the asset, then use the upload's returned revision. Uploads are separate operations: a failed content batch does not delete an uploaded asset.

Limits and recovery

Site Limit
Owned site 3,000 uploaded assets
Unclaimed guest site 100 assets and 60 MiB of media in total (guest-capacity)

SVG, HTML and executable formats are not accepted. Large archival video ingestion is a separate operator workflow, not an agent capability. Resize or compress files locally when they exceed the upload limit. Do not claim a file is attached until you have verified its ID in the saved entry or design.