---
title: "Register an additional file for public download in the current session"
method: POST
path: "/pubshare"
tags: ["agent", "transfer"]
---

# Register an additional file for public download in the current session

`POST /pubshare`

## Request

- Base URL: `http://127.0.0.1:3822`
- URL: `http://127.0.0.1:3822/pubshare`
- Auth: none required

Like /quick-share, but requires an already-active session. Use this to mint multiple download links from one daemon session. Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — filesystem access to `filePath` is not available on the public https://srift.app host.

## Request body

- object
  - `filePath` string, required
  - `maxDownloads` integer
  - `ttlMs` integer
  - `encrypt` boolean: End-to-end encrypt; the key rides in the #k= fragment
  - `password` string: Password-protect (implies encrypt)
  - `name` string: Recipient-visible file name

## Response `200`

OK

## Other responses

- `409`: No active session

---

[API](https://skmtc.dev/srift/apis/srift-api.md) · [All operations](https://skmtc.dev/srift/apis/srift-api/llms.txt) · [OpenAPI document](https://skmtc.dev/srift/apis/srift-api/revisions/efe3ae285f45?raw)
