Skip to content

Create an endpoint for newsletter subscriptions #212

@shubhsheth

Description

@shubhsheth

Add an endpoint in the API that take in a POST request with following fields:

  • First Name
  • Last Name
  • Email

Validate this input using express-validator

Send this information to sendgrid mailing list using Sendgrid API, link to sendgrid documentation (https://docs.sendgrid.com/api-reference/contacts-api-lists/add-a-single-recipient-to-a-list)

Notes:

  • May need to create a test Sendgrid account to test the changes

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions