Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint to check if subscriber with email exists #1603

Open
4 tasks
TylerMatteo opened this issue Nov 21, 2024 · 0 comments · May be fixed by #1604
Open
4 tasks

Endpoint to check if subscriber with email exists #1603

TylerMatteo opened this issue Nov 21, 2024 · 0 comments · May be fixed by #1604
Assignees

Comments

@TylerMatteo
Copy link
Contributor

TylerMatteo commented Nov 21, 2024

Create endpoint in ZAP Search API that can be used to check if there is a subscriber with a given email address.

  • Create new GET endpoint at /subscribers/email/<email>
  • Endpoint should look up Sendgrid contact with the given email and check if it belongs to the SG list for the current environment. If it does, return a 204 response with no response body
  • If the given email is not a valid email address, return 400 response
  • If email is valid but not contact is found, or a contact is found that doesn't belong to the Sendgrid list, return 404.
@pratishta pratishta self-assigned this Nov 25, 2024
@pratishta pratishta linked a pull request Nov 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants