This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
JaymeP edited this page Feb 10, 2022
·
26 revisions
Brief summary of each API's endpoints. For detailed reference, click the Full API reference
link on this page or in the sidebar.
Endpoints to retrieve internal information about campaigns being supported by ProgramEquity. Future implementation will enable adding data to the campaigns
table.
Query | Result |
---|---|
GET /api/campaigns |
Returns list of Campaigns |
GET /api/campaigns/:id |
Returns a single campaign object based on id path parameter. |
POST /api/campaigns
|
Provides ability to integrate and submit data to the campaigns database table. |
Endpoints related to the letters uploaded per campaign into Lob.
Query | Result |
---|---|
GET /api/letter_versions/:campaignId |
Provides ability to retrieve data from letter_versions database based on the associated campaignId path parameter. For example, display_letter uses it to return a Lob HTML object. |
GET /api/letter_versions/??? |
Returns a single Letter object based on some parameter. |
POST /api/letter_versions/??? |
Provides ability to integrate and submit data to the letter_versions database table. |
Endpoints to validate constituent/volunteer residential addresses and send physical letters/postcards via the Lob API.
Query | Result |
---|---|
GET /api/lob/templates/:templateId |
Returns a single Letter Template object for a campaign based on templateId path parameter.GET /api/lob/:templateId |
POST /api/lob/addressVerification |
Verifies if a single Address object is considered a valid, deliverable, residential address within the United Status. Expected POST body example:{"line1":"123 Street Name","line2":null,"city":"SomeCity","state":"CA","zip":"12345-6789"}
|
Endpoints to retrieve public information about government representatives via the Google Civic API.
Query | Result |
---|---|
GET /api/representatives/:zipCode |
Returns list of Representatives based on zipCode path parameter. |
Endpoints related to constituents/volunteers.
Query | Result |
---|---|
GET /api/volunteers/:volunteerId |
Returns a single Volunteer object based on the volunteerId path parameter. |
POST /api/volunteers/??? |
Provides ability to integrate and submit data to the volunteers database table. |
- Home
- API Quick Reference
- Amplify API reference
- Lob Mailing API integration
- Stripe API integration