POST
/
api
/
2023-01
/
leads
curl --request POST \
  --url https://api.buildr.com/api/2023-01/leads \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lead": {
    "archived_at": "2023-02-14T18:13:00Z",
    "archived_by_id": "953",
    "assigned_to_id": "953",
    "company_id": "753",
    "construction_duration": 4,
    "construction_duration_unit": "days",
    "contact_id": "144",
    "contract_type_id": "721",
    "delivery_method": "cmar",
    "description": "We have to close this one!",
    "division_id": "689",
    "estimated_start_date": "2023-09-04",
    "lead_source_id": "346",
    "market_sector_id": "902",
    "name": "Gateway Logistics Center",
    "priority": true,
    "snooze_until": "2023-02-14T18:13:00Z",
    "square_feet": 1200,
    "tender_type": "open",
    "units": 24,
    "value_in_cents": 2999,
    "required": "<any>"
  }
}'
{
  "lead": {
    "id": "966",
    "created_at": "2023-02-14T18:13:00Z",
    "updated_at": "2023-04-03T20:16:30Z",
    "name": "Gateway Logistics Center",
    "description": "We have to close this one!",
    "priority": true,
    "value_in_cents": 2999,
    "estimated_start_date": "2023-09-04",
    "construction_duration": 4,
    "construction_duration_unit": "days",
    "tender_type": "open",
    "delivery_method": "cmar",
    "square_feet": 1200,
    "units": 24,
    "archived_at": "2023-02-14T18:13:00Z",
    "snooze_until": "2023-02-14T18:13:00Z",
    "address": {
      "street_address": "123 Main St",
      "street_address2": "Apt 1",
      "city": "Los Angeles",
      "state": "CA",
      "zip": "90001",
      "country": "US"
    },
    "assigned_to": {
      "id": "953",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "first_name": "Russell",
      "last_name": "Westbrook",
      "name": "Russell Westbrook",
      "email": "russell.westbrook@example.com"
    },
    "archived_by": {
      "id": "953",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "first_name": "Russell",
      "last_name": "Westbrook",
      "name": "Russell Westbrook",
      "email": "russell.westbrook@example.com"
    },
    "company": {
      "id": "101",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "name": "<string>",
      "website": "<string>"
    },
    "contact": {
      "id": "418",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "first_name": "Austin",
      "last_name": "Reaves",
      "name": "Austin Reaves",
      "email": "austin.reaves@example.com"
    },
    "contract_type": {
      "id": "721",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "name": "Design/Build"
    },
    "created_by": {
      "id": "953",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "first_name": "Russell",
      "last_name": "Westbrook",
      "name": "Russell Westbrook",
      "email": "russell.westbrook@example.com"
    },
    "division": {
      "id": "689",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "name": "<string>"
    },
    "lead_source": {
      "id": "346",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "name": "Website"
    },
    "market_sector": {
      "id": "902",
      "created_at": "2023-02-14T18:13:00Z",
      "updated_at": "2023-04-03T20:16:30Z",
      "name": "Education"
    }
  }
}

Headers

Authorization
string
required

Body

application/json
lead
object

Response

201 - application/json
lead
object | null
required