Getting started
Share a file or publish a site. Get an HTTPS link in seconds.
Overview and hosts
The service has three hosts with separate roles. Uploaded content is never served from the API host, and the content hosts hold no credentials.
| Host | Serves |
|---|---|
| This website, the API and . JSON only; no cookies, no CORS headers. |
| Shared files: . |
| Published sites. Sites are served in ; in path mode all sites share one host, under . |
An upload goes straight to storage: the API returns a presigned URL per file, and the bytes never pass through the API.
Quick start
HTTP: curl and jq
Run this in an empty directory with bash, curl and jq. Each command prints the URL and the delete token; keep the token private.
curl -fsSO 'https://instahost.dev/examples/share.sh'
curl -fsSO 'https://instahost.dev/examples/publish.sh'
echo 'Hello from InstaHost' > hello.txt
mkdir -p hello-site && echo 'Hello from InstaHost' > hello-site/index.html
INSTAHOST_API_URL='https://instahost.dev' bash share.sh hello.txt 3600
INSTAHOST_API_URL='https://instahost.dev' bash publish.sh hello-site 3600The scripts create an artifact, PUT each file to its presigned URL, and complete publication. See the HTTP examples.
The CLI quick start is available to repository collaborators. Everyone can use the HTTP examples above.
For sites, use relative asset URLs (for example Vite ); see Content serving.