> ## Documentation Index
> Fetch the complete documentation index at: https://docs.router.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Lead

> Create a new lead for a specific endpoint

This endpoint allows you to create a new lead for a given endpoint ID.

### Authentication

<ParamField header="Authorization" type="string" required>
  Your API key. Include this in the request header as `Authorization: Bearer YOUR_API_KEY`
</ParamField>

### Path Parameters

<ParamField path="endpointId" type="string" required>
  The unique identifier for the user's endpoint
</ParamField>

### Request Body

<ParamField body="name" type="string" required>
  The name of the lead
</ParamField>

### Response

<ResponseField name="id" type="string">
  The unique identifier for the created lead
</ResponseField>

<ResponseField name="name" type="string">
  The name of the lead
</ResponseField>

<ResponseField name="createdAt" type="string">
  The timestamp of when the lead was created (in ISO 8601 format)
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X POST https://app.router.so/api/endpoints/{endpointId} \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "John Doe"}'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "lead_123456",
    "name": "John Doe",
    "createdAt": "2023-04-01T12:00:00Z"
  }
  ```
</ResponseExample>
