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 is a public endpoint and does not require authentication.
Request Body
Email address to subscribe. Must be a valid email format.
The unique identifier of the blog to subscribe to
The subdomain of the blog to subscribe to (e.g., “myblog”)
The custom domain of the blog to subscribe to (e.g., “blog.example.com”)
You must provide at least one of: blogId, subdomain, or customDomain to identify the blog.
Response
Indicates whether the subscription was successful
Human-readable message describing the result. Possible values:
- “Subscribed successfully” - New subscription created
- “Subscription reactivated” - Previously unsubscribed email was reactivated
- “Already subscribed” - Email is already an active subscriber
Example Request
curl -X POST https://api.dyeink.com/api/subscribers/subscribe \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"subdomain": "myblog"
}'
Example Response
{
"ok": true,
"message": "Subscribed successfully"
}
Error Responses
Missing or invalid email address{
"error": "Email is required"
}
or{
"error": "Invalid email format"
}
Blog with the specified identifier does not exist{
"error": "Blog not found"
}
500 Internal Server Error
Failed to process the subscription{
"error": "Failed to subscribe"
}
Notes
- Email addresses are automatically converted to lowercase for consistency
- If a subscriber previously unsubscribed, this endpoint will reactivate their subscription
- New subscriptions start with
verified: false status
- The endpoint prevents duplicate active subscriptions to the same blog