- Endpoint:
https://mka2fs2oyh.execute-api.us-east-1.amazonaws.com/create_lead - Method:
POST - Description:
-
Accepts a JSON request body with keys:
email(String): Lead's email addressfirstname(String): Lead's first namelastname(String): Lead's last namephone(String): Lead's phone numbercompany(String): Lead's company namewebsite(String): Lead's websitelifecyclestage(String): Lead's lifecycle stage
-
Sends a request to the HubSpot API to create a contact with the provided data.
-
Returns the response from the HubSpot API upon successful lead creation.
-
If an error occurs during lead creation, it returns a 500 status code with an error message.
-
JSON Format
{ "properties": { "email": "xyz1@hubspot.com", "firstname": "Jane", "lastname": "Doe", "phone": "(555) 555-5555", "company": "HubSpot", "website": "hubspot.com", "lifecyclestage": "marketingqualifiedlead" } }
-
- Endpoint:
https://mka2fs2oyh.execute-api.us-east-1.amazonaws.com/list_leads - Method:
GET - Description:
- Retrieves all leads
Note: Generate your access token from hubspot and replace because it gets expired in some time