---
title: "Revoke access to all share links or one specific."
method: PUT
path: "/message-sharelinks/revoke-access"
tags: ["Message Share Links"]
---

# Revoke access to all share links or one specific.

`PUT /message-sharelinks/revoke-access`

## Request

- Base URL: `https://api.carbonvoice.app`
- URL: `https://api.carbonvoice.app/message-sharelinks/revoke-access`
- Auth: one of:
  - API key in header `pxtoken`
  - OAuth 2 (implicit, authorization URL `https://api.carbonvoice.app/oauth/authorize`)

Only the creator of original message can revoke access to all share links by: shared_message_id

## Request body

- RevokeAccessToShareLink
  - `share_link_id` string, nullable: ID of Message Share Link that will be revoked access.
  - `shared_message_id` string, nullable: Message ID that was Shared. (Will revoke access to all share links that have this shared_message_id)

## Response `204`

## Other responses

- `403`

---

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