---
title: "Revoke a notification endpoint"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › notifications

`DELETE /notifications/endpoints/{endpointId}`

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`, format `API key`
- `cookieAuth`, apiKey, in cookie

## Path parameters

- `endpointId` (`deleteNotificationEndpoint.path.endpointId`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url '<base-url>/api/v1/notifications/endpoints/<endpointId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/notifications/endpoints/<endpointId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/notifications/endpoints/<endpointId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{}
```

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`deleteNotificationEndpoint.response.401.error`; string, required)
- `ok` (`deleteNotificationEndpoint.response.401.ok`; boolean, optional)
- `detail` (`deleteNotificationEndpoint.response.401.detail`; string, optional)
- `code` (`deleteNotificationEndpoint.response.401.code`; string, optional)

### 404

Endpoint not found

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`deleteNotificationEndpoint.response.404.error`; string, required)
- `ok` (`deleteNotificationEndpoint.response.404.ok`; boolean, optional)
- `detail` (`deleteNotificationEndpoint.response.404.detail`; string, optional)
- `code` (`deleteNotificationEndpoint.response.404.code`; string, optional)


Source: https://tryshiba.dev/reference/api/notifications/deleteNotificationEndpoint/index.md
