API Endpoints
Learn how to use the API to manage your subscribers.
List posts
POST
https://api.letterdrop.com/api/v1/posts
Get a summary of all your posts to be displayed on your home page. The API is paginated. Start with offset: 0
and a fixed small value for limit
. We recommend 5. Then you can query again, but this time, increment the offset to 5 to get the next 5 posts. You can check if there are most posts to query by checking if hasNextPage
in the response is true
.
Headers
Name | Type | Description |
---|---|---|
api-key | string | API key that is unique to your workspace |
Request Body
Name | Type | Description |
---|---|---|
query | string | Search for posts containing these words |
offset | number | Index of first post to return |
limit | number | Number of posts to return |
Get post
POST
https://api.letterdrop.com/api/v1/post/get/:{id}
Get a single post.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The ID of the post |
Headers
Name | Type | Description |
---|---|---|
api-key | string | API key that is unique to your workspace |
Draft post
POST
https://api.letterdrop.com/api/v1/post/draft
Draft a post.
Headers
Name | Type | Description |
---|---|---|
api-key | string | API key that is unique to your workspace |
Request Body
Name | Type | Description |
---|---|---|
html | string | Body of your post in HTML format |
subtitle | string | Subtitle of your post |
title | string | Title of your post |
Get project
POST
https://api.letterdrop.com/api/v1/project/get/:{id}
Get project details.
Headers
Name | Type | Description |
---|---|---|
api-key* | string | API key that is unique to your workspace |
Request Body
Name | Type | Description |
---|---|---|
id | string | Project ID |
Create idea
POST
https://api.letterdrop.com/api/v1/idea/new
Create a new idea.
Headers
Name | Type | Description |
---|---|---|
api-key* | string | API key that is unique to your workspace |
Request Body
Name | Type | Description |
---|---|---|
title* | string | Idea title |
suggestedBy* | string | Email address of the person who suggested the idea |
description | string | Description of the idea. This is where your content brief goes. |
keyword | string | Keyword associated with the idea |
labels | list | List of labels |
Assign idea
POST
https://api.letterdrop.com/api/v1/idea/assign
Create a project from an idea.
Headers
Name | Type | Description |
---|---|---|
api-key* | string | API key that is unique to your workspace |
Request Body
Name | Type | Description |
---|---|---|
id* | string | Idea ID |
publishOn* | date | Date you want to target publishing your content. |
assignedTo | string | Email address of the user writing the content. |
approvers | List | List of emails of approvers |
Last updated