---
title: "Invalidate a download token immediately"
method: POST
path: "/pubshare/revoke"
tags: ["agent", "transfer"]
---

# Invalidate a download token immediately

`POST /pubshare/revoke`

## Request

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

Note: requires the local SRIFT daemon (http://127.0.0.1:3822) — revokes a token registered in that daemon's in-process session state, which is not available on the public https://srift.app host.

## Request body

- object
  - `token` string, required

## Response `200`

OK

## Other responses

- `404`: Unknown token

---

[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)
