Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 613 Bytes

README.md

File metadata and controls

35 lines (30 loc) · 613 Bytes

Creatly Leads API

Service that collects info from landing page's lead form & saves it to CRM (Trello Board)

Prerequisites

  • go 1.16

Build & Run

  1. Set env variables
export TRELLO_LIST_NAME="Leads"
export TRELLO_BOARD_ID=TqW02k3K
export TRELLO_API_TOKEN=<your token>
export TRELLO_API_KEY=<your key>
  1. Run app
make run

API

POST /leads

{
    "firstname": "Vasya",
    "lastname": "Pupkin",
    "email": "vasyapupkin@gmail.com",
    "phone": "+380996969228",
    "source": "pdf",
    "niche": "IT",
    "utm_source": "instagram",
    "utm_medium": "target"
}