Skip to main content
Glama

Put It Online

Upload a file

upload_file

Put a file online and get a short public link. Pass text directly, or base64 with encoding="base64" for binary files (images, PDFs, zips). An .html file becomes a web page; a .zip containing index.html becomes a website. Returns the URL and expires_at; anonymous callers also get a manage_token. Status may be "checking"/"publishing" (call get_link before sharing) or "unpublished" (not published). Limit 20 MB inline; use create_upload_session for bigger files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoCustom link name (3-40 letters, digits, dashes); available on plans with custom names.
contentYesFile content: plain text, or base64 when encoding is "base64" (use base64 for any binary file).
encodingNoHow `content` is encoded.text
filenameYesFile name including extension, e.g. "report.pdf" or "index.html". The extension decides how the link renders.
passwordNoVisitors must enter this password to open the link; available on plans with password protection.
mime_typeNoOptional MIME type; used to add a missing file extension.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe public link to share.
kindYeshtml | site | file | bundle | pending
slugYes
titleYes
viewsYesView count; null when the link's account plan has no view counts, or the link has no account.
statusYeschecking = not live yet (poll get_link); live = shareable; unpublished = not published; publishing = will be live soon (poll get_link); in_review = not available right now; removed = removed by moderation (see removed_reason, appeal_url).
permanentYes
appeal_urlNoOnly with status removed: mailto link to appeal to abuse@putit.online.
created_atYes
expires_atYesISO time the link stops working; null for permanent links.
file_countYes
manage_urlNoPrivate page to manage/delete the link. Only returned on creation; keep it secret.
size_bytesYes
checkout_urlNoOnly with status unpublished: the page where the uploader can publish this link.
manage_tokenNoSecret token for get_link/delete_link without an account. Only returned on creation.
removed_reasonNoOnly with status removed: why, in plain words.
status_messageYes
removed_categoryNoOnly with status removed: the moderation category (malware, phishing, explicit, …); null when not disclosed.
password_protectedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.