> ## Documentation Index
> Fetch the complete documentation index at: https://new-fb342056.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create lead

> Create a new lead in the Robocallz system



## OpenAPI

````yaml POST /user/lead
openapi: 3.1.0
info:
  title: Robocallz API
  description: API documentation for Robocallz platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.robocallz.ai
security:
  - bearerAuth: []
paths:
  /user/lead:
    post:
      summary: Create lead
      description: Create a new lead in the Autocalls system
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - phone_number
                - campaign_id
              properties:
                phone_number:
                  type: string
                  description: >-
                    The phone number of the lead in E.164 format (e.g.
                    +1234567890)
                campaign_id:
                  type: integer
                  description: The ID of the campaign to create the lead for
                variables:
                  type: object
                  description: The variables to pass to the lead
                  properties:
                    customer_name:
                      type: string
                      description: The name of the customer
                      default: <string>
                    email:
                      type: string
                      description: The email of the customer
                      default: <string>
                allow_dupplicate:
                  type: boolean
                  description: Whether to allow duplicate leads in a campaign.
      responses:
        '200':
          description: Lead created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The message of the response
                    default: Lead created successfully
                  data:
                    type: object
                    description: The lead data object
                    properties:
                      id:
                        type: integer
                        description: The unique ID of the created lead
                      campaign_id:
                        type: integer
                        description: The ID of the campaign this lead belongs to
                      phone_number:
                        type: string
                        description: The phone number of the lead in E.164 format
                      variables:
                        type: object
                        description: The variables associated with the lead
                        properties:
                          customer_name:
                            type: string
                            description: The name of the customer
                            default: <string>
                          email:
                            type: string
                            description: The email of the customer
                            default: <string>
                      status:
                        type: string
                        description: The status of the lead
                        default: created
                      created_at:
                        type: string
                        description: The timestamp when the lead was created
                      updated_at:
                        type: string
                        description: The timestamp when the lead was last updated
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````