# Privacy and versions

Keep a stable URL for the latest artifact or share a link pinned to one version.

## Choose visibility

New artifacts are public by default. Anyone with a public URL can read it. Artifact responses tell search engines not to index them. For an owner-only page, publish privately:

```sh
pushbag upload report.html --private --json
pushbag open ARTIFACT_ID
```

The private URL requires the owner's session. The `open` command prints a temporary grant URL. Treat that link as a credential until it expires.

## Publish an update

Save the upload's `id`. Use it to append a single file to the artifact. Appending preserves visibility unless you explicitly change it.

```sh
pushbag upload report.html --artifact ARTIFACT_ID --json
```

The returned `url` resolves to the latest version. The `versionUrl` ending in `/v/N` opens that specific version while retained. An upload notification links the exact version and carries no private view grant.

## Retention and expiry

Retention counts from the later of the last view and the last publish. Use `pushbag retention ARTIFACT_ID 2d` for a shorter window. A fixed expiry such as `pushbag expires ARTIFACT_ID 12h` applies even to an active artifact. See [plan limits](/docs/limits).

> **Warning:** Anyone who receives a temporary grant URL can open the private artifact while the grant is valid.

## Choose the link you send

| Destination | What happens after another upload |
| --- | --- |
| Stable artifact URL | A reviewer who refreshes sees the latest version. |
| Pinned version URL | A reviewer sees the specified revision while it exists. |
| Private grant from `pushbag open` | A temporary credential allows the holder to open the private artifact. |

For a review thread, copy the `versionUrl` from `pushbag upload report.html --private --json`. To revise the same report use the artifact's `id`, not its URL slug or version number. The new file must have the same kind. A private notification never upgrades its reader's permissions.

GitHub CLI supports attaching images and videos to PR comments with `gh pr comment --attach`. Use a pushbag version URL for HTML reports, a review on another forge, GitHub Enterprise Server, or a link pinned to a particular revision. See the [GitHub CLI manual](https://cli.github.com/manual/gh_pr_comment).

## Delete and recover

```sh
pushbag delete ARTIFACT_ID --json
pushbag restore ARTIFACT_ID --json
```

Run delete when you want to withdraw the artifact. Keep its ID and the returned `restorableUntil` deadline. Run restore if you change your mind. Restore requires retained files, a plan that allows the artifact kind and room for one active artifact. Restoring returns the stable URL. Once the underlying files have been removed, restore reports that they cannot be recovered.

## Delete your account

Deleting your account from Settings in the mobile app or the dashboard removes every artifact, channel, key and device at once, with no restore window. See [deleting your account](/delete-account) for what is deleted and what is kept.
