📓
Collector API documentation
  • Introduction
  • Endpoints
    • About
    • Leads
      • Add New
      • Update
      • Get Last
      • Get Lead
      • Get List
      • Get Notes
      • Get Extra Data
      • Get Follow-ups
      • Get Order
      • Get Types
      • Get Statuses
    • Webhook
Powered by GitBook
On this page
  1. Endpoints
  2. Leads

Add New

POST /leads/addNew

Creates a new lead

Headers

x-api-key* string

API key for authorization

Request

Name
Type
Description

name*

string

Customer name

email

string

Customer email

phone

string

Customer phone

type

number

Lead type

status

number

Lead status

purchase

number

Lead purchase amount

note

string

Lead note

extra_data

array of object

Extra data { "label": string, "value": string }

Response

{
  "status": "success",
  "leadID": 1900001
}
{
  "errors": [
    "Name is is undefined"
  ]
}
PreviousLeadsNextUpdate

Last updated 1 year ago