Docs For Ledsak
Go To Website
Ledsak Documentation
Ledsak Documentation
  • Introduction to LEDSAK
  • Getting Started
    • Creating Account
    • Integrations
    • Roles and Permission
    • Staff
    • Automation
    • Lead Distribution
  • Lead Management
    • 🟦All Lead
      • Send To Meta
      • Send To Google
      • Activity
      • Notes
      • Emails
      • Calls
      • Meeting
      • Task
      • Deals
      • Ticket
    • 🟩Lead Setup
    • 🟥Lead Distribution
    • ⬜Export History
  • Deal Management
    • All Deals
    • Won Deals
  • Actions
  • Automation
  • Integrations
    • Facebook
    • Website
    • Brevo
    • GallaBox
    • Indiamart
    • Tawk
  • Reports
  • Staff Management
    • Staff
    • Attendance
    • Roles and Permissions
    • Login History
  • Settings
    • Customize
    • Template
Powered by GitBook
On this page
  • Webhook Integration Documentation
  • Endpoint
  • Description
  • Request Format
  • Response
  • Created Lead Succesfull
  1. Integrations

Website

Webhook Integration Documentation

Endpoint

URL: https://api-v2.ledsak.ai/api/webhook/website/webhook

Request Method: POST

Description

This endpoint is used to send a webhook to a website. It requires a raw JSON request body containing client information, source details, branch location, and lead details.


Request Format

Headers

Ensure the request contains the appropriate headers, such as:

jsonCopy codeContent-Type: application/json

Request Body

The request body must be in JSON format and include the following fields:

Field
Type
Description

client

string

The client associated with the webhook. ()

source

string

The source of the webhook.

branch

string

Name of the branch location.

lead_details

array

An array containing details about the lead. Each object in the array must include:

Client ID:

  1. Go to Integrations

  2. Click on Website View

  3. See the Client Credentials: (Client id)

Source:

Branch:

Lead Details:

  • lead_field (string): The name of the lead field.

  • lead_value (string): The corresponding value for the lead field.

Example Request Body

jsonCopy code
{
  "client": "example_client",
  "source": "website",
  "branch": "Main Branch",
  "lead_details": [
    {
      "lead_field": "name",
      "lead_value": "John Doe"
    },
    {
      "lead_field": "email",
      "lead_value": "johndoe@example.com"
    }
  ]
}

Response

Status Code

200 OK

Created Lead Succesfull

{
  "message": "Successfully created",
  "lead_id": "6645f7c17aff889d10509de5"
}
PreviousFacebookNextBrevo

Last updated 2 months ago

Click on Website Leads view.
Lead Source
Branch List