API Endpoints
Learn how to use the API to manage your subscribers.
post
https://app.letterdrop.com
/api/v1/subscriber/add
Add subscriber
Field Name | Type | Description |
name | string | Name of subscriber |
location | string | Location of the subscriber |
title | string | Job title of the subscriber |
companyName | string | Name of the company subscriber is employed at |
companySize | number | Number of employees at company the subscriber is employed at |
industry | string | Industry the subscriber is in |
twitter | string | URL of Twitter profile for subscriber |
twitterFollowers | number | Number of Twitter followers of subscriber |
linkedin | string | URL of LinkedIn profile for subscriber |
github | string | URL of GitHub profile for subscriber |
facebook | string | URL of Facebook profile for subscriber |
as well as any custom fields you've defined.
A sample object looks like this:
additionalData: {
name: "Sundar Pichai",
location: "Mountain View, CA",
twitter: "https://twitter.com/sundarpichai",
twitterFollowers: 3300000,
company: "Google,
companySize: 120000,
industry: "Internet",
linkedin: "https://www.linkedin.com/in/sundarpichai"
}
If you want to add your own custom fields and data, just create the fields in Letterdrop and then add the data in
additionalData
. For example, if you created a custom field Downloaded Whitepaper
, you could pass a value for it like so:additionalData: {
name: "Sundar Pichai",
location: "Mountain View, CA",
twitter: "https://twitter.com/sundarpichai",
twitterFollowers: 3300000,
company: "Google,
companySize: 120000,
industry: "Internet",
linkedin: "https://www.linkedin.com/in/sundarpichai",
"Downloaded Whitepaper": true
}
get
https://app.letterdrop.com
/api/v1/:domain/subscribe
Add subscriber
post
https://app.letterdrop.com
/api/v1/subscriber/add/:domain
Add subscriber through form
post
https://app.letterdrop.com
/api/v1/subscriber/remove
Remove Subscriber
post
https://app.letterdrop.com
/api/v1/posts
List posts
post
https://app.letterdrop.com
/api/v1/post/get/:{id}
Get post
post
https://app.letterdrop.com
/api/v1/post/draft
Draft post
post
https://app.letterdrop.com
/api/v1/project/get/:{id}
Get project
post
https://app.letterdrop.com
/api/v1/idea/new
Create idea
post
https://letterdrop.com
/api/v1/idea/assign
Assign idea
Last modified 5mo ago