Letterdrop
Search…
Webhooks
Learn how to use webhooks to get alerts on subscriber and post events.

Checking for the API Key

We send a POST request to the webhook endpoints you specify. To verify that the request came from Letterdrop, check for a field in the header of the request with key api-key and make sure it matches the value in your Settings.
If the API Key is absent, you're getting hit up with requests from our evil twin from another dimension. Do not trust him under any circumstances!

New post

Triggers when a new post is published.
Key
Value
Type
id
Post ID
String
title
Title of the post
String
subtitle
Subtitle of the post
String
textBody
Short sample of post body in plain text
String
htmlBody
Post body in HTML
String
url
URL of post
String
publishedOn
Date post was published on
Date
type
Whether the post is paid or free. Takes values paid or free.
String
coverPhoto
Cover photo URL
String
thumbnail
Thumbnail image URL
String
status
Whether the post is published or updated. Takes values published or updated.
String
tags
List of tags
List
isPrivate
Whether the post is visible on blog
Boolean

Sample payload

1
{
2
"id": "6030dc61a21da91db1d593c0",
3
"title": "Title",
4
"subtitle": "Subtitle",
5
"textBody": "Lorem ipsum dolor sit amet,",
6
"htmlBody": "<p>Lorem ipsum dolor sit amet,</p>",
7
"url": "https://letterdop.com/@updates/my-new-post",
8
"publishedOn": "2020-10-20T12:18:13.095Z",
9
"type": "free",
10
"coverPhoto": "https://app.letterdrop.com/resources/images/default_cover_photo.jpg",
11
"thumbnail": "https://app.letterdrop.com/resources/images/thumbnail.jpg",
12
"status": "published",
13
"tags": ["chocolate", "food", "restaurant"],
14
"isPrivate": false
15
}
Copied!

Subscriber added

Triggers when a new email was added to your subscriber list.
Key
Value
Type
email
Email of subscriber
String
signedUpOn
Date user subscribed on
Date
planType
Paid or free
String

Sample payload

1
{
2
"email": "[email protected]",
3
"signedUpOn": "2020-10-20T12:07:13.629Z",
4
"planType": "paid"
5
}
Copied!

Subscriber removed

Triggers when an email was removed from your subscriber list.
Key
Value
Type
email
Email of subscriber
String
unsubscribedOn
Date user unsubscribed on
Date
planType
Paid or free
String

Sample payload

1
{
2
"email": "[email protected]",
3
"unsubscribedOn": "2020-10-20T12:07:13.629Z",
4
"planType": "paid"
5
}
Copied!

Subscriber updated

Triggers when a subscriber is updated.
Key
Value
Type
email
Email of subscriber
String
field
Updated field
String
value
New value of the field
String

Sample payload

1
{
2
"email": "[email protected]",
3
"field": "name",
4
"value": "john"
5
}
Copied!

Referral tier achieved

Triggers when a subscriber makes enough referrals to unlock a new level in your referral tiers.
Key
Value
Type
email
Email of subscriber
String
unsubscribedOn
Date user unsubscribed on
Date
planType
Paid or free
String

Sample payload

1
{
2
"email": "[email protected]",
3
"unsubscribedOn": "2020-10-20T12:07:13.629Z",
4
"planType": "paid"
5
}
Copied!
Last modified 3mo ago