Alert recipients are the people or external services that AgroPulse notifies when an alert is dispatched for a greenhouse. Each recipient is scoped to a single greenhouse and can be reached by email, SMS phone number, or WhatsApp message through the CallMeBot gateway. Recipients can be temporarily silenced without being deleted by toggling theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/diarpicu2022-commits/backend-AgroPulse/llms.txt
Use this file to discover all available pages before exploring further.
active flag.
Endpoints
All recipient endpoints are nested under the greenhouse resource:POST, DELETE) require the authenticated user to own the greenhouse. Requests that fail the ownership check receive a 403 Forbidden response.
List recipients for a greenhouse
Returns all alert recipients configured for the specified greenhouse.The greenhouse ID whose recipients you want to list.
Array of recipient objects for the greenhouse.
Add a recipient
Creates a new alert recipient for the specified greenhouse. The caller must own the greenhouse.The greenhouse ID to add a recipient to.
Display name for the recipient. Maximum 120 characters.
Email address for alert delivery.
Phone number for SMS delivery. Maximum 30 characters.
CallMeBot WhatsApp API key. Maximum 60 characters. Store this securely — see the warning above.
active set to true automatically.
403 Forbidden if the authenticated user does not own greenhouse {id}.
Delete a recipient
Permanently removes an alert recipient from a greenhouse. The caller must own the greenhouse.The greenhouse ID the recipient belongs to.
The ID of the recipient to delete.
{ "deleted": true } on success. Returns 404 Not Found if the recipient does not exist or does not belong to the specified greenhouse. Returns 403 Forbidden if the caller does not own the greenhouse.