> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.signalcore.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.signalcore.ai/_mcp/server.

# Create Lead

POST https://api.signalcore.ai/api/v1/leads
Content-Type: application/json

Create a new lead. Email and phone must be unique within your business.

Reference: https://docs.signalcore.ai/api-reference/leads/create-lead

## Authentication

- `X-API-Key` header (required) — Your API key from [Dashboard → Settings → API Keys](https://dashboard.signalcore.ai/settings)

## Servers

- `https://api.signalcore.ai/api/v1` (Producción, default)
- `https://staging.api.signalcore.ai/api/v1` (Staging)

## Request

### Body (application/json)

This endpoint expects a LeadCreate.

- `contact` (ContactInfo, optional) — Lead contact information
- `source` (enum, optional, default: API)
  - Allowed values: `API`, `LIST`, `PHONECALL`, `SMS`, `LINKEDIN`, `WHATSAPP`, `INSTAGRAM`, `OUTLOOK`, `GOOGLE_OAUTH`
- `meta` (map from string to any, optional) — Custom metadata fields
- `pipeline_id` (string, optional) — Assign lead to a pipeline
- `list_id` (string, optional) — Assign lead to a list

## Response

### 201

Lead created

- `id` (string, optional) — Unique lead identifier
- `business_id` (string, optional) — Business this lead belongs to
- `contact` (ContactInfo, optional) — Lead contact information
- `source` (enum, optional) — How this lead was created
  - Allowed values: `API`, `LIST`, `PHONECALL`, `SMS`, `LINKEDIN`, `WHATSAPP`, `INSTAGRAM`, `OUTLOOK`, `GOOGLE_OAUTH`
- `meta` (map from string to any, optional) — Custom metadata fields. Store any additional data about the lead.
- `data` (LeadData, optional) — Lead status and scoring data
- `pipeline_id` (string, optional) — Pipeline this lead is assigned to
- `pipeline_stage` (LeadPipelineStage, optional) — Current pipeline stage information
- `created_at` (datetime, optional)

## Errors

### 400 Bad Request Error

Validation error (duplicate email/phone, invalid phone format)

- `detail` (string, optional) — Error message

## Types

### ContactInfo

Lead contact information

- `name` (ContactInfoName, optional)
- `email` (string, optional) — Email address (must be unique within your business)
- `number` (string, optional) — Phone number in international format (+ followed by digits, 8-16 characters)
- `timezone` (string, optional) — Lead's timezone in IANA format

### LeadData

Lead status and scoring data

- `objective_met` (boolean, optional, default: false) — Whether the agent's objective has been achieved for this lead
- `history_summary` (string, optional, default: No history summary yet) — AI-generated summary of conversation history
- `lead_score` (integer, optional) — Lead quality score (0-100). 70-100 = hot, 30-69 = warm, 10-29 = cold
- `can_followup` (boolean, optional) — Whether proactive follow-up is appropriate for this lead

### LeadPipelineStage

Current pipeline stage information

- `current_stage` (string, optional)
- `current_stage_name` (string, optional)
- `entered_at` (datetime, optional)

### ContactInfoName

- `first` (string, optional) — First name
- `last` (string, optional) — Last name

## Examples

**Request**

```json
{
  "contact": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "email": "john@example.com",
    "number": "+15551234567",
    "timezone": "America/New_York"
  },
  "source": "API",
  "meta": {
    "company": "Acme Corp",
    "role": "CTO",
    "interest": "Enterprise plan"
  }
}
```

**Response**

```json
{
  "id": "lead_xyz789",
  "business_id": "string",
  "contact": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "email": "john@example.com",
    "number": "+15551234567",
    "timezone": "America/New_York"
  },
  "source": "API",
  "meta": {
    "company": "Acme Corp",
    "industry": "Technology",
    "employees": 50
  },
  "data": {
    "objective_met": false,
    "history_summary": "No history summary yet",
    "lead_score": 1,
    "can_followup": true
  },
  "pipeline_id": "string",
  "pipeline_stage": {
    "current_stage": "string",
    "current_stage_name": "string",
    "entered_at": "2024-01-15T09:30:00Z"
  },
  "created_at": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.signalcore.ai/api/v1/leads"

payload = {
    "contact": {
        "name": {
            "first": "John",
            "last": "Smith"
        },
        "email": "john@example.com",
        "number": "+15551234567",
        "timezone": "America/New_York"
    },
    "source": "API",
    "meta": {
        "company": "Acme Corp",
        "role": "CTO",
        "interest": "Enterprise plan"
    }
}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.signalcore.ai/api/v1/leads';
const options = {
  method: 'POST',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"contact":{"name":{"first":"John","last":"Smith"},"email":"john@example.com","number":"+15551234567","timezone":"America/New_York"},"source":"API","meta":{"company":"Acme Corp","role":"CTO","interest":"Enterprise plan"}}'
};

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.signalcore.ai/api/v1/leads"

	payload := strings.NewReader("{\n  \"contact\": {\n    \"name\": {\n      \"first\": \"John\",\n      \"last\": \"Smith\"\n    },\n    \"email\": \"john@example.com\",\n    \"number\": \"+15551234567\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"source\": \"API\",\n  \"meta\": {\n    \"company\": \"Acme Corp\",\n    \"role\": \"CTO\",\n    \"interest\": \"Enterprise plan\"\n  }\n}")

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

	req.Header.Add("X-API-Key", "<apiKey>")
	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.signalcore.ai/api/v1/leads")

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

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"contact\": {\n    \"name\": {\n      \"first\": \"John\",\n      \"last\": \"Smith\"\n    },\n    \"email\": \"john@example.com\",\n    \"number\": \"+15551234567\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"source\": \"API\",\n  \"meta\": {\n    \"company\": \"Acme Corp\",\n    \"role\": \"CTO\",\n    \"interest\": \"Enterprise plan\"\n  }\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.signalcore.ai/api/v1/leads")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"contact\": {\n    \"name\": {\n      \"first\": \"John\",\n      \"last\": \"Smith\"\n    },\n    \"email\": \"john@example.com\",\n    \"number\": \"+15551234567\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"source\": \"API\",\n  \"meta\": {\n    \"company\": \"Acme Corp\",\n    \"role\": \"CTO\",\n    \"interest\": \"Enterprise plan\"\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.signalcore.ai/api/v1/leads', [
  'body' => '{
  "contact": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "email": "john@example.com",
    "number": "+15551234567",
    "timezone": "America/New_York"
  },
  "source": "API",
  "meta": {
    "company": "Acme Corp",
    "role": "CTO",
    "interest": "Enterprise plan"
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.signalcore.ai/api/v1/leads");
var request = new RestRequest(Method.POST);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"contact\": {\n    \"name\": {\n      \"first\": \"John\",\n      \"last\": \"Smith\"\n    },\n    \"email\": \"john@example.com\",\n    \"number\": \"+15551234567\",\n    \"timezone\": \"America/New_York\"\n  },\n  \"source\": \"API\",\n  \"meta\": {\n    \"company\": \"Acme Corp\",\n    \"role\": \"CTO\",\n    \"interest\": \"Enterprise plan\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "contact": [
    "name": [
      "first": "John",
      "last": "Smith"
    ],
    "email": "john@example.com",
    "number": "+15551234567",
    "timezone": "America/New_York"
  ],
  "source": "API",
  "meta": [
    "company": "Acme Corp",
    "role": "CTO",
    "interest": "Enterprise plan"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.signalcore.ai/api/v1/leads")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```