DELETE /api/v1/notifications/{id}
Deletes a single notification. The notification must belong to the authenticated user.
Authentication
Required. Bearer token in Authorization header.
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Notification ID |
Example
curl -X DELETE https://intotes.com/api/v1/notifications/1 \
-H "Authorization: Bearer <access_token>"
Response
200 OK
{
"message": "notification deleted successfully"
}
Errors
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid authentication token |
| 404 | not_found | Notification not found or does not belong to user |
| 500 | internal_error | Server failed to delete notification |