adds json endpoint for leads