Skip to main content
DELETE
/
api
/
subscribers
/
:id
Delete Subscriber
curl --request DELETE \
  --url https://api.example.com/api/subscribers/:id
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/subratomandal/dyeink/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

This endpoint requires authentication. Include a valid session cookie or authentication token.

Path Parameters

id
string
required
The unique identifier of the subscriber to delete

Response

success
boolean
required
Indicates whether the subscriber was successfully deleted

Example Request

cURL
curl -X DELETE https://api.dyeink.com/api/subscribers/507f1f77bcf86cd799439011 \
  -H "Cookie: session=your-session-token"

Example Response

{
  "success": true
}

Error Responses

401 Unauthorized
User is not authenticated
{
  "error": "Not authenticated"
}
404 Not Found
Blog not found for the authenticated user
{
  "error": "Blog not found"
}
orSubscriber not found or doesn’t belong to the user’s blog
{
  "error": "Subscriber not found"
}
500 Internal Server Error
Failed to delete the subscriber
{
  "error": "Failed to delete subscriber"
}

Notes

  • This endpoint permanently deletes the subscriber record from the database
  • Users can only delete subscribers from their own blog
  • The endpoint verifies ownership before allowing deletion
  • For a public unsubscribe option, see the POST /api/subscribers/unsubscribe endpoint

Build docs developers (and LLMs) love