> For a complete page index, fetch https://developer.close.com/llms.txt

# Create a new lead

POST https://api.close.com/api/v1/lead/
Content-Type: application/json

Contacts, addresses, and custom fields can all be nested in the lead. Activities, tasks, and opportunities must be posted separately.

**status / status\_id** (optional): Post either `status` or `status_id` (but not both). If neither is provided, the organization's default (first) status will be used. Using `status_id` is recommended so that users can rename statuses in the UI without breaking your implementation.

**custom.FIELD\_ID** (optional): Set custom fields by setting `custom.FIELD_ID` to the field value, where FIELD\_ID is the ID of the custom field, e.g.:

```json
{ "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "value", "custom.cf_8wtBWsdRU2Fur7GDnEeXQ7ra2Vu7R4hG1SNYdiEhh0F": "other value" }
```

If a custom field has `accepts_multiple_values: true`, the entire value will be replaced. For example, given a Lead has a Custom Choice Field with value `["A", "B"]`, adding choice `"C"` would mean setting the value to `["A", "B", "C"]`.

Note that using the `custom` field dict or the `custom.FIELD_NAME` syntax (instead of custom field IDs) is deprecated and will be removed from the API. See [Custom Fields](https://developer.close.com/api/resources/custom-fields) for more details.

Reference: https://developer.close.com/api/resources/leads/create

## Authentication

- `Authorization` header (basic auth, required) — Use your API key as the username and leave the password empty.
- `Authorization` header (bearer token, required)

## Request

### Body (application/json)

- `any`

## Response

### 200

Successful response

- `contact_ids` (list of string, required)
- `created_by` (string, required, nullable)
- `date_created` (datetime, required)
- `date_updated` (datetime, required)
- `description` (string, required, nullable)
- `html_url` (string, required)
- `id` (string, required)
- `name` (string, required, nullable)
- `organization_id` (string, required)
- `status_id` (string, required)
- `updated_by` (string, required, nullable)
- `url` (string, required, nullable)
- `addresses` (list of object, optional)
  - `address_1` (string, required, nullable)
  - `address_2` (string, required, nullable)
  - `city` (string, required, nullable)
  - `country` (string, required, nullable)
  - `label` (string, required, nullable)
  - `state` (string, required, nullable)
  - `zipcode` (string, required, nullable)
  - `tz_ids` (list of string, optional)
- `contacts_summary` (string, optional)
- `created_by_name` (string, optional, nullable)
- `display_name` (string, optional)
- `integration_links` (list of object, optional)
  - `name` (string, required)
  - `url` (string, required)
- `localtime` (datetime, optional, nullable)
- `primary_address_full` (string, optional, nullable)
- `primary_address_summary` (string, optional, nullable)
- `primary_email` (object, optional, nullable)
  - `email` (string, required)
  - `is_unsubscribed` (boolean, required)
  - `type` (string, required)
- `primary_phone` (object, optional, nullable)
  - `phone` (string, required)
  - `type` (string, required)
  - `country` (string, optional, nullable)
  - `outbound_sms_blocked` (boolean, optional)
  - `phone_formatted` (string, optional)
  - `tz_ids` (list of string, optional)
- `recent_calls` (list of map from string to any, optional)
- `source` (string, optional, nullable)
- `status_label` (string, optional)
- `summaries` (list of map from string to any, optional)
- `tasks` (list of map from string to any, optional)
- `updated_by_name` (string, optional, nullable)
- `contacts` (list of object, optional, deprecated)
  - `created_by` (string, required, nullable)
  - `date_created` (datetime, required)
  - `date_updated` (datetime, required)
  - `display_name` (string, required)
  - `id` (string, required)
  - `name` (string, required, nullable)
  - `organization_id` (string, required)
  - `title` (string, required, nullable)
  - `updated_by` (string, required, nullable)
  - `emails` (list of object, optional)
    - `email` (string, required)
    - `is_unsubscribed` (boolean, required)
    - `type` (string, required)
  - `integration_links` (list of object, optional)
    - `name` (string, required)
    - `url` (string, required)
  - `lead_id` (string, optional, nullable)
  - `lead_suggestions_operation_id` (string, optional, nullable)
  - `phones` (list of object, optional)
    - `phone` (string, required)
    - `type` (string, required)
    - `country` (string, optional, nullable)
    - `outbound_sms_blocked` (boolean, optional)
    - `phone_formatted` (string, optional)
    - `tz_ids` (list of string, optional)
  - `recent_calls` (list of object, optional)
    - `dialer_id` (string, required, nullable)
    - `duration` (integer, required)
    - `finish_timestamp` (datetime, required)
    - `id` (string, required)
    - `status` (enum, required) — Current status of the call.
      - Allowed values: `created`, `in-progress`, `completed`, `cancel`, `no-answer`, `busy`, `failed`, `timeout`
  - `subscriptions` (list of object, optional)
    - `contact_email` (string, required, nullable)
    - `date_created` (datetime, required)
    - `initial_email_id` (string, required, nullable)
    - `sequence_id` (string, required)
    - `sequence_name` (string, required)
    - `sequence_status` (enum, required)
      - Allowed values: `active`, `paused`, `draft`
    - `start_date` (datetime, required, nullable)
    - `subscription_id` (string, required)
    - `subscription_status` (enum, required)
      - Allowed values: `active`, `paused`, `finished`, `goal`, `error`
    - `subscription_status_reason` (enum, required, nullable) — Reason for each higher level status on a Workflow run.
      - Allowed values: `manual`, `pending-call-timed-out`, `bulk-action`, `rate-limited`, `sequence-deleted`, `workflow-paused`, `filter-not-matched`, `insufficient-ai-credit-balance`, `reply-received`, `call-answered`, `meeting-booked`, `lead-status-changed`, `outcome-met`, `account-invalid`, `account-failures`, `sending-throttled-too-long`, `membership-inactive`, `send-as-error`, `email-bounced`, `call-failed`, `sms-failed`, `no-user-phone`, `billing-error`, `assignment-field-invalid`, `lead-status-field-invalid`, `assignees-missing`, `run-as-disabled`, `lead-not-visible`, `internal-error`, `field-mapping-error`, `filter-config-invalid`, `email-ai-generation-failed`
  - `timezone` (string, optional, nullable)
  - `timezone_source` (string, optional, nullable)
  - `urls` (list of object, optional)
    - `type` (string, required)
    - `url` (string, required)
- `opportunities` (list of object, optional, deprecated)
  - `annualized_expected_value` (integer, required, nullable)
  - `annualized_value` (integer, required, nullable)
  - `confidence` (integer, required)
  - `contact_id` (string, required, nullable)
  - `created_by` (string, required, nullable)
  - `date_created` (datetime, required)
  - `date_lost` (datetime, required, nullable)
  - `date_updated` (datetime, required)
  - `date_won` (date, required, nullable)
  - `expected_value` (integer, required, nullable)
  - `id` (string, required)
  - `lead_id` (string, required)
  - `note` (string, required, nullable)
  - `note_html` (string, required, nullable)
  - `organization_id` (string, required)
  - `status_id` (string, required)
  - `updated_by` (string, required, nullable)
  - `user_id` (string, required)
  - `value` (integer, required, nullable)
  - `value_period` (enum, required)
    - Allowed values: `one_time`, `monthly`, `annual`
  - `attachments` (list of object, optional)
    - `content_type` (string, required, nullable)
    - `filename` (string, required, nullable)
    - `size` (integer, required, nullable)
    - `url` (string, required)
    - `thumbnail_url` (string, optional, nullable)
  - `comment_summary` (object, optional, nullable)
    - `comment_count` (integer, required)
    - `thread_id` (string, required)
  - `contact_name` (string, optional, nullable)
  - `created_by_name` (string, optional, nullable)
  - `integration_links` (list of object, optional)
    - `name` (string, required)
    - `url` (string, required)
  - `is_stalled` (boolean, optional)
  - `lead_name` (string, optional, nullable)
  - `lead_primary_email` (object, optional, nullable)
    - `email` (string, required)
    - `is_unsubscribed` (boolean, required)
    - `type` (string, required)
  - `lead_primary_phone` (list of object, optional, nullable)
    - `phone` (string, required)
    - `type` (string, required)
    - `country` (string, optional, nullable)
    - `outbound_sms_blocked` (boolean, optional)
    - `phone_formatted` (string, optional)
    - `tz_ids` (list of string, optional)
  - `pipeline_id` (string, optional, nullable)
  - `pipeline_name` (string, optional, nullable)
  - `stall_status` (object, optional, nullable)
    - `communication_issue` (enum, required) — The communication issue that is causing the stalled opportunity. If there is no issue, set to NoIssue.
      - Allowed values: `no_issue`, `cant_get_in_touch`, `no_communication_attempts`
    - `next_action` (object, required) — An action item recommended to progress or resolve the stalled opportunity.
      - `action` (enum, required) — The recommended next step to progress or resolve the stalled opportunity
        - Allowed values: `mark_as_lost`, `change_status`, `follow_up`, `adjust_close_date`, `ask_someone_else_to_reach_out`, `change_communication_method`
      - `justification` (string, required) — A short justification for the recommended action in the sales pipeline. Maximum 2 sentences.
  - `status_display_name` (string, optional)
  - `status_label` (string, optional)
  - `status_type` (enum, optional)
    - Allowed values: `won`, `lost`, `active`
  - `suggested_action` (object, optional, nullable)
    - `action` (enum, required)
      - Allowed values: `change_status`, `adjust_close_date`, `follow_up_email`, `follow_up_call`, `follow_up_sms`
    - `details` (object or object or object or object or object, required, nullable)
      - OpportunityChangeStatusActionDetails
        - `status_id` (string, required)
      - OpportunityFollowUpEmailActionDetails
        - `contact_id` (string, required)
        - `message_draft` (string, required)
        - `subject_draft` (string, required)
      - OpportunityFollowUpSMSActionDetails
        - `contact_id` (string, required)
        - `message_draft` (string, required)
      - OpportunityFollowUpCallActionDetails
        - `call_plan` (string, required)
        - `contact_id` (string, required)
      - OpportunityAdjustCloseDateActionDetails
        - `close_date` (date, required)
    - `justification` (string, required)
  - `updated_by_name` (string, optional, nullable)
  - `user_name` (string, optional, nullable)
  - `value_currency` (string, optional, nullable)
  - `value_formatted` (string, optional, nullable)

## Examples

**Request**

```json
{
  "addresses": [
    {
      "address_1": "747 Howard St",
      "address_2": "Room 3",
      "city": "San Francisco",
      "country": "US",
      "label": "business",
      "state": "CA",
      "zipcode": "94103"
    }
  ],
  "contacts": [
    {
      "emails": [
        {
          "email": "gob@example.com",
          "type": "office"
        }
      ],
      "name": "Gob",
      "phones": [
        {
          "phone": "8004445555",
          "type": "office"
        }
      ],
      "title": "Sr. Vice President"
    }
  ],
  "custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh": "Segway",
  "custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv": "Website contact form",
  "custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI": "Real Estate",
  "custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks": [
    "Choice 1",
    "Choice 2"
  ],
  "description": "Best. Show. Ever.",
  "name": "Bluth Company",
  "status_id": "stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk",
  "url": "http://thebluthcompany.tumblr.com/"
}
```

**Response**

```json
{
  "contact_ids": [
    "cont_qpjDKxbN3WWsuhaJjg2Qr9pkqHqe1yviZ5BS0dEyz05"
  ],
  "created_by": "user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA",
  "date_created": "2013-02-20T05:30:24.854000+00:00",
  "date_updated": "2013-02-20T05:30:24.854000+00:00",
  "description": "Best. Show. Ever.",
  "html_url": "https://app.close.com/lead/lead_70jZ5hiVt5X31MZ3vJ0R0GJMqJEihkoF7TtSVFbN2ty/",
  "id": "lead_70jZ5hiVt5X31MZ3vJ0R0GJMqJEihkoF7TtSVFbN2ty",
  "name": "Bluth Company",
  "organization_id": "orga_RbREgmiiwcr1w2b4cOnCMQaQPSIFxMqAD2Dh243uxcH",
  "status_id": "stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk",
  "updated_by": "user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA",
  "url": "http://thebluthcompany.tumblr.com/",
  "addresses": [
    {
      "address_1": "747 Howard St",
      "address_2": "Room 3",
      "city": "San Francisco",
      "country": "US",
      "label": "business",
      "state": "CA",
      "zipcode": "94103"
    }
  ],
  "display_name": "Bluth Company",
  "status_label": "Potential",
  "tasks": [],
  "contacts": [
    {
      "created_by": "user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA",
      "date_created": "2013-02-20T05:30:24.844000+00:00",
      "date_updated": "2013-02-20T05:30:24.844000+00:00",
      "display_name": "Gob",
      "id": "cont_qpjDKxbN3WWsuhaJjg2Qr9pkqHqe1yviZ5BS0dEyz05",
      "name": "Gob",
      "organization_id": "orga_RbREgmiiwcr1w2b4cOnCMQaQPSIFxMqAD2Dh243uxcH",
      "title": "sr. vice president",
      "updated_by": "user_N6KhMpzHRCYQHdn4gRNIFNN5JExnsrprKA6ekxM63XA",
      "emails": [
        {
          "email": "gob@example.com",
          "is_unsubscribed": false,
          "type": "office"
        }
      ],
      "phones": [
        {
          "phone": "+18004445555",
          "type": "office",
          "phone_formatted": "+1 800-444-5555"
        }
      ]
    }
  ],
  "opportunities": [],
  "custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh": "Segway",
  "custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv": "Website contact form",
  "custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI": "Real Estate",
  "custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks": [
    "Choice 1",
    "Choice 2"
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.close.com/api/v1/lead/"

payload = {
    "addresses": [
        {
            "address_1": "747 Howard St",
            "address_2": "Room 3",
            "city": "San Francisco",
            "country": "US",
            "label": "business",
            "state": "CA",
            "zipcode": "94103"
        }
    ],
    "contacts": [
        {
            "emails": [
                {
                    "email": "gob@example.com",
                    "type": "office"
                }
            ],
            "name": "Gob",
            "phones": [
                {
                    "phone": "8004445555",
                    "type": "office"
                }
            ],
            "title": "Sr. Vice President"
        }
    ],
    "custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh": "Segway",
    "custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv": "Website contact form",
    "custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI": "Real Estate",
    "custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks": ["Choice 1", "Choice 2"],
    "description": "Best. Show. Ever.",
    "name": "Bluth Company",
    "status_id": "stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk",
    "url": "http://thebluthcompany.tumblr.com/"
}
headers = {
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, auth=("<CLOSE_API_KEY>", ""))

print(response.json())
```

```javascript
const url = 'https://api.close.com/api/v1/lead/';
const credentials = btoa("<CLOSE_API_KEY>:");

const options = {
  method: 'POST',
  headers: {Authorization: `Basic ${credentials}`, 'Content-Type': 'application/json'},
  body: '{"addresses":[{"address_1":"747 Howard St","address_2":"Room 3","city":"San Francisco","country":"US","label":"business","state":"CA","zipcode":"94103"}],"contacts":[{"emails":[{"email":"gob@example.com","type":"office"}],"name":"Gob","phones":[{"phone":"8004445555","type":"office"}],"title":"Sr. Vice President"}],"custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh":"Segway","custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv":"Website contact form","custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI":"Real Estate","custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks":["Choice 1","Choice 2"],"description":"Best. Show. Ever.","name":"Bluth Company","status_id":"stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk","url":"http://thebluthcompany.tumblr.com/"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.close.com/api/v1/lead/"

	payload := strings.NewReader("{\n  \"addresses\": [\n    {\n      \"address_1\": \"747 Howard St\",\n      \"address_2\": \"Room 3\",\n      \"city\": \"San Francisco\",\n      \"country\": \"US\",\n      \"label\": \"business\",\n      \"state\": \"CA\",\n      \"zipcode\": \"94103\"\n    }\n  ],\n  \"contacts\": [\n    {\n      \"emails\": [\n        {\n          \"email\": \"gob@example.com\",\n          \"type\": \"office\"\n        }\n      ],\n      \"name\": \"Gob\",\n      \"phones\": [\n        {\n          \"phone\": \"8004445555\",\n          \"type\": \"office\"\n        }\n      ],\n      \"title\": \"Sr. Vice President\"\n    }\n  ],\n  \"custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh\": \"Segway\",\n  \"custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv\": \"Website contact form\",\n  \"custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI\": \"Real Estate\",\n  \"custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks\": [\n    \"Choice 1\",\n    \"Choice 2\"\n  ],\n  \"description\": \"Best. Show. Ever.\",\n  \"name\": \"Bluth Company\",\n  \"status_id\": \"stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk\",\n  \"url\": \"http://thebluthcompany.tumblr.com/\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.SetBasicAuth("<CLOSE_API_KEY>", "")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.close.com/api/v1/lead/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request.basic_auth("<CLOSE_API_KEY>", "")
request["Content-Type"] = 'application/json'
request.body = "{\n  \"addresses\": [\n    {\n      \"address_1\": \"747 Howard St\",\n      \"address_2\": \"Room 3\",\n      \"city\": \"San Francisco\",\n      \"country\": \"US\",\n      \"label\": \"business\",\n      \"state\": \"CA\",\n      \"zipcode\": \"94103\"\n    }\n  ],\n  \"contacts\": [\n    {\n      \"emails\": [\n        {\n          \"email\": \"gob@example.com\",\n          \"type\": \"office\"\n        }\n      ],\n      \"name\": \"Gob\",\n      \"phones\": [\n        {\n          \"phone\": \"8004445555\",\n          \"type\": \"office\"\n        }\n      ],\n      \"title\": \"Sr. Vice President\"\n    }\n  ],\n  \"custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh\": \"Segway\",\n  \"custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv\": \"Website contact form\",\n  \"custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI\": \"Real Estate\",\n  \"custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks\": [\n    \"Choice 1\",\n    \"Choice 2\"\n  ],\n  \"description\": \"Best. Show. Ever.\",\n  \"name\": \"Bluth Company\",\n  \"status_id\": \"stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk\",\n  \"url\": \"http://thebluthcompany.tumblr.com/\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.close.com/api/v1/lead/")
  .basicAuth("<CLOSE_API_KEY>", "")
  .header("Content-Type", "application/json")
  .body("{\n  \"addresses\": [\n    {\n      \"address_1\": \"747 Howard St\",\n      \"address_2\": \"Room 3\",\n      \"city\": \"San Francisco\",\n      \"country\": \"US\",\n      \"label\": \"business\",\n      \"state\": \"CA\",\n      \"zipcode\": \"94103\"\n    }\n  ],\n  \"contacts\": [\n    {\n      \"emails\": [\n        {\n          \"email\": \"gob@example.com\",\n          \"type\": \"office\"\n        }\n      ],\n      \"name\": \"Gob\",\n      \"phones\": [\n        {\n          \"phone\": \"8004445555\",\n          \"type\": \"office\"\n        }\n      ],\n      \"title\": \"Sr. Vice President\"\n    }\n  ],\n  \"custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh\": \"Segway\",\n  \"custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv\": \"Website contact form\",\n  \"custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI\": \"Real Estate\",\n  \"custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks\": [\n    \"Choice 1\",\n    \"Choice 2\"\n  ],\n  \"description\": \"Best. Show. Ever.\",\n  \"name\": \"Bluth Company\",\n  \"status_id\": \"stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk\",\n  \"url\": \"http://thebluthcompany.tumblr.com/\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.close.com/api/v1/lead/', [
  'body' => '{
  "addresses": [
    {
      "address_1": "747 Howard St",
      "address_2": "Room 3",
      "city": "San Francisco",
      "country": "US",
      "label": "business",
      "state": "CA",
      "zipcode": "94103"
    }
  ],
  "contacts": [
    {
      "emails": [
        {
          "email": "gob@example.com",
          "type": "office"
        }
      ],
      "name": "Gob",
      "phones": [
        {
          "phone": "8004445555",
          "type": "office"
        }
      ],
      "title": "Sr. Vice President"
    }
  ],
  "custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh": "Segway",
  "custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv": "Website contact form",
  "custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI": "Real Estate",
  "custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks": [
    "Choice 1",
    "Choice 2"
  ],
  "description": "Best. Show. Ever.",
  "name": "Bluth Company",
  "status_id": "stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk",
  "url": "http://thebluthcompany.tumblr.com/"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
    'auth' => ['<CLOSE_API_KEY>', ''],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.close.com/api/v1/lead/");
client.Authenticator = new HttpBasicAuthenticator("<CLOSE_API_KEY>", "");
var request = new RestRequest(Method.POST);

request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"addresses\": [\n    {\n      \"address_1\": \"747 Howard St\",\n      \"address_2\": \"Room 3\",\n      \"city\": \"San Francisco\",\n      \"country\": \"US\",\n      \"label\": \"business\",\n      \"state\": \"CA\",\n      \"zipcode\": \"94103\"\n    }\n  ],\n  \"contacts\": [\n    {\n      \"emails\": [\n        {\n          \"email\": \"gob@example.com\",\n          \"type\": \"office\"\n        }\n      ],\n      \"name\": \"Gob\",\n      \"phones\": [\n        {\n          \"phone\": \"8004445555\",\n          \"type\": \"office\"\n        }\n      ],\n      \"title\": \"Sr. Vice President\"\n    }\n  ],\n  \"custom.cf_FSYEbxYJFsnY9tN1OTAPIF33j7Sw5Lb7Eawll7JzoNh\": \"Segway\",\n  \"custom.cf_ORxgoOQ5YH1p7lDQzFJ88b4z0j7PLLTRaG66m8bmcKv\": \"Website contact form\",\n  \"custom.cf_bA7SU4vqaefQLuK5UjZMVpbfHK4SVujTJ9unKCIlTvI\": \"Real Estate\",\n  \"custom.cf_nenE344jkwrjyRRezwsf8b4V1MCoXWIDHIStmFavZks\": [\n    \"Choice 1\",\n    \"Choice 2\"\n  ],\n  \"description\": \"Best. Show. Ever.\",\n  \"name\": \"Bluth Company\",\n  \"status_id\": \"stat_1ZdiZqcSIkoGVnNOyxiEY58eTGQmFNG3LPlEVQ4V7Nk\",\n  \"url\": \"http://thebluthcompany.tumblr.com/\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```