---
title: "Revoke Share Link"
method: DELETE
path: "/api/agents/{agent_id}/share-links/{link_id}"
tags: ["agent-urls"]
---

# Revoke Share Link

`DELETE /api/agents/{agent_id}/share-links/{link_id}`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/share-links/{link_id}`
- Auth: HTTP bearer

Revokes one link. 404 when no live link with that id belongs to the agent.

## Path parameters

- `agent_id` string, required
- `link_id` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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