Sendy API
Sendy's API is based on simple HTTP POST. Use the API to integrate Sendy programmatically with your website or application. We're working to include more APIs.
Subscribe
This method adds a new subscriber to a list. You can also use this method to update an existing subscriber.
On another note, you can also find a subscribe form code in the individual lists under View all lists section.
URL
http://your_sendy_installation/subscribe
PARAMETERS (POST)
Note: Sendy 1.0.8 or later supports custom fields. To add values to your desired custom field, use the personalization tag of the custom field as the parameter. Say if your custom field tag is [Birthday,fallback=], you can use the parameter, 'Birthday' to add values to this custom field.
nameuser's name is optionalemailuser's emaillistthe list id you want to subscribe a user to. This encrypted & hashed id can be found under View all lists section named IDbooleanset this to "true" so that you'll get a plain text response
RESPONSE (Plain text)
Success: true
Error: Some fields are missing.
Error: Invalid email address.
Error: Already subscribed.
Unsubscribe
This method unsubscribes a user from a list.
URL
http://your_sendy_installation/unsubscribe
PARAMETERS (POST)
emailuser's emaillistthe list id you want to unsubscribe a user from. This encrypted & hashed id can be found under View all lists section named IDbooleanset this to "true" so that you'll get a plain text response
RESPONSE (Plain text)
Success: true
Error: Some fields are missing.
Error: Invalid email address.
Subscription status
This method gets the current status of a subscriber (eg. subscribed, unsubscribed, bounced, complained).
URL
http://your_sendy_installation/api/subscribers/subscription-status.php
PARAMETERS (POST)
api_keyyour API key, available in Settings.emailuser's emaillist_idthe id of the list this email belongs to. This encrypted id can be found under View all lists section named ID
RESPONSE (Plain text)
Success: Subscribed
Success: Unsubscribed
Success: Unconfirmed
Success: Bounced
Success: Soft bounced
Success: Complained
Error: No data passed
Error: API key not passed
Error: Invalid API key
Error: Email not passed
Error: List ID not passed
Error: Email does not exist in list
Active subscriber count
This method gets the total active subscriber count.
URL
http://your_sendy_installation/api/subscribers/active-subscriber-count.php
PARAMETERS (POST)
api_keyyour API key, available in Settings.list_idthe id of the list you want to get the active subscriber count. This encrypted id can be found under View all lists section named ID
RESPONSE (Plain text)
Success: You'll get an integer of the active subscriber count
Error: No data passed
Error: API key not passed
Error: Invalid API key
Error: List ID not passed
Error: List does not exist

Designed by