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
The unique identifier of the subscriber to delete
Response
Indicates whether the subscriber was successfully deleted
Example Request
curl -X DELETE https://api.dyeink.com/api/subscribers/507f1f77bcf86cd799439011 \
-H "Cookie: session=your-session-token"
Example Response
Error Responses
User is not authenticated{
"error": "Not authenticated"
}
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