Secure API & CLI for developers

Expiring links from your terminal and your pipelines

Send a build log, a key or a config with one request. You get back a link that deletes itself after an hour, a week, or the first read.

  • REST + CLI
  • Expiry 1h–30d
  • Burn after reading
  • 5,000 requests/day
curl https://api.zerohost.net/v1/share \
  -H "X-API-Key: $ZEROHOST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "DB_PASSWORD=hunter2",
       "expires_in": "1h",
       "burn_after_reading": true}'
201 Created
{
  "url": "https://zerohost.net/share/9f2c…",
  "expires_at": "2026-11-21T10:42:00Z",
  "expires_in": 3600
}

Three steps, then it’s gone

  1. 01

    Send it

    POST the text, or pipe it to the CLI. Up to 1 MB, encrypted in transit and at rest.

  2. 02

    Share the link

    Drop it in the PR, the incident channel or the ticket. Add a password if the channel is wide.

  3. 03

    It deletes itself

    At expiry, or on first read with burn after reading. Gone for good within a day, nothing to rotate later.

Where it fits

Real workflows, each a few lines.

The API at a glance

Authenticate with an X-API-Key header. The full reference has every field and error.

EndpointDoes
POST /v1/shareCreate a share, returns its URL
GET /v1/share/{id}Read a share (counts as the read for burn)
POST /v1/share/{id}Read a password-protected share
GET /v1/share/{id}?meta=1Expiry and flags, never consumes it
FieldValues
textUp to 1 MB
expires_in1h 6h 24h 3d 7d 30d
passwordOptional
burn_after_readingtrue / false

The CLI

Pipe anything into it. Works in scripts, CI and over SSH.

npm i -g zerohost-cli
zerohost --login
FlagDoes
-f, --fileShare a file
-e, --expires1h to 30d
-p, --passwordRequire a password
-b, --burnDelete on first read
-c, --copy / -q, --qrCopy the link / show a QR code

What you need

Free

$0

The web app: 10 shares a day, expiry up to 24 hours, passwords.

Use the web app

Pro

$7/month

Unlimited shares, API and CLI access (5,000 requests a day), expiry up to 30 days, burn after reading.

Get an API key