putlive

Docs

Give it to your agent

Paste this to an AI agent. It reads the guide below, signs you in with a code sent to your e-mail address, and publishes what you ask for.

Read https://putlive.dev/llms.txt and follow it: it explains how to publish what you made with putlive and give me a link. If you can use skills, install the putlive skill first with `curl -fsSL https://putlive.dev/install.sh | sh`. Publish what I ask as a private link, tell me who can open it, ask me before you make it more public, and never publish anything that looks like a password, a key or someone else's personal data.

Install the skill

An agent that can use skills can install the putlive skill. The installer writes two files into the agent's skills folder, asks before it replaces an old copy, and runs nothing it downloads:

curl -fsSL https://putlive.dev/install.sh | sh

The skill's files are listed at /.well-known/skills/index.json and, in the layout of the draft Agent Skills discovery RFC, at /.well-known/agent-skills/index.json.

Your account, and a page without one

Making an account

An e-mail address is enough. Enter it on the sign-in page, then the code we send to it: if the address has no account yet, one is made then. There is no password. The service makes only a few new accounts a day from one network, and a number of its own for everybody together, so a new account can be refused for a while; the message then says to try again later. An address that already has an account is never refused for that. An account that was made and never used, with no site and no payment, is removed after some time: you get an e-mail first, and signing in keeps it. The terms have the days.

A page without an account

You can publish a page without an account: on the front page choose the files and press Publish, or with the command-line client:

putlive publish ./site --anonymous
  • You get the page's address and a claim link. The page is deleted 24 hours after it was published unless you keep it: open the claim link while you are signed in (or run putlive claim <link> with a key) and the page becomes a site of your account, under its plan. The link works once, and whoever holds it can keep the page, so keep it to yourself.
  • It is small: at most 100 files, 10 MB for one file and 25 MB in all. It has no name of its own, no password and no domain, and it is never updated. A network can start only a few of these pages a day. It takes only the kinds of file a site is made of (pages, styles, scripts, pictures, fonts, sound, video, PDFs and plain data files such as text, JSON and CSV): the first file of another kind is refused, and the message names it; publish such a file from an account.
  • It is checked like a Free page before anybody can open it, and a notice stands in front of it: visitors are told that somebody who did not sign in put it there, and press a button to open it. Nobody is e-mailed about it, a page that is held for a person included. One confirmed report about it switches it off, and the terms say the rest.

Plans and payment

What each plan includes

There are four plans: Free, Domain, Plus and Pro. The pricing page puts them side by side: the number of sites, the stored files, the downloads a month, the largest file, the versions kept, the e-mail list, a name of your own for the address, domains of your own, the mode "public", a page with a player for a video and the bar on your pages. On the Free plan a new version is checked before anybody can open it. On a paid plan it is served as soon as you publish it, and its malware and link checks follow within minutes; a definite finding switches the whole site off. The malware scanner does not read a file larger than 2047 MB.

Pro

Pro costs USD 90 a year or USD 10 a month. It holds 1000 sites, 250 GB of stored files, 1 TB of downloads a month and files of up to 5 GB, and everything the Plus plan includes. It also has a team of up to five people, a log of what they do for the account, and an answer from a person by mail: write to support@putlive.dev and a person answers within 48 hours. See A team and the log of actions. Pro's 250 GB of stored files are possible because the files of a site, but its pages (HTML, SVG, XML and Markdown files), scripts, styles and fonts, are kept by our storage provider, Cloudflare, in the European Union: the privacy policy says which files.

Where to pay

Sign in and open your billing page. Tick the box that says you agree to the terms and the privacy policy and ask for the plan to start now, then press the button of the plan you want. You pay on a page of Stripe's. Your card never reaches putlive.

Payment is taken by Link, a Stripe service, which sells the plan as the merchant of record. It may show and charge the price in your currency, with a conversion fee of its own, adds the tax your country requires and pays it over, and sends you the receipt and the invoice. TECH BUDDIES LTD provides the service. Your card statement shows LINK.COM* and our name.

How to change or cancel

  • Press Manage subscription on your billing page. It opens Stripe's page for your subscription: change the plan, update your card, read your invoices, or cancel.
  • A change to a larger plan, or to a longer interval of the plan you have, starts at once: what is left of the period you paid for is taken off, and the difference is charged then. When more is left than the new price, nothing is charged, and the rest is kept as a credit that pays your next invoices; a change from a plan paid by the year to a larger plan paid by the month can be such a change.
  • A change to a smaller plan, or to a shorter interval of the plan you have, starts at the end of the period you paid for.
  • Once you have added something to your plan (see "Buying more" below), Manage subscription still updates your card, shows your invoices and cancels, but the plan is changed on your billing page itself, under "Change your plan", with the same box as when you buy a plan: Stripe's page cannot make that change.
  • To move from Domain or Plus to Pro, press Manage subscription and choose Pro. Pro is the larger plan, so the move starts at once, from a plan paid by the year too. The terms you accepted at your first purchase cover the change: no new box is ticked.
  • Cancelling takes effect at the end of the period you paid for. A plan renews by itself, and we write to you 7 days before a yearly renewal.

How to ask for a refund

Within 14 days of a first payment or of a renewal, the button "Refund my last payment" on your billing page gives the payment back and ends your plan at once. It works once for an account. For anything else, for example a payment for a change of plan, write to support@putlive.dev and a person will look at it. The payment for a change to Pro is such a payment: the button does not refund it, so ask by mail, and a person decides. When the button refunds a first payment or a renewal it also refunds the payments for what you added that were made after that payment, within 14 days, and the plan ends with it. A refund of what you added in any other case is asked for by mail too, and a person decides.

Buying more

On top of a paid plan you can add storage, transfer and own domains, in units, on your billing page, under "What you added to your plan". Prices are list prices, without tax.

  • Storage: 50 GB of storage for each unit, USD 1 a month or USD 10 a year.
  • Transfer: 200 GB of transfer a month for each unit, USD 1 a month or USD 10 a year.
  • Own domains: 1 own domain for each unit, USD 0.50 a month or USD 5 a year.
  • How to buy. Each is added to the subscription your plan is paid with, at the plan's interval: a monthly plan gets monthly prices, a yearly plan yearly ones. Type the number of units you want in all, tick the box that says you agree to the terms and ask for it to start now, and press Buy more. The part of the period that is left is charged now; an amount under Stripe's minimum charge is added to your next payment. A unit is charged at its full price again at every renewal until you lower it. You can have at most 10 units of a kind; for more, write to support@putlive.dev. Only the owner of an account can add, and only to a plan that is paid with a subscription that is running.
  • If the payment is not completed (a card that is declined, or a bank that asks you to confirm), nothing is added. The page gives the address of the invoice, where you can finish the payment or use another card; it ends by itself after about 23 hours.
  • How to lower. Type the smaller number and press "Lower at the end of the period". It takes effect when the period you paid for ends, so the unit stays until then and nothing is credited; we carry it out in the last 6 hours before the end. If a lowering was not made in time and the unit was charged for one more period, we write to you, and if you do not want to pay for that period you write to support@putlive.dev and we will refund it. What you added ends with the plan.
  • Automatic buying of transfer is off until you switch it on, under "Automatic buying of transfer" on the billing page, with a ceiling of 1 to 10 units and the box. When the downloads of the month pass the allowance of your account it adds one unit of transfer, charged to the card on file without you being at the page, never past the ceiling. One purchase costs at most USD 1 on a monthly plan and USD 10 on a yearly plan, and each unit it buys stays and is charged at its full price at every renewal (USD 1 a month, or USD 10 a year) until you lower it. Every purchase is confirmed by mail. Switching it off works at once. If a payment does not go through nothing is added, we write to you at most once a month, and it is tried again after 24 hours.
  • Changing the plan when you have added something is done on the billing page, under "Change your plan": a larger amount or a longer interval starts at once, a smaller amount or a shorter interval at the end of the period, and each button says when. It carries the same box as buying a plan, and what you added moves to the new interval with it.
  • When the transfer runs past the plan. A paid account is served on past its allowance (the plan's transfer and what you added) until the downloads of the month reach three times it. Then visitors of your live sites see a page that says the allowance is used up, until the month turns over or transfer is added. Nothing is deleted. The downloads are counted every few minutes, so after you add transfer the sites are served again within about 30 minutes.
  • Nothing is bought through the API, the command line or a connected assistant. They show the limits of the account, which include what you added, and buy nothing: buying and lowering are done on the billing page. The terms have the details.

When payment ends

If you cancel, or a renewal payment fails and is not made up, everything keeps working until the end of the period you paid for and for 30 days more. Then the account is on the Free plan. What does not fit the Free plan is switched off, not deleted: visitors see a page that says the site is no longer available, and the files are kept for 365 days. We write to you before anything is deleted. The terms have the details.

How to save your files

The command-line client saves the current files of every site of your account, the switched-off ones included, each site into its own folder:

putlive export <folder>

Every file is checked against the size and the hash the service lists. A file already in the folder whose content differs from the service's is replaced by the service's version. The API also lists and serves the files of a site: see the guide below.

A team and the log of actions

Who is in a team

A Pro account can have a team: the owner of the account and up to four members, five people in all. The owner invites a member on the Team page of the dashboard, with an e-mail address. An invitation that has not been accepted yet takes a place.

  • Invitation. The person gets an e-mail with a link. They open the link, sign in with that same e-mail address, and press the button "Accept the invitation". The link works once, only for that address, and for 7 days. Opening the link does not accept anything: only the press of the button does.
  • What a member can do. A member publishes and manages the account's sites, and makes API keys and connected apps of their own, which act for the account. A member sees the account's sites and usage, but not the plan or the payments, and cannot invite or remove anybody or read the log. The owner can do everything a member can. The mail "tell me when it is next opened" always goes to the address of the account, also when a member asks for it.
  • Keys and connected apps belong to the person. The owner does not see the keys of a member. Removing the member ends them all.
  • One account at a time. A person can act for one account only. A person whose own account has sites, members, open invitations or a paid plan that is still running cannot join another account: they delete the sites, remove the members, cancel the invitations or end the plan first, and then the same link works. Deleted sites do not count.
  • Removing a member, or leaving. The owner can remove a member and a member can leave, at any time. Every key, sign-in and connected app through which that person acted ends at once, and so do the upload links made with them. Invitations that person sent, or that were addressed to them for this account, are cancelled. The person's own account stays.
  • When the plan stops being Pro. The team is paused at once: the members' sign-ins, keys and connected apps stop working, and the owner is told by e-mail. If the account is on Pro again within 365 days, the team comes back by itself, except a member who has made sites of their own in the meantime. The keys, sign-ins and connected apps that ended do not come back: members sign in again, make new keys and connect their apps again. After that time the paused places are removed.

The log of actions

The owner of a Pro account reads the log on the Log page, and can download it as a CSV or a JSON file. A member cannot read it, and a member who tries is written to the log.

  • What an entry holds. The time, the person, through what they did it (a key, the dashboard, a connected app or an upload link), the action, what it was done to (a site, a key, a name; never what is in a file), whether it was done or refused, and the network the request came from. Whole addresses are never shown to the owner. An action done through an upload link is written with the person who made the link.
  • How long. An entry is kept 365 days and then deleted. We keep the whole address of the request 30 days, for the security of the service, and then only the network stays. When a person deletes their own account, their e-mail address is removed from the entries.
  • Everyone is told. The invitation, and the page it opens, tell the person that what they do for the account is logged and that the owner can see it.
  • If the plan stops being Pro, nothing new is written, and the entries stay for their time. They show again if Pro comes back.

An answer from a person

A Pro account has an answer from a person by mail: write to support@putlive.dev, and a person answers within 48 hours.

A name and a domain of your own

A name for the address

With a plan that includes it, a site can have a name of your own for its address: it then answers on name.putlive.page as well as on its generated address, and the generated address keeps working. A name is kept for your account: it is not given to another account, also after the site is deleted or the plan ends; a name that breaks the terms can be taken back. On the Free plan you cannot choose or change a name, but you can always give it up. A name makes an address that can be guessed, so the site is then only kept out of search engines: a password or a list of e-mail addresses is what keeps it private.

  • On the site's page in the dashboard, the section Address: type the name in Name for the address and press Save. Use the generated address only gives the name up.
  • With the command-line client, for a new site: putlive publish ./site --name my-name; for a site that exists: putlive name <site> my-name, and putlive name <site> --clear gives the name up.
  • In a chat assistant, a new site can be given a name when it is published: tell the assistant the name you want.

A domain of your own

With a plan that includes it (the pricing page says how many), a site can answer on a domain you already own, such as example.com or www.example.com, as well as on its other addresses. A name and its www. twin count as one domain. A domain makes an address that can be guessed, as a name does, so a password or a list of e-mail addresses is what keeps such a site private.

  • On the site's page in the dashboard, the section Your own domain: type the domain in A domain you own and press Add. Check now looks at its DNS again, and Remove takes the domain off the site.
  • With the command-line client: putlive domain add <site> <domain>, then domain list, domain check and domain remove with the same arguments.
  • In a chat assistant: ask it to put the site on the domain. It uses the tool add_domain and tells you the records to make.

Adding a domain looks at its DNS once and shows two records to make where the domain is managed:

  • a TXT record that shows the domain is yours. putlive makes its value for your account and this name and shows it only in your own answers; once you make the record, DNS shows it to everybody, which does no harm, because a name is taken only with the taker's own record at the domain. It is needed to connect the domain, not to keep it;
  • a record that points the domain here: a CNAME record or, for the bare name of a zone such as example.com, where a CNAME record cannot be, an A record. There must be no AAAA record, and a proxy or a CDN in front of the domain must be switched off, so that the certificate can be issued.

The service looks at the records by itself for 30 days after a domain was added or went back to waiting, and after that only when you press Check now (or run domain check). When both records are right the domain is connected and we write to you. Where a record is wrong, the answer says which record to create, change or remove. A question that DNS could not answer is never taken for a wrong record: nothing is disconnected because of it. A CAA record that does not allow Let's Encrypt keeps a certificate from being issued; the answer then names the record to add.

HTTPS only

A domain is served over HTTPS only. Its certificate is got from Let's Encrypt at the first request for the name, which putlive makes itself as soon as the domain is connected and our servers answer on it, and every answer tells browsers to use HTTPS for that domain, which a browser remembers for 365 days. If you later move the domain to a host that does not serve HTTPS, a browser that remembers this refuses the page until that time is over.

If the domain stops pointing here

A connected domain whose records are wrong is served for at least 7 days more, and we write to you; before that time starts, a wrong answer is checked a second time, through an ordinary resolver instead of the domain's own name servers, so that one name server's mistake does not start it. If the domain still does not point here after that time, it is disconnected, and it is connected again when its records are right.

Who holds a domain

A domain that is connected to one account is not given to another while the first account's TXT record is still at the domain. When that record is gone, whoever proves the domain with a record of their own gets it. The first account is told: a connected domain it loses goes back to waiting there, and a domain that its plan had switched off is removed from it. So, to move a domain to another account, remove the TXT record of the first one.

When the plan ends or gets smaller

A domain that the plan has no room for is switched off, not deleted, and the newest domains go first. A switched-off domain is connected again when the account has room for it, with a plan that has more room or when you remove another domain, if its records are still right. We write to you when domains are switched off.

A file by its address, and how often a site was opened

A file by its address

With a plan that includes it (the pricing page says which), you can give putlive the web address of one public file instead of the file: it fetches the file itself, once, and publishes it as a new site, or as a new version of a site you have. Ask your agent to publish the file at that address, or use the command-line client:

putlive publish --from-url <address>
  • It takes one file that opens for anybody without signing in: a page as it is, a PDF, an image or a text file. Not a whole site, and never an archive. A link into an assistant's own viewer (a shared chat, canvas or artifact link, or an address that sends the request on to one) is not a file: ask the assistant for the page's code, or download the file and publish it as a file.
  • A page that refers to other files by a relative address is published without them, and you are told so. By giving the address you say that you may copy the file and publish it: the terms say the rest, and the file goes through the same checks as one you send.
  • Add --site <id> for a new version of a site that exists and --title for a title. A connected assistant does the same with the tool publish_from_url, for a new site.

How often a site was opened

With a plan that includes it, the page of a site in the dashboard shows how often the site was opened: in all, in the last 30 days, when it was first and last opened, and a count for each day of the last 90 days. With the command-line client: putlive opens <site>; a connected assistant reads the summary with the tool get_site.

  • An opening is a browser going to a page of the site, as far as the request can tell: a reload counts, and so do your own visits. A program that fetches previews or crawls the web and says what it is does not count, and neither does a request that does not look like a browser's, or a browser too old to say that it is going to a page; a visit that stops at the site's password or at its sign-in by e-mail is not counted either. It is never a count of people, and nothing about a visitor is kept for it. A time is the start of the 10 minutes in which it happened.
  • For a site that is limited to a list of e-mail addresses you also see which address of the list signed in with a code, how often, and when first and last; the sign-in form tells the visitor that the owner can see this.
  • To be mailed the next time a site is opened, press "Mail me the next time it is opened" on the page of the site, or run putlive opens <site> --notify. The mail comes once for each time you ask, for an opening in a step of 10 minutes that begins after you asked, and says that the site was opened and when, and nothing about the visitor. A new site asks for it by itself, from 10 minutes after it first goes live. A plan without opens has none of this.

Pages for one task

For one thing at a time: publish an HTML page, share a PDF and publish what a chat assistant made. Each is a short page for that one thing.

What the address of a file opens

When you publish a file that is not a web page, putlive makes a page for it where it can, and tells you which one: the command-line client prints a line "opens as", and a connected assistant reads it from the result. This is done for the publications of an account. A folder with an index.html is your own site and is never replaced, and a page published without an account is its files and nothing else.

What each kind of publication opens as

  • One video (mp4, m4v, mov or webm): on the Plus and Pro plan, a page with a player, with the first picture of the video in front of it. On the other plans the address opens the video itself in the browser, as it always did.
  • One sound (mp3, m4a, aac, wav, flac, ogg, oga or opus): a page with a player, on every plan.
  • One Word, PowerPoint or Excel file (docx, pptx or xlsx): a page that shows a PDF made from it, with the PDF linked beside the file, on every plan. A file above 100 MB, a document of more than 500 pages, or a file that cannot be read gets a download page instead.
  • Pictures, sound and video, two files or more, and no index.html: a gallery. Each picture of up to 64 MB has a small picture of its own (a vector picture, svg, is shown as it is), each sound has a player, and each video is a clip with its first picture on the Plus and Pro plan and a link on the others. A folder that holds a file of another kind beside them is a site, as it always was.
  • One file of any other kind, such as an archive: a download page that names the file, its size and its type and links it. A picture, a PDF, a text, a JSON file or an HTML page opens as itself, and one Markdown file is shown as a page.

What is not done

  • Nothing is converted to another format. A video or a sound plays where the visitor's browser can play it, so a format that browsers do not play (such as mkv or avi) has no player and is offered for download. A heic picture is not read, and a vector picture is never turned into a bitmap.
  • The small pictures, the first pictures of videos and the PDFs are made on our own servers by programs that have no network. They are kept with the version of the site, removed with it, and open only to whoever may open the site.
  • A big gallery or a long document goes out at once and gets its pictures a few minutes later: the page is first made of plain tiles or a download page, and the same address shows the finished page afterwards. A page that cannot be made never stops a publication: the file itself is then the page.
  • Which plans have the player for a video is on the pricing page.

Connect a chat assistant

A chat assistant that can use remote MCP servers can publish for you without an API key. Add this address to it:

https://putlive.dev/mcp

The assistant sends your browser to a page of putlive. If you are not signed in you sign in there with the code sent to your e-mail address; then the page shows the name the app gave itself and where it will be sent back to: the host of a website, or "a program on this computer" when the app runs on your own computer. Nothing is connected until you press Allow.

What a connected assistant may do

It acts as you, under your account's plan and limits, and it has exactly these tools:

  • get_usage: see the plan and what is used
  • list_sites: list the sites
  • get_site: see one site
  • publish_site: publish a new site
  • update_site: publish a new version of a site
  • set_access: change who can open a site
  • delete_site: delete a site
  • create_upload: get a link for uploading files
  • add_domain: put a site on a domain of your own
  • publish_from_url: publish a file from a public link

A tool for something this service has not switched on yet, or that your plan does not include (publishing a file by its address, putting a site on a domain of your own), says so when it is used and changes nothing.

A new site is private: search engines are told to skip it, and only people who have its address can open it, unless you ask for more. The generated address is long and cannot be guessed; an address made from a name of your own can, and then a password or a list of e-mail addresses is what keeps the site private. Text files go in the assistant's own request. For anything else (images, PDFs, archives) the assistant gives you a link to a page of this service: you open it, choose the files, and press Publish. That link works once, and it can be started for 30 minutes after it was made, and for up to 5 minutes more after the service refused its list of files.

Where to disconnect

Every connection is listed, with its name and the host it is sent back to, on https://putlive.dev/app/connections. Press Disconnect there: the next request of that app is refused.

In each assistant

Checked on 19 November 2026 against each vendor's own page. Their steps and plan names can change; where a page says something different, the page is right.

  • Claude. Open Customize, then Connectors, then Add custom connector, and enter a name and the address above. Custom connectors are available on the Free, Pro, Max, Ultra, Team and Enterprise plans, and the Free plan can have one. On Team and Enterprise an Owner adds the connector under Organization settings, then Connectors, and the members then connect one by one.
  • Claude Code. Run:
    claude mcp add --transport http putlive https://putlive.dev/mcp
    
  • ChatGPT. On the web, open chatgpt.com/plugins, press the + button, choose Add custom MCP server, enter the address and choose OAuth; ChatGPT asks you to acknowledge the risk of a custom server and creates it as a plugin. Custom MCP server connections are available for ChatGPT Business and Enterprise/Edu workspaces; in Business only admins and owners create one.
  • Cursor. Add the address as the url of a remote server in mcp.json. Cursor signs in with OAuth.
  • Codex. Codex reads remote servers over streamable HTTP and signs in with OAuth. Add the address as such a server as Codex's own MCP page describes, then run codex mcp login putlive, using the name you gave the server.
  • Perplexity. Subscribers on Pro, Max and Enterprise can add a custom remote connector: Add custom, then Add MCP connector, with the address above and OAuth.

The API

The API is at https://api.putlive.dev. Its description (OpenAPI 3.1) is /openapi.json; the guide below is also served as plain text at /llms.txt.

The guide for agents

This is the text an agent reads. It is the same as https://putlive.dev/llms.txt.

putlive hosts what an AI agent made (a page, a small site, a single-page app, a file) and gives back a link. The link is private by default. This page is written for you, the agent: read it before you publish.

The API is at https://api.putlive.dev. Its machine-readable description (OpenAPI 3.1) is https://api.putlive.dev/openapi.json. Published sites live at <name>.putlive.page (a generated name, or one the user chose), and, where this service offers own domains and the account's plan includes one, on a domain of the user's own. Where it does not offer them, adding a domain is refused with not_enabled and the words "Own domains are not switched on for this service yet."; where the plan has none, with forbidden and "Own domains are not part of this account's plan."

What this service is for

Use it when a person asks you to put something online or share it as a link: "publish this", "host this", "share this as a link", "put this online", "make this page private". You send the files, the service checks them, and you get an address you can hand to the person.

It serves static files only. No code of yours runs on the server. A page can have scripts that run in the visitor's browser, but there is no backend, no database and no secret kept for you.

Rules that always apply

  1. The default is a private link. A new site gets a generated address, long and random, and tells search engines to skip it. Anyone who has the address can open it. That is the safe starting point, as long as the site has only the generated address: a name of the user's own (see "A name for the address") makes an address that can be guessed, and the default then only keeps the site out of search engines. A password or a list of e-mail addresses is what keeps such a site private.
  2. Widening access needs the user's word. Do not set public, and do not remove a password or an e-mail list, unless the user said so in this conversation. Narrowing access (a password, a list of addresses, an expiry) you may offer.
  3. Never publish secrets or other people's data. Not API keys, tokens, passwords, .env files, private keys, cookies, or exports that hold other people's personal data. If a file looks like one of these, stop and ask the user. A published file can be opened by everyone who has the link.
  4. A page that calls a model from inside a sandbox will not work once published. An artifact or demo that calls an AI model through the sandbox it was made in (no key of its own) has no such sandbox here, so those calls fail. Tell the user before you publish.
  5. Tell the user the truth about the result. Say the address, who can open it, and, if the service held or refused the publication, why (see below). Do not call something published that is not live.
  6. Keep the API key secret. It is shown once. Do not print it in the chat, do not write it into a file you publish, do not commit it.

Install

You can use the HTTP API below with curl alone (and sha256sum when you upload files). You can also install the Agent Skill of this service, which teaches an agent the same steps and brings a publisher script that needs bash, curl, jq, sha256sum (or shasum) and the head and tail that every system has: run curl -fsSL https://putlive.dev/install.sh | sh (it writes two files into your skills folder, asks before replacing an old copy, runs nothing it downloads and says what it wrote). The skill's files are also at https://putlive.dev/.well-known/skills/index.json. The command-line client of this service is a package: install it with npm install -g putlive, or run it once with npx putlive <command> (it needs Node.js 20 or newer). Do not run npx or npm install for any other package of this name.

Sign in

Where this service lets anybody make an account, an e-mail address is all it takes, and an invite you send is ignored. Where accounts are by invitation, a NEW address needs the invitation code (the invite) the first time; after that the e-mail address alone is enough. You cannot know which it is before you ask: send the invite when the user has one and leave the field out when they have none.

  1. Ask the user for their e-mail address (and the invitation code, if they have one and have not signed in before).
  2. Make a request_id of your own for this request: 22 characters of A-Z, a-z, 0-9, - and _ (for example head -c 16 /dev/urandom | base64 | tr '+/' '-_' | tr -d '='), a new one every time you request a code. Keep it until step 4: the code is worth nothing without the value of the request that asked for it. Keep it only when the service took the request (the answer below is 204); after any other answer no code was sent, so the value is of no use: make a new one for the next request. Then request the code:
curl -sS -X POST https://api.putlive.dev/v1/auth/code \
  -H 'Content-Type: application/json' \
  -d '{"email":"person@example.com","request_id":"EXAMPLE-REQUEST-ID-22","invite":"EXAMPLE-INVITE"}'

The answer is 204 and nothing else. Where anybody can make an account it is the same for every well-formed address: it does not say whether the address has an account. Where accounts are by invitation, an address that has no account and sends no valid invite is refused here with forbidden (the hint is invite required): no code was sent, so ask the user for the invitation code, or tell them that accounts are by invitation, and begin again with a new request_id. When the answer is 204, a mail with an 8-digit code is on its way, shown as two groups of four (0000 0000). It works once and for 10 minutes. If you get invalid_request that names request_id, your copy of the skill or of the command line is older than the service: update it. 3. Ask the user to read the code from their mail and tell it to you. Never guess a code. A code is looked at 5 times and then it is dead. If the code was wrong or too old, do not ask for it again straight away: request a new code first (step 2, with a new request_id), then ask for the new one. At most 5 codes an hour go to one address. 4. Trade the code for a key, with the same request_id as in step 2 (a code with another value is answered like a wrong code and uses one of its looks). If you have no value that a 204 of the last 10 minutes was answered for, for this address, do not send the trade: ask for a code first (step 2), because a trade with a missing, old or foreign value uses up a look of the code:

curl -sS -X POST https://api.putlive.dev/v1/auth/token \
  -H 'Content-Type: application/json' \
  -d '{"email":"person@example.com","code":"0000 0000","request_id":"EXAMPLE-REQUEST-ID-22","key_name":"my agent"}'

The answer holds api_key (it starts with ah_). Keep it for the rest of the session and send it on every call as Authorization: Bearer <key>. If you lose it, sign in again for a new one. An address that has an account always signs in. Where anybody can make an account, a new address can be told rate_limited here ("New accounts cannot be made right now"): the service limits how many new accounts one network, one mailbox and the whole service make in a day or an hour, and the answer never says which. If the answer names a wait of a few seconds, the service was only busy making other accounts and the code is GIVEN BACK: trade the same code again after that wait. A longer wait is a cap, and the code is used up: wait that long, then begin again at step 2, and do not try again at once. A code that was used up is answered like a wrong code: then ask for a new one.

Sign-up from some countries is refused (forbidden); the United Kingdom is closed at the launch. Throw-away e-mail domains are refused too.

Publish with one request

For a small page or site (text files, up to 256 KB together) one request is enough. The service stores the files, runs the checks and answers when the site is live or the checks are done:

curl -sS -X POST 'https://api.putlive.dev/v1/sites?wait=60' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"title":"My page","inlineFiles":[{"path":"index.html","content":"<h1>Hello</h1>"}]}'

The answer has status, site.url (the address to give the user), site.id and release.id. Act on status, and only on it:

  • live: it went up. Give the user site.url and say who can open it.
  • checking (HTTP 202): the checks are still running. Call POST https://api.putlive.dev/v1/releases/<release.id>/finalize?wait=60 again, and again, until the status is something else. Repeating that call is safe.
  • pending_review (HTTP 200): the publication is held for a person. Stop. There is nothing to retry and nothing to wait for in a loop. Tell the user that a person will look at it and that the decision comes by e-mail. If nobody has looked within 72 hours the publication is refused: an update can then be published again, but a first publication leaves a rejected site, which cannot be updated, so it has to be deleted (DELETE https://api.putlive.dev/v1/sites/<site.id>) and published again as a new site. Show the reasons. If this was an update, the version that was live keeps serving meanwhile.
  • rejected: refused by the safety checks. Show the reasons to the user; do not send the same files again.

A single-page app that must answer every path with index.html: add "spa":true.

Publish a bigger site, or binary files

  1. For each file work out its path (relative, / separators, no ..), its size in bytes and its SHA-256 in lower-case hex.
  2. POST https://api.putlive.dev/v1/sites with {"files":[{"path":"index.html","size":14,"sha256":"<64 hex>"}]} (you may add inlineFiles for small text files). The answer is 201 with uploads (one entry per file the service does not hold yet), finalizeUrl and release.id.
  3. For each entry of uploads: curl -sS -X PUT "<url>" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/octet-stream' --data-binary @file. Use the url exactly as given: each path segment is already percent-encoded. A file of 16 MB or less goes in one request like this; send a bigger one in parts (the next section).
  4. POST the finalizeUrl (add ?wait=60). If it answers upload_incomplete, error.missing lists the paths to upload again.

To publish a new version of a site you already made, POST https://api.putlive.dev/v1/sites/<site.id>/releases with the same body. Files that did not change are reused. The upload session of a release ends 30 minutes after the last upload request that passed its checks, and 24 hours after the release was created at the latest (the next section says what that means). A publication has at most 2500 files; an account may start 4 publications in 24 hours for each site the plan allows (20 on Free).

Send a big file in parts

A file may go whole, with one PUT as above, or in parts. A file of 16 MB or less is sent whole; a bigger one is better sent in parts. A single request may be ended after about a minute by the network in front of the service: its answer is then not the service's own JSON (for example a proxy's own 499, 502, 503 or 504), and a whole file that was cut off has delivered nothing that is kept. So send a bigger file in parts of 16 MB, and after a part that was cut off ask where the file stands and go on from there: what arrived is kept. A whole PUT is accepted at any time, also after parts of the file arrived: it replaces them (while another request for the same file is running it is conflict), so a client of your own may fall back to it; the command-line client never sends whole a file that has bytes at the service.

Three calls, on the url of the file's entry in uploads (used exactly as given) and on the release. Each carries the same Authorization: Bearer $API_KEY header as the PUT above, and the PATCH also Content-Type: application/octet-stream:

  • GET <url> answers the state of ONE file: path, size (from the file list), received (how many bytes the service holds of it), complete and, when something is wrong with the file, problem: "mismatch" after a file arrived with other bytes than the list announced, "stuck" when the service holds every byte and could not finish the file. It changes nothing and does not keep the upload session open.
  • PATCH <url>?offset=<received> with the bytes from that byte on as the body (Content-Type: application/octet-stream) appends them and answers the state. The offset must be exactly where the file continues. There are no part numbers, no parallel parts of one file and no call that completes a file: the part that brings the last byte completes it.
  • GET https://api.putlive.dev/v1/releases/<release.id>/uploads answers the state of every file of the release at once (files, in the order of the file list, with the release's status and expiresAt): the call for taking an upload up again.

For each file:

  1. Ask the state. A file the service holds nothing of is received: 0.
  2. Send the bytes from received on, at most 16 MB in a request.
  3. After ANY failure that is not a refusal a person must read (a network error, an answer that is not the service's own JSON, conflict, unavailable, rate_limited after its pause, upload_incomplete; but a conflict that says the release is no longer open ends it: see below), ask the state and go on from the received it names, never from what you believe you sent: a request that was cut off has delivered bytes you never saw counted. A request that was cut off may still be held on the way for a moment, and a part sent meanwhile is conflict: pause, ask again, and give the upload up only when nothing has moved for some minutes.
  4. forbidden, not_found, limit_exceeded and invalid_request stop the upload: read the message and the entry of that code below, and do not retry in a loop. That holds for limit_exceeded with the limit disk as well: while the storage is nearly full a part and a whole PUT are answered "Uploads are paused for a moment: the storage is nearly full. Try again later." Stop the loop and tell the user; run the upload again some minutes later, not seconds. What arrived stays, and the refused request does not move the end of the release's upload session (30 minutes after the last request that was accepted): while the release is still open ask the state and go on from received, and when it has ended start a new release.
  5. received equal to size with complete false and no problem: every byte is here and the service is checking the file. Ask the state again every 2 seconds. complete: true: the file is a file of the release. A finalize that meets a file that is still being checked answers upload_incomplete with the hint that a large file is still being checked: ask again in a few seconds, and send nothing again. problem: "stuck": see below, the checking is over and waiting for it does not help.

What the three answers that surprise mean. conflict with the sentence "This release is no longer open for uploads.", from a part, a whole PUT or a state ask, is the END of this release (its session ended and it was settled, or it was finished): stop, do not ask again, and start a new release. conflict with the sentence "This file continues at byte N." means that the offset is not where the file continues: ask the state and send from its received. conflict with "Another upload of this file is in progress." means that a request for the same file is running (or one that was cut off is still held): wait, and ask again; never send two requests for one file at the same moment. problem: "mismatch" means that every byte arrived and their SHA-256 is not the one of the file list: the service removed the file and received is 0. Send it once more from byte 0; if it comes back as mismatch a second time, stop and tell the user: if the file changed after the list was made, publish again with a new list, and if it did not, the connection changes bytes on the way. problem: "stuck" means that every byte arrived and their SHA-256 is right, but the service could not finish the file (placing it failed, for example because its storage is full): stop asking every 2 seconds and send nothing again. The service tries to finish the file again when its state is asked or a part of it is sent, and not before a pause of its own after the last failed try; while it tries, the state shows every byte and no problem, and then says complete: true (the file is done) or stuck again. So ask the file's state again in a few minutes. A finalize that meets such a file answers upload_incomplete with the hint that a large file holds every byte but could not be finished; finalize starts no try, so do the same: ask the file's state in a few minutes, then call finalize again.

How long it may take. The upload session of a release ends 30 minutes after the last upload request that passed its checks (a request that only asks where a file stands does not count), and 24 hours after the release was created, whatever arrives. That holds for a whole PUT as for a part, and a request that the network cut off counts. After the end a part, a whole PUT and a finalize are forbidden ("The upload session of this release has expired."); a state ask still answers as before, and expiresAt of GET https://api.putlive.dev/v1/releases/<release.id>/uploads is in the past while its status is still uploading. Within minutes of the end the service settles the release and removes the bytes that were sent: from then on a part, a whole PUT and a state ask are conflict with "This release is no longer open for uploads.", a finalize answers the stored state of the release (status superseded), and that list answers its status with no files. Any status there other than uploading means that this release is over. In every case start a new release (POST https://api.putlive.dev/v1/sites/<site.id>/releases with the same body) and send the files again.

The command-line client does all of this by itself: it sends a file larger than a part in parts, goes on after a break, and takes an upload up again. When a publication to an account that holds a file larger than a part was stopped (the program was ended, or the connection was lost for good), run the same command again, with the same files and the same options, while the release is still open, and only what is missing is sent. The skill's script sends in parts and goes on after a break within one run, but it cannot take an upload up again after it was stopped: run it again, and the files are sent again.

Publish a file by its address

Where this service offers it, and the account's plan includes it, you can give the address of ONE public file and the service fetches it and publishes it as a site, instead of you downloading and uploading it:

curl -sS -X POST 'https://api.putlive.dev/v1/sites/import?wait=60' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://files.example.com/report.pdf","title":"The report"}'

title is optional, and so is siteId: with it the file becomes a new version of that site of the account (without it, a new site is made). The address is at most 2048 characters, and siteId is the id of the site (a UUID), never its address or its name: anything else is invalid_request before anything is fetched. The answer is a publication's (status, site.url, site.id, release.id, and 202 while the checks still run: act on status as above) with two more fields: file, what was imported (name on the site, size in bytes and contentType, as the service read the file), and warnings, a list. Look at file before you tell the person it is done: when the person expected a document and the file is an HTML page (a page that asks for a sign-in looks like this), say so and offer to delete the site. relative_files in it means that the page refers to other files by a relative address and that those files were NOT imported: tell the user, because the page may look incomplete, and publish the whole folder instead. The command-line client does the same with putlive publish --from-url <address> [--site <id>] [--title <text>] (no path, and no other option: each is refused by name), the skill's script with bash scripts/publish.sh --from-url <address>, and a connected assistant with the tool publish_from_url (a new site only).

What it takes: a direct link, http or https, to a file that opens for anybody, with no sign-in, and that is at most the account's file size and 100 MB. An HTML page becomes index.html; another file keeps its name. What it does not take, each answered invalid_request with ONE sentence for its reason and the hint to download the file and publish it as a file: a link into an assistant's own viewer (a shared chat, canvas or artifact link, or an address that REDIRECTS into one, by an HTTP redirect within the few the service follows, such as a short link or an older address of the same assistant: "This link opens a page inside an assistant's own viewer, not a file.": ask the assistant for the page's code, or download the file, then publish that; a page that sends a browser on by its own markup or script is an ordinary page, and is fetched as it is), an archive, a kind of file the service does not publish, an empty file, a file whose name looks like a secret or is a hidden file, an address the service does not fetch from, a server that cannot be reached, that does not hand out a file, that sends the request on too many times or that is too slow. A file that is too large is limit_exceeded with limit file_size. The service fetches from a part of its own that has its own rules; this API never connects to the address, and nothing the other server wrote is repeated in an answer.

Where the service does not offer it, the answer is not_enabled with the words "Import by link is not switched on for this service yet." (do not retry); where the plan does not include it, forbidden with "Import by link is not part of this account's plan." (do not retry; tell the user). Both carry the same hint, which says what to do instead: "Publish the file itself instead: an agent sends its content, and an assistant in a chat makes an upload link for a file that is not text." An account may start 30 imports a day: a request counts once its address was handed to the serving side to be fetched, also when the serving side then refused the address or the file or no answer came; a request that was refused before that (an address of the wrong shape, a link on a viewer's host as given, a plan without it, storage nearly full) or that found the serving side busy or switched off does not; past that the answer is rate_limited with Retry-After, and another import running at that moment is rate_limited with a wait of a few seconds ("Another import is running. Try again in a moment.").

If you are connected through MCP

Some assistants do not hold an API key: the person added this service to them once, as a remote MCP server at https://putlive.dev/mcp, and signed in and pressed Allow on a page of this service. If your tools are get_usage, list_sites, get_site, publish_site, update_site, set_access, delete_site, create_upload, add_domain and publish_from_url, you are connected that way: use those tools instead of the HTTP calls above, and the rules above apply to you in the same way. The server also tells you these rules when the connection starts:

  • A new site is private: search engines skip it, and it opens only through its address. The generated address is long and cannot be guessed; an address made from a name of the person's own can, and then a password or an e-mail list is what keeps the site private. Keep it so unless the person asked for more. Ask the person before you choose public access; never choose it on your own.
  • Never publish a password, an API key, a token, a private key or another person's data. If a file holds one, leave the file out and say so.
  • Only text files go in the call itself. For anything else (images, PDFs, archives, other binary files) use create_upload: it gives the person a link on which they add the files themselves.
  • After you publish, tell the person the address and who can open it. Read both from the result: the access mode and, when they are there, whether access was switched off or has an end date.
  • The result's page, when it has one, says what the address opens: a player, a gallery, a PDF made from an office file or a download page. Nothing is converted: a file plays only where the person's browser can play it.
  • To put a site on a domain the person owns, use add_domain: it lists the DNS records the person must create at their domain, and calling it again looks again. Tell the person the records as they are.
  • To publish ONE public file that the person gave as a web address, use publish_from_url: it takes a direct link that opens without signing in, never a page inside an assistant's own viewer or an archive. For those, publish the page's text, or use create_upload. If it answers that import is not switched on or not part of the plan, do not retry it: publish the content with publish_site, or use create_upload for what is not text.
  • An error says what went wrong and what to do. Fix the cause before you try again, and do not repeat a request that was refused.

The result of a publication carries the same status values as the API and a note to repeat to the person as it is. Only live means the site is open. The person can end the connection at any moment in their dashboard; your next call is then refused.

What the address of a file opens

A publication of an account that has no index.html opens as a page the service makes, not only as bare files. site.page of the answer (page in the connector's results, and in GET https://api.putlive.dev/v1/sites/<id>) says which one: site (your files), markdown, file (the one file itself), player, gallery, document or download. Tell the user what the address opens, not only that it is live; where page is missing, the service has not said.

  • One video (mp4, m4v, mov, webm): on an account whose plan has video pages (limits.videoPages is true in GET https://api.putlive.dev/v1/me) a page with a player and the video's first picture as its poster (player); on any other plan the video file itself (file).
  • One sound (mp3, m4a, aac, wav, flac, ogg, oga, opus): a page with a player, on every plan (player).
  • One office file (pptx, docx, xlsx): a page that shows the PDF made from it, with the PDF linked beside the file, on every plan (document). A file above 100 MB, a document that would make more than 500 pages, or one the converter cannot read gets the download page instead.
  • Two files or more, all of them pictures, sound or video, and no index.html: a gallery (gallery). Each picture of up to 64 MB has a small picture of its own (a vector picture, svg, is shown as itself), each sound has a player, and each video is a clip with its first picture on a plan with video pages and a link on any other. A folder that holds a file of another kind beside them is a site, as it always was.
  • One file of any other kind (an archive, a video format with no player such as mkv or avi, a picture the service does not read such as heic): a download page that names the file, its size and its type and links it (download). A picture, a PDF, a text, an HTML page or a JSON file is opened as it is (file), and one Markdown file is shown as a page (markdown).
  • An index.html, with or without other files: your site, as it always was (site). The service never replaces it with a page of its own.

Nothing is converted to another format: a video or a sound plays where the visitor's browser can play it, and a vector picture is never turned into a bitmap. The small pictures, the first pictures of videos and the PDFs are made on the service's own servers by programs that have no network; they are kept with the version and removed with it. They are made before the version goes out when that takes a few seconds. For a big gallery or a long document the version goes out at once with plain tiles or a download page, and the pictures follow a few minutes later: the answer says what the address opens at that moment, and GET https://api.putlive.dev/v1/sites/<id> says it later. A page that could not be made never stops the publication: the file stays the page, or the site stays as it was.

Who can open a site

PATCH https://api.putlive.dev/v1/sites/<site.id>/access with a mode:

  • link (default): anyone who has the address, and search engines are told to skip it.
  • password: visitors are asked for a password you set (password, 8 to 256 characters).
  • email: visitors give an e-mail address from your list (emails, or emailDomains) and get a code by mail.
  • public: searchable, no secret in the address. Not on the Free plan (forbidden), and never without the user's word.

Optional: expiresAt (a date and time with a time zone, in the future, or null) and revoke (true switches access off for everybody). Other calls: GET /v1/sites, GET /v1/sites/<id>, POST /v1/sites/<id>/rollback, DELETE /v1/sites/<id> (refused with conflict while the site is switched off, waits for a person or has a report that its sender confirmed and we have not decided yet: tell the user the message and stop), GET /v1/me, GET /v1/usage.

A name for the address

A site can have a name of its own for its address: it then answers on <name>.putlive.page as well as on its generated address, and the first address keeps working. Only accounts whose plan includes it may set one; the others are refused with forbidden, and giving a name up is always allowed. Ask the user which name they want; never choose one for them, and tell them that an address made from a name can be guessed, so a site that must stay private needs a password or an e-mail list. A site that has a name is told as site.url (the address to give the user) and site.addresses (all of them, best first), and site.name is the name, or null.

Send "name":"<name>" with the first POST https://api.putlive.dev/v1/sites, or PATCH https://api.putlive.dev/v1/sites/<site.id> with {"name":"<name>"} for a site that exists ({"name":null} gives it up). A name is 3 to 40 letters, digits and hyphens, with no hyphen at either end and no two in a row, and it may not hold a word that is a well-known brand or that looks like a sign-in page (invalid_request, and error.hint states the rule). A name that is already the address of a site or that another account holds is conflict: ask the user for another. The number of changes a day is bounded (rate_limited). With the command-line client the same is putlive publish <path> --name <name> for a new site and putlive name <site> <name> for a site that exists (--clear gives the name up); through the connector, publish_site takes name for a new site.

How often a site was opened

Where the account's plan includes it, the service counts how often the account's sites are opened, and mails the owner at the next opening when the owner asks. site.opens in every answer that shows a site (GET /v1/sites, GET /v1/sites/<id>, the answer of a publication) holds total, last30Days, firstAt, lastAt (the start of the 10 minutes in which it happened) and notice (armed: the owner is mailed the next time the site is opened). For an account whose plan does not include it site.opens is absent, not zero.

GET https://api.putlive.dev/v1/sites/<site.id>/opens answers days (a count per day for the recent days, newest first; a day on which the site was not opened is not listed) and, for a site in the mode email, recipients: which address of the person's own list signed in with a code, how many times, and when first and last. PATCH https://api.putlive.dev/v1/sites/<site.id> with {"notifyNextOpen":true} asks for ONE mail at the next opening (ask again for the next one; a site of such a plan is asked for by itself, from 10 minutes after it first goes live). Openings are counted in steps of 10 minutes, and the mail is for the first step that begins after the request (an opening in the same step as the request, or in the first steps after a site went live, does not send it): tell the user so, so that they do not think it was missed. The refusal of an account whose plan does not include it is forbidden with "Opens are not part of this account's plan.": tell the user that and go on without it.

Say what the numbers are. An opening is a browser's navigation to a page of the site that was allowed, as far as the request can tell: a reload counts, the person's own visits count, a request that does not look like a browser's does not. It is never a count of people, and the service keeps nothing about a visitor for it: no address, no browser, no path (for an e-mail site only the address the person put on the list). The command-line client's putlive opens <site> prints the days and --notify asks for the mail; a connected assistant gets the summary from the tool get_site.

A domain of the user's own

A site can also answer on a domain the user already owns (example.com, www.example.com). Only accounts whose plan includes it may add one; the others are refused with forbidden, and where this service does not offer it yet the answer is not_enabled. Ask the user which domain they want; never choose one for them.

POST https://api.putlive.dev/v1/sites/<site.id>/domains with {"domain":"example.com"} adds it and looks at its DNS once: the domain WAITS (status is pending) until its two records are right. domain.records are the DNS records the user makes where the domain is managed: a TXT record that shows the domain is theirs, and the record that points it here (a CNAME, or an A record for the bare name of a zone). The value of the TXT record is made by the service for this account and this name: it is shown only in this account's own answers and is written to no log, and once the user has made the record DNS shows it to everybody, which does no harm, because a name is taken only with the taker's own record at the domain. domain.problems say what the last look found, each with the record to create, change or remove: tell it to the user in those words. After the user made the records, POST https://api.putlive.dev/v1/sites/<site.id>/domains/<domain.id>/check looks again; the service also looks by itself for a while after the domain was added, and later only when the person asks for a look, so do not call it in a loop. When both records are right the domain is active and the site answers on it, and domain.certificate is pending until its certificate works; the user is told by e-mail when a domain is connected, when it has a problem and when it is disconnected. GET https://api.putlive.dev/v1/sites/<site.id>/domains lists the domains of a site, and DELETE https://api.putlive.dev/v1/sites/<site.id>/domains/<domain.id> removes one (unavailable means nothing changed: repeat the call). A domain and its www. twin count as one. A name that cannot be used is invalid_request and error.hint says what to type; a domain the account has is conflict; the number of domains the plan includes is limit_exceeded with limit domains: offer to remove a domain the user no longer uses, with their word.

With the command-line client the same is putlive domain add <site> <domain> (and domain list, domain check, domain remove); through the connector it is the tool add_domain. A domain is served over HTTPS only, with a certificate the service gets by itself at the first request for the name, which the service makes itself as soon as the domain is connected and our servers answer on it; a proxy or a CDN that is switched on for the name keeps that from working, so the records must be DNS only. A connected domain that stops pointing here is served for a grace period and then disconnected, and the user is told by e-mail both times. A domain that is connected to one account is not given to another account until the first account's TXT record is gone from it.

Take the files of a site home

GET https://api.putlive.dev/v1/sites/<site.id>/files lists the files of the version the site serves now: the release and, for each file, its path, size and sha256. GET https://api.putlive.dev/v1/sites/<site.id>/files/<path> (each path segment percent-encoded, the slashes kept) sends the bytes of one file as a download. Compare what arrives with the size and the hash before you keep it. The command putlive export <folder> does this for every site of the account: one folder per site, each file checked, a file already there with the same size and hash left alone. The bytes taken home in a day are bounded (rate_limited with Retry-After when a file would pass the day's budget): the command stops at once with that one answer, and a later run goes on from what is already in the folder. A site that is switched off after a report or a check (quarantined) is not given out: the answer is forbidden, and the user should contact support.

People of the account

An account whose plan includes a team has its owner and up to 4 members. The key you hold can be a member's key. It acts for the owner's account: the same sites, the same limits and the same usage, and GET https://api.putlive.dev/v1/me shows account (the owner's) and actor (email and role, owner or member, of the person the key belongs to).

A member publishes and manages the account's sites, and makes keys and connections of their own. A member cannot read the log, invite or remove people, or do anything about the account's plan: such a request is forbidden with a sentence that says why. Do not repeat it: tell the user that the owner has to do it. The API has no call to invite or remove people: the owner does that on the Team page of the dashboard.

Removing a person ends every key, session and connection through which they acted, and the upload links made with them: your next request with such a key is unauthorized. Do not try to sign in again with a key that was ended; ask the user. The mail "tell me at the next opening" goes to the address of the account, also when a member asks for it.

If the user asks how to add a person: the owner invites them on the Team page of the dashboard, with the person's e-mail address. The person opens the link in the mail within 7 days, signs in with that same address and presses the button "Accept the invitation". A person whose own account has sites, members, open invitations or a plan that still runs cannot join until they have deleted the sites, removed the members, cancelled the invitations or ended that plan. A member can leave at any time, and the owner can remove a member: the keys and connected apps they made for the account end, and their own account stays. The log keeps an entry for 365 days.

The log of the account's actions

GET https://api.putlive.dev/v1/log answers the log of what the people of the account did for it, newest first: entries (each with at, actor, via, action, target, result and network) and next. Only the owner of an account whose plan includes the log may ask: any other key (a member's among them) is forbidden with a sentence that says why, and a member's attempt is itself written to the log. Do not repeat such a call: tell the user. A service that has switched the log off answers not_enabled with the words "The log of actions is not switched on for this service yet." (do not retry).

limit (default 50, at most 10000; more is cut, not refused), from, to, actor (the id an entry gives), action and format=csv narrow it or make it a file. When next is not null (for a CSV: when the header X-Log-Next is there) more is left: send it as before, with the same other parameters, until it is null. An entry shows the network of a request and never its whole address, and a person whose own account was erased has no actor.email. Tell the user what the log holds if they ask: the time, the person, the way in (a key, the dashboard, a connected app, an upload link), the action and what it was done to, and nothing of the files.

Publish a page without an account

Where this service offers it, a page can be published with no sign-in and no key, for the user who has no account and wants a link now. Where it does not, starting a link (step 1), sending the link's list of files (the first POST of step 2) and finishing the page (<url>/finalize) answer not_enabled with the words "Publishing without an account is not switched on for this service yet." (do not retry); the door is read at those three calls, so a page whose files were still being uploaded when the door was closed is not finished: start again where the service offers it, or use an account. Prefer the account route above whenever the user has an account or can sign in: this one is smaller on purpose.

  1. POST https://api.putlive.dev/v1/anonymous/uploads (no key; the body is {} or nothing) answers 201 with {"upload":{"url","expiresAt"}}. url is an upload link, <origin>/u/<token>.
  2. Use the link like the one a connected assistant is given: POST <url>/publish with {"files":[{"path","size","sha256"}]}, then a PUT to the address of every file it lists (the answer says which), then POST <url>/finalize?wait=60. The link works once.
  3. Both POSTs answer with claimUrl and expiresAt, except that the answer of finalize for a page the checks refused (rejected) has expiresAt and no claimUrl: such a page cannot be kept, and is deleted at its time. Give the user the page's address and the claimUrl, and say that the page is deleted at expiresAt unless they open the claimUrl while signed in (or you call POST https://api.putlive.dev/v1/sites/claim with a key and {"token":"<the last part of the claimUrl>"}). The claimUrl is a secret: do not log it or share it.

With the skill's script or the command-line client the same is one line, and they do the three steps for you: bash scripts/publish.sh <path> --anonymous or putlive publish <path> --anonymous. Neither reads or sends a key, even when one is set; both print the page's address, when it is deleted and the claim address (the JSON has url, expiresAt and claimUrl), and both refuse (exit 2, naming the option) --site, --name, --title, --spa, --access, --password, --emails and --expires, which belong to an account. Where this service does not offer it they exit with 7 (not_enabled): do not try again, tell the user, and use an account instead if they have one. The claim is putlive claim <claimUrl> or bash scripts/publish.sh --claim <claimUrl>, with a key: only the last part of the address is used, and the page then becomes a site of that account, under its plan's limits.

What such a page is: a Free page with less. It goes through every safety check before anybody can open it (status pending_review or rejected as for any publication); its address is random and private (never public); visitors first see a notice that it was published without an account, and the badge is on it; it is deleted 24 hours after it was published unless it is claimed. What it is not: it has no name and no domain of its own, it is never updated (one link makes one page: for a new version start again), nobody is e-mailed about it, and it cannot be changed or deleted by you afterwards: there is no account to do it. Limits: 100 files, 10 MB a file, 25 MB for the page, and 2 GB of downloads in all, after which the page is switched off; each is limit_exceeded (files, file_size, storage) with the number in the message, and an account gives more room. It also takes only the kinds of file a site is made of (pages, styles, scripts, pictures, fonts, sound, video, PDFs and plain data files such as text, JSON and CSV): the first file of another kind is refused with limit_exceeded, with no limit name and a message that names the file; publish such a file from an account. One client network may start 3 pages a day, and the whole service a number of its own: past either, rate_limited with Retry-After. unavailable: the storage is nearly full or too many such pages are alive, try again later. One confirmed report about such a page switches it off at once.

What happens after you publish

  • Every publication of a Free account is checked before it is served. The checks look for malware, for dangerous links, for pages that imitate another service, and for password or card forms. This takes seconds, sometimes longer.
  • Held for a person. A publication that looks risky (for example a page with a password field, or links that could not be checked) is held. The answer has status pending_review and reasons. A person looks at it and the decision comes to the user by e-mail; after 72 hours without a decision it is refused. A held update can then be published again; a held first publication leaves a rejected site that cannot be updated, so delete it and publish the files as a new site. Tell the user the publication is waiting for a review and why (reasons) and stop: do not retry, do not poll. A held first publication has site.status pending_review and cannot be changed meanwhile (pending_review error). A held update leaves site.status live: the version that was live keeps serving until the person decides.
  • Refused. status is rejected and reasons says why in plain sentences. Show the reasons to the user. Do not try to get the same files through again; fix the cause or stop.
  • On the Free plan an update never takes the live version down while it is checked. If the new version is held or refused, the old one keeps serving.
  • On the other plans a new version is served at once and checked right after. The answer lists the malware check and the link check as pending, and they normally finish within minutes. The malware scanner does not read a file larger than 2047 MB. A definite finding switches the whole site off (quarantined), also when a newer version has gone live meanwhile, and the user is told the reasons by e-mail. Tell the user, and do not republish. Once the version is live, a language model also reads its pages once: if it is sure that a page imitates the sign-in page of a well-known service, that is a definite finding too; if it only suspects it, a person looks at the page and the site stays online meanwhile.
  • A site can answer visitors with 509 for the rest of the month when the account has used its monthly transfer. GET /v1/usage shows the numbers and transfer.resetsAt, when they reset. The site comes back by itself at that moment.
  • An account that is not on the Free plan is stopped later. Its sites are served until the month's transfer reaches three times transfer.limitBytes of GET https://api.putlive.dev/v1/usage, and only then answer visitors with 509, until transfer.resetsAt or until that limit grows (the stop is lifted at the next count, which can be 30 minutes behind). The limits in GET https://api.putlive.dev/v1/me and GET https://api.putlive.dev/v1/usage are the account's own numbers: room the user added to the account counts in them, so they can be bigger than the name of the plan suggests. Read them there and never work a limit out from the plan's name. When a site is stopped, tell the user, and do not republish.
  • A Free account that is not used for 90 days loses its publications. After two warnings by mail the sites go offline at 90 days (the files are kept for a while) and are deleted later. Using the API key, signing in, or a call through a connected app counts as use. Where anybody can make an account, an account that never had a site and was never used is mailed once and is removed at the same 90 days, but WHOLE (nothing of anybody's is on it, so no record stays); signing in keeps it. Tell the user if they made an account and have not used it.
  • A site can be switched off after a report or a check (quarantined). It cannot be updated then (forbidden); the user should contact support.

Errors

Every error is JSON: {"error":{"code","message","hint?","limit?","missing?"}}. Decide by code, never by the wording of message. Show the user the message and the hint when you cannot fix the cause yourself. This list is complete: it holds every code the API answers with.

  • invalid_request (400): the request is wrong. Read message and hint, fix the request, send it again. Do not repeat it unchanged. For a part of a file this includes an offset that is missing, given twice, not a whole number of bytes, or beyond the size of the file.
  • unauthorized (401): no valid key, or the sign-in code was wrong or too old. For a key: sign in again. For a code: request a new code first, then ask the user for it.
  • forbidden (403): refused on purpose: no invitation (where accounts are by invitation), a country that is closed, a throw-away address, the public mode on the Free plan, a feature that is not part of the account's plan (import by link), a switched-off site, or an upload session that ended. Do not retry. Tell the user; for an ended session start a new release.
  • not_found (404): no such site or release, or it is not this account's. Check the id with GET /v1/sites.
  • conflict (409): the request does not fit the state (for example "not live", "already live", "no earlier version"), or another change was being finished. If the message says another change is in progress, wait a few seconds and repeat once. For an upload, "This file continues at byte N." means that the offset of a part is not where the file continues, and "Another upload of this file is in progress." that a request for the same file is running: ask the state of the file, wait if you must, and send from its received (see "Send a big file in parts"). Otherwise change the request. Deleting a site that is switched off, waits for a person or has a report that its sender confirmed and we have not decided yet is refused with conflict: its files are kept until the case is closed. Show the user the message and hint; do not retry.
  • limit_exceeded (403): a limit is reached; error.limit names it: sites, storage, file_size, files, publishes_per_day, email_list, api_keys, domains or disk. For sites or storage offer to delete a site you no longer need, with the user's word; for domains, to remove a domain they no longer use. For file_size and files publish fewer or smaller files. For publishes_per_day wait or combine changes. For api_keys (signing in by a code: an account holds at most 20 active keys, and the refusal does not use the code up) ask the user to revoke a key they no longer use on the keys page of the dashboard, then call again with the same code, or ask for a new one. For disk the service is paused for a moment: try again later (minutes, not seconds). For email_list shorten the list of addresses and domains.
  • too_large (413): the request body is over its limit (error.limit). Send less: move large files from inlineFiles to files and upload them.
  • upload_incomplete (409): files are missing or arrived with another size or hash; error.missing lists the paths. Upload exactly those again, then finalize again. A part that is longer than what is left of the file, or that broke off, is this code too: ask the state of the file and go on from its received. When the hint says that a large file is still being checked, ask again in a few seconds: nothing needs to be sent again.
  • pending_review (409): the site waits for a person, so it cannot be changed now. Do not retry. Tell the user. (The answer of a publication that was itself held is not this error: it is a 200 with status pending_review, see above.)
  • rejected (403): the safety checks refused the site. Do not retry. Tell the user the reasons.
  • rate_limited (429): too many requests (30 imports by link a day per account, 120 a minute per key, 600 a minute for the whole account across all its keys, 1200 a minute for uploads, and per-hour limits on sign-in, reports and report confirmations: 5 codes an hour per address, 10 reports an hour and 60 confirmation attempts an hour per client network). Wait Retry-After seconds, then continue; slow down.
  • unavailable (503): the service or its storage cannot answer. Nothing was changed. Wait a little and repeat the same call, up to three times with growing pauses, then tell the user. On a sign-up it can also mean that sign-ups are paused for a moment while the service makes room (when it comes as you trade a code, the code is not used up: repeat the call later).
  • not_enabled (501): this instance does not offer what was asked (for example own domains, publishing a page without an account, or import by link, where they are not switched on). Nothing was changed, and asking again changes nothing. Do not retry and do not wait: tell the user what the message says.

Report a page

Anyone can report an address under putlive.page, or on a domain that is connected to a site, with POST https://api.putlive.dev/v1/reports (no key) or at https://putlive.dev/report. The reporter must confirm the receipt that is mailed to them.

The putlive API: error catalogue

Every answer of the API that is not a success has the same body (ApiErrorBody in @app/shared, ApiErrorBody in https://api.putlive.dev/openapi.json):

{ "error": { "code": "limit_exceeded", "message": "…", "hint": "…", "limit": "sites", "missing": ["a.png"] } }
  • code is one of the thirteen below. Decide by code, never by the wording of message.
  • message is a sentence for a person. hint (optional) says what to do next. limit (optional) is set by limit_exceeded and too_large. missing (optional) is set by upload_incomplete.
  • Every answer carries Cache-Control: no-store. rate_limited carries Retry-After (seconds), unauthorized carries WWW-Authenticate: Bearer.
  • The statuses are the same in the OpenAPI document at https://api.putlive.dev/openapi.json and in the guide at https://putlive.dev/llms.txt.

"Retry" below means the same request, unchanged. "Change the request" means the request was wrong or does not fit the state. "Ask the user" means: stop, tell the person in plain words what happened and what the options are.

CodeHTTPNext step in one word
invalid_request400change the request
unauthorized401sign in again / ask for a new code
forbidden403stop, ask the user
not_found404check the id
conflict409read the message; retry once or change the request
limit_exceeded403by limit
too_large413send less
upload_incomplete409upload missing again
pending_review409wait, ask the user
rejected403stop, tell the reasons
rate_limited429wait Retry-After
unavailable503retry with growing pauses
not_enabled501stop, tell the user; do not retry

Three codes share 403 (forbidden, limit_exceeded, rejected) and three share 409 (conflict, upload_incomplete, pending_review): the status alone does not tell them apart, code does.

invalid_request — 400

What happened. The request is malformed or breaks a rule: a body that is not JSON, an unknown key (the top level of a publication and of every body is strict: an unknown key is refused, never dropped), a wrong type, a path that cannot be published (.., a leading /, a backslash, an empty segment, two paths equal when letter case is ignored, __gate itself or anything under __gate/), a file that is also a folder, an empty file list, a sha256 that is not 64 lower-case hex characters, a path in both files and inlineFiles, an upload path that is not in the file list, an access setting the mode does not use (a password with link), a wait that is not a number, a malformed e-mail address, a report without the good-faith statement, a name for the address that breaks its rule (3 to 40 letters, digits and hyphens, no hyphen at either end, no two in a row, no refused word: the hint states it) or that is sent with a new version of a site (a name is set when the site is made, or with PATCH /v1/sites/{id}), or a domain name that cannot be used (an IP address, one word, a name with a star, a name of this service itself: the hint says what to type), or a call of the sign-in without request_id, or with one that is not 22 characters of A-Z, a-z, 0-9, - and _ (the caller makes this value itself and sends the same one when it asks for the code and when it trades it for a key; a copy of the skill or of the command line made before the field existed has to be updated), or, for a part of a file (PATCH /v1/uploads/{releaseId}/{path}?offset=N), an offset that is missing, given twice, not a whole number of bytes or beyond the size of the file ("The offset must be a whole number of bytes, zero or more."), or a Content-Length that is not a whole number of bytes.

Import by link (POST /v1/sites/import) answers invalid_request with ONE sentence for each of these, and never with a word the remote server wrote: the address is not a web address of one file, or it is longer than 2048 characters (its own sentence), or the site is not named by its id (siteId is a UUID, not the site's address or name), or it is a link into an assistant's own viewer ("This link opens a page inside an assistant's own viewer, not a file.": the same when the address REDIRECTS there, by an HTTP redirect within the few the service follows, as a short link or an older address of the same assistant does; a page that sends a browser on by its own markup or script is an ordinary page), or the service does not fetch from it, or the server could not be reached, did not hand out a file, sent the request on too many times, did not finish in time, gave an empty file or one of a kind the service does not publish (an archive is one), or the name of the fetched file looks like a secret or is a hidden file. The hint says what to do instead: download the file and publish it as a file.

What to do. Read message and hint: they say what is wrong. Fix the request and send it again. A refused publication stored nothing, so nothing needs cleaning up. Never send the same request again unchanged.

unauthorized — 401

What happened. On a call with a key: the Authorization: Bearer <key> header is missing, malformed, unknown or the key was revoked (all look the same from outside). On POST /v1/auth/token: the sign-in code is wrong, expired, already used, used up its 5 looks, or was asked for with another request_id than the one sent now (all look the same).

What to do. For a key: sign in again (POST /v1/auth/code, then POST /v1/auth/token) and use the new key. For a code: request a new code first, then ask the user for the new one. Do not ask the user for the same code twice in a row, and never guess a code: it has 8 digits, works once, for 10 minutes, and is looked at 5 times.

forbidden — 403

What happened. The request is understood and refused on purpose:

  • where accounts are by invitation, sign-up needs an invitation (hint: invite required): the address has no account and sent no valid invite, and the refusal comes when the code is asked for. Where anybody can make an account this never happens;
  • the country is closed (the United Kingdom at launch), or the address is a throw-away mail domain;
  • the public access mode on the Free plan;
  • a name of one's own for the address on an account whose plan does not include it (the message says it "is not part of this account's plan"); giving a name up is always allowed;
  • a domain of one's own on an account whose plan does not include it (the message says it "is not part of this account's plan");
  • import by link on an account whose plan does not include it (the message says it "is not part of this account's plan", and the hint says what to do instead: "Publish the file itself instead: an agent sends its content, and an assistant in a chat makes an upload link for a file that is not text.");
  • the site is switched off (quarantined) and cannot be updated, and its files cannot be taken home (GET /v1/sites/{id}/files);
  • the upload session of a release ended (it ends 30 minutes after the last upload request that passed its checks, and 24 hours after the release was created whatever arrives; a request that only asks where a file stands does not move it). A part, a whole PUT and finalize are refused so until the release is settled, within minutes of the end; after that they answer conflict ("This release is no longer open for uploads.", see below);
  • a page published without an account that is switched off, waits for a person or has a report that is not decided yet cannot be claimed (POST /v1/sites/claim): it is kept until that is settled.

What to do. Do not retry; it will be refused again. Ask the user. For an ended upload session create a new release (POST /v1/sites/{id}/releases) and upload the files again. For a switched-off site the user should contact support.

not_found — 404

What happened. There is no such site, release or report token, or it belongs to another account (the answer is the same, on purpose), or the id is not a UUID. A report token is also not_found when it was used or is older than 24 hours. Asking for the files of a site (GET /v1/sites/{id}/files) is not_found as well when the site never had a version that was live, and asking for a file is not_found when its path is not in the list of files. A claim token (POST /v1/sites/claim) is not_found when it never existed, was used already, or its page was deleted or refused by the safety checks, always with the same sentence ("This link no longer attaches a page to an account.").

What to do. Check the id with GET /v1/sites. Do not retry the same id. For a claim token do not try again: the page is gone or is already somebody's account.

conflict — 409

What happened. The request does not fit the state of the site, or another change was being finished:

  • "another change to this site or account is being finished": a lock was busy for 2 seconds;
  • "This name is taken.": the name for the address is the address of a site, or another account holds it (also after that account's site was deleted or its plan ended: a name is not given to another account, and one that breaks the terms can be taken back);
  • "This domain is already on your site": the account has that domain, on that site or on another of its sites (a domain is on one site of an account);
  • a rollback of a site that is not live, a version that is not kept, a version that is already live, or on the Free plan (which keeps only the live version, so there is no earlier one);
  • the storage holds files that are not in the release's file list;
  • "This release is no longer open for uploads.": a part, a whole PUT or a state ask for a release that is not uploading any more: its upload session ended and the release was settled (within minutes of the end), or it was finished. finalize of such a release answers its stored state instead (status superseded after an ended session), and GET /v1/releases/{id}/uploads answers its status with no files. It is the end of the release, not a state to ask again about: start a new one;
  • "This file continues at byte N.": the offset of a part (PATCH /v1/uploads/{releaseId}/{path}?offset=N) is not where the file continues, because the service holds more or fewer bytes of it than the client believes (a part that was cut off on the way delivered bytes the client never saw counted);
  • "Another upload of this file is in progress.": a request for the same file is running (a part or a whole PUT), or one that was cut off is still held on the way and not finished yet; two requests for one file at the same moment are never both taken;
  • "This path already holds another file in this release.": the release holds a file of that path whose size or SHA-256 is not the one of its file list;
  • a delete of a site that is switched off (quarantined), waits for a person (pending_review, or an update held for a person) or has a report that its sender confirmed and we have not decided yet: the files are kept until the case is closed, and the message says what to do.

What to do. Read message. If another change is being finished, wait a few seconds and repeat once. For an upload of a file in parts, except with the sentence "This release is no longer open for uploads." (start a new release), ask for the file's state (GET /v1/uploads/{releaseId}/{path}) and send from the received it names; where another upload of the file is in progress wait a little first, and never send two requests for one file at the same moment. Otherwise change the request: for a name that is taken ask the user for another one; for a closed release start a new one; for a delete refused for a site under review, show the user the message (reply to the e-mail about the site; the site can be deleted once the case is closed) and do not retry; for a rollback choose a kept version (the message lists them) or do not roll back.

limit_exceeded — 403

What happened. A limit of the plan or of the service is reached. error.limit says which:

limitMeaningWhat to do
sitesthe account has as many sites as its plan allowswith the user's word delete a site you no longer need (DELETE /v1/sites/{id}), or update an existing site
storagethe account would hold more than its plan's storagedelete a site you no longer need, or publish fewer or smaller files; files a safety check refused are kept 30 days and count (the hint says how to free them)
file_sizeone file is over the plan's file size (an import by link also: a fetched file over the plan's file size or over 100 MB; the message names the number)compress or split the file, or leave it out; download a file that is too large for an import and publish it as a file
filesmore than 2500 files in one sitebundle the site, or drop files it does not need
publishes_per_daythe plan's number of publications in 24 hours (four for each site the plan allows: 20 on Free); the message names itwait, and put several changes into one publication
domainsthe account has as many domains of its own as its plan allows (a name and its www. twin count once)with the user's word remove a domain they no longer use (DELETE /v1/sites/{id}/domains/{domainId})
email_listtoo many addresses and domains in an e-mail list (the plan's cap, and 1000 on any plan)shorten the list
api_keysan account holds at most 20 active keys, so POST /v1/auth/token cannot make another (the code is not used up by the refusal)the user revokes a key they no longer use, on the keys page of the dashboard, then calls again with the same code (or asks for a new one)
diskthe storage is nearly full, so publishing or uploading is paused for a moment (for Free accounts first)try again later, in minutes, not seconds; tell the user if it lasts. A part or a whole PUT answered so stops the upload loop at once (never a retry in a loop): run the upload again some minutes later, asking the file's state first and going on from received while the release's upload session is open (the refused request does not move its end), or starting a new release when it has ended

A page published without an account has smaller limits of its own, and the same three names: files (at most 100 files), file_size (10 MB a file) and storage (25 MB for the page); the message says the number and that an account gives more room. It has a fourth refusal that has NO limit name: it takes only the kinds of file a site is made of (pages, styles, scripts, pictures, fonts, sound, video, PDFs and plain data files such as text, JSON and CSV), and the first file of any other kind is refused with limit_exceeded and a message that names the file and says to publish it from an account. Leave the file out, or sign in and publish it from an account: there is nothing else to try. A claim (POST /v1/sites/claim) meets the limits a new site of the account would: sites, storage, file_size, publishes_per_day or disk; the page stays as it was.

For storage and domains the number that counts is the account's own: the plan's, and the room the user added to the account. GET /v1/usage gives storage.limitBytes, and limits.customDomains of GET /v1/me gives the number of domains. Never work either out from the name of the plan.

What to do. Follow the row. Ask the user before deleting anything. Do not retry the same request while the cause stands.

too_large — 413

What happened. The request body is over its limit; error.limit says the limit (for example 2097152 bytes for a publication, or 256 KB of inline files). The body is cut off while it is read, so a huge body is never stored.

What to do. Send less. Move large files from inlineFiles to files and upload them with PUT; split an e-mail list.

upload_incomplete — 409

What happened. Files are missing, or arrived with another size or hash than the file list says, or an upload announced another Content-Length, was longer than announced, or stopped early. For a part of a file: a body, or a Content-Length, longer than what is left of the file, or a part that broke off (the connection closed, a proxy ended the request): the bytes that arrived are kept, and the file's state says how many. error.missing lists the paths (at most 100; the message counts the rest). Nothing is live yet. A file whose bytes are all there but is still being checked is not a file of the release yet: when that is the only thing missing, finalize answers this code with the hint "A large file is still being checked after its last byte arrived. Ask again in a few seconds." A file whose bytes are all there and right but could not be placed is not being checked: its state says problem: "stuck", and finalize answers this code with the hint "A large file holds every byte but could not be finished. Send nothing again: ask the file's state in a few minutes (that ask makes the service try again), then call finalize again."

What to do. Upload exactly the listed paths again with PUT /v1/uploads/{releaseId}/{path} (each path segment percent-encoded), then call finalize again. For a file sent in parts ask its state first and go on from the received it names, never from what was believed sent. When the hint says that a large file is still being checked, send nothing: ask again in a few seconds. When it says that a large file holds every byte but could not be finished, send nothing either: ask the file's state in a few minutes (the service tries to finish a file again when its state is asked, or a part of it is sent), then call finalize again. If the file changed while you worked, recompute its size and hash and start a new release.

pending_review — 409

What happened. The site waits for a person to look at it (a publication of a Free account was held: a password field, links that could not be checked, a page that may imitate another service). It cannot be changed until that is done.

What to do. Do not retry in a loop. Tell the user that the publication is waiting for a review and why (reasons of the publication answer). A publication that waits too long for a person (72 hours) is refused.

Not to be confused with the status of a publication's answer. A publish or finalize call whose release was itself held answers HTTP 200 with status: "pending_review" and reasons (it is not this error): stop, tell the user that a person will look at it and that the decision comes by mail. For an update the version that was live keeps serving meanwhile (site.status stays live). status: "checking" (HTTP 202) is different: the checks are still running, call finalize again.

rejected — 403

What happened. The safety checks refused the site (malware, a dangerous link, a page that imitates another service). It cannot be updated. reasons of the publication answer say why in plain sentences.

What to do. Stop. Show the reasons to the user. Do not send the same files again. If the user thinks it is a mistake they can contact support. A first publication that was refused leaves a site in the status rejected; delete it to free its storage.

rate_limited — 429

What happened. Too many requests. The budgets: 120 requests a minute per API key for everything except uploads, 600 a minute for the whole account across all its keys, 1200 a minute per key for uploads (a PUT, a PATCH or a GET of /v1/uploads/... counts as one); per hour: 5 sign-in codes per e-mail address, 20 per client network, 20 code redemptions per client network, 10 reports per client network, 60 report-confirmation attempts per client network. Taking files home (GET /v1/sites/{id}/files/{path}) has a budget of bytes besides these: twice the storage of the account's plan in one day (a window that starts at 00:00 UTC). A file that would pass it is rate_limited, Retry-After counts the seconds to the end of that day, and the hint says when to run the command again; the list of files is not counted. Changes of the name of an address are bounded too: 10 calls a day per account (the same window of 00:00 UTC), and so is adding a domain: 20 calls a day per account. Asking for a look at a domain's DNS (POST /v1/sites/{id}/domains/{domainId}/check) has a budget of 6 calls a minute for each domain. Import by link (POST /v1/sites/import) has a number of its own: 30 imports started in a day (the same window of 00:00 UTC) for each account; a place is taken just before the serving side is asked, so a request whose address was handed to it costs one also when the serving side then refused the address or the file or no answer came, because this number is what bounds how much an account can try, while a request refused before that (an address of the wrong shape, a link on a viewer's host as given, a plan without it, storage nearly full) or that found the serving side busy or switched off costs none. Past it the answer is rate_limited, Retry-After counts the seconds to the end of the day, and the file can be published as a file instead. Another import running at the same moment is rate_limited too ("Another import is running. Try again in a moment.", a wait of a few seconds), and that one costs no place.

What to do. Wait Retry-After seconds (also in the header), then continue. Slow down: space the calls and upload fewer files in parallel.

One rate_limited is not about the calls of the person who is asking: where sign-up is open, POST /v1/auth/token for an address that has no account yet can answer it with the message "New accounts cannot be made right now. Please try again later." (the service limits how many accounts one network, one mailbox and the whole service make in a day or an hour; the answer never says which, and an address that already has an account is never refused for it). When the answer names a wait of a few seconds, the service was only busy making other accounts and the code is given back: repeat the trade with the same code after that wait. A longer wait is a cap and the code is used up: wait Retry-After seconds, then begin again by asking for a new code with a new request_id. A code that was used up is answered like a wrong code (unauthorized): then ask for a new one.

Starting a page without an account (POST /v1/anonymous/uploads, no key) is limited by day: 3 pages for one client network, and a number for the whole service. Past either, the answer is rate_limited with Retry-After (the seconds until the day ends); tell the user to sign in, or to try again tomorrow.

unavailable — 503

What happened. The service, or the storage behind it, could not answer. Nothing was changed: a change the storage must enforce (an access change, a delete, a publication) is made on the storage first and is not recorded if the storage fails. It can also mean that the service is not set up to publish, that the checks could not be started (finalize again; a request that carried its files inline is told that nothing was published and nothing changed, and is sent again), or, on a sign-up, that sign-ups are paused for a moment while the service makes room (when this comes at POST /v1/auth/token, the code is not used up: repeat the call later).

Starting a page without an account is also unavailable while the storage is nearly full and while the service holds as many such pages as it will hold at once (they are deleted after a day, so this passes). A claim (POST /v1/sites/claim) is unavailable when the storage behind the service could not take the change: the page was NOT added to the account, and the same call can be repeated.

What to do. Retry the same request after a pause, up to three times with growing pauses (for example 2, 10 and 30 seconds). If it still fails, tell the user. Do not start a second release for the same files while the first may still be open.

not_enabled — 501

What happened. This instance does not offer what was asked, and it will not until its operator switches it on. Nothing was changed. It is not about the account or its plan, and it does not pass with time. Adding or looking at a domain of your own answers it, with the message "Own domains are not switched on for this service yet.", where the service does not offer own domains.

Publishing a page without an account answers it too, with the message "Publishing without an account is not switched on for this service yet.", where the service does not offer it: that is POST /v1/anonymous/uploads, the link's list of files (POST <link>/publish) and its finish (POST <link>/finalize), the three calls that read the switch. A page whose files were still being uploaded when the switch was closed is not finished, and a claim (POST /v1/sites/claim) never answers it.

Import by link answers it too, with the message "Import by link is not switched on for this service yet.", where the service does not offer it (POST /v1/sites/import, and the command and the tool that call it). It is read before the account's plan is: a closed door says the same to every account, and carries the same hint as a plan without the feature: "Publish the file itself instead: an agent sends its content, and an assistant in a chat makes an upload link for a file that is not text."

What to do. Do not retry, and do not wait: asking again changes nothing. Stop, and tell the user in plain words what the message says. The command-line client and the skill's script do the same: they do not wait or repeat it, and they exit with 7.

What a visitor sees

These are not API errors, but an agent is asked about them. A published site answers visitors with 404 for an address it does not know, 410 for a site that was taken offline (unpublished) or whose access expired or was revoked, 451 for a closed country or a site that was switched off after a report or a check (quarantined), and 509 when the account has used its monthly transfer. GET /v1/usage shows transfer.usedBytes, transfer.limitBytes and transfer.resetsAt; the site is served again from that moment.

An account that is not on the Free plan gets its 509 later: its sites are served until the month's transfer reaches three times transfer.limitBytes, and the stop is lifted at the next count after that limit grows (a count can be 30 minutes behind).