⏩API Endpoints

Currently, our API offers the following endpoint for lead creation:

Create Leads

  • Endpoint: POST /api/v1/leads

  • Description: This endpoint allows for the creation of new leads in the ClosingDealz CRM system.

  • Headers:

    • Content-Type: application/json

    • X-API-Key: your_api_key_here

  • Example Body Request:

[
    {
        "company": "Company Name",
        "contactPerson": "Contact Person Name",
        "jobTitle": "Job Title",
        "email": "email@example.com",
        "phoneNumber": "Phone Number",
        "notes": "Any relevant notes or information about the lead"
    }
]

Visit Lead and Contact Request Objects to view all the available fields of the request.

πŸ—’οΈLead Request ObjectπŸ—’οΈContact Request Object

Success Responses:

Code: 200 OK

Description: Successfully created leads.

Error Responses:

Code: 401 Unauthorized

Description: The submitted API key was not valid.

OR

Code: 400 Bad Request

Description: Only 100 leads is allowed to be created at once.

OR

Code: 400 Bad Request

Description: Workspace plan has been downgrade to Free Plan, only workspaces with Basic Plan can use the API without limits.

OR

Code: 400 Bad Request

Description: Can not have more than 5 leads on the Free Plan. Only workspaces with Basic Plan can use the API without limits.

OR

Code: 429 Too Many Requests

Description: Too many requests, only 1000 requests every 5 minutes is allowed.

Example Request

Here's an example of how to create a lead using curl:

Replace your_api_key_here with your actual API key.

Last updated