Skip to main content

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​

ParameterTypeRequiredDescription
idintegerYesNotification 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​

StatusCodeDescription
401unauthorizedMissing or invalid authentication token
404not_foundNotification not found or does not belong to user
500internal_errorServer failed to delete notification