Skip to Content
InstaHost

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.

HostServes
https://instahost.devThis website, the /v1 API and /openapi.json. JSON only; no cookies, no CORS headers.
https://files.instahost.cloudShared files: https://files.instahost.cloud/<id>/<file name>.
https://<id>.instahost.cloud/Published sites. Sites are served in subdomain mode: in subdomain mode each site has its own host, https://<id>.<sites domain>/; in path mode all sites share one host, under /<id>/.

An upload goes straight to storage: the API returns a presigned PUT 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 3600

The 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 base: "./"); see Content serving.