---
title: "Create a batch of leads"
method: POST
path: "/crm/v3/objects/leads/batch/create"
tags: ["Batch"]
---

# Create a batch of leads

`POST /crm/v3/objects/leads/batch/create`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/crm/v3/objects/leads/batch/create`
- Auth: none required

Create multiple lead records in a single request by providing a batch of lead data. This endpoint allows for efficient creation of leads by processing them together, which can be useful for syncing data from other systems or importing large datasets.

## Request body

- BatchInputSimplePublicObjectBatchInputForCreate: Represents a batch input for creating multiple simple public objects in a single request. This component is used to streamline the process of adding new objects to a HubSpot account by allowing multiple entries to be created at once.
  - `inputs` SimplePublicObjectBatchInputForCreate[], required: An array of simple public objects to be created. Each object in the array contains the necessary data for creating a new entry in the system.
    - `associations` PublicAssociationsForObject[], required: An array of associations that define the relationships between the objects being created and other existing objects. This property is required.
      - `to` PublicObjectId, required: Contains the Id of a Public Object
        - `id` string, required: The unique ID of the object.
      - `types` AssociationSpec[], required: The types of associations that exist between the object and other entities, indicating the nature of their relationship.
        - `associationCategory` 'HUBSPOT_DEFINED' | 'INTEGRATOR_DEFINED' | 'USER_DEFINED' | 'WORK', required: The category of the association, indicating its origin or purpose. Valid values include "HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED", and "WORK".
        - `associationTypeId` integer, required: An integer representing the unique identifier for the type of association.
    - `objectWriteTraceId` string: An identifier used for tracing the creation or update request of the object.
    - `properties` object, required: Key value pairs representing the properties of the object.

## Response `201`

successful operation

- BatchResponseSimplePublicObject: A public object batch response object
  - `completedAt` string, date-time, required: The timestamp when the batch processing was completed, in ISO 8601 format.
  - `links` object: A map of link names to associated URIs, providing additional information or actions related to the batch operation.
  - `requestedAt` string, date-time: The timestamp when the batch request was initially made, in ISO 8601 format.
  - `results` SimplePublicObject[], required: An array of SimplePublicObject items representing the results of the batch operation.
    - `archived` boolean, required: Whether the object is archived.
    - `archivedAt` string, date-time: The timestamp when the object was archived, in ISO 8601 format.
    - `createdAt` string, date-time, required: The timestamp when the object was created, in ISO 8601 format.
    - `id` string, required: The unique ID of the object.
    - `objectWriteTraceId` string: An identifier used to trace the write request for the object. Set a unique ID for each write operation; it is returned with any errors so you can identify which request encountered which error.
    - `properties` object, required: Key-value pairs representing the properties of the object.
    - `propertiesWithHistory` object: Key-value pairs representing the properties of the object along with their history, each with a timestamp and source information.
    - `updatedAt` string, date-time, required: The timestamp when the object was last updated, in ISO 8601 format.
    - `url` string: The URL associated with the object.
    - `warnings` PublicObjectWarning[]
      - `category` string, required: The classification of the warning, indicating the type or nature of the issue.
      - `context` object, required: Additional information or metadata about the warning, providing context for understanding the issue.
      - `message` string, required: The text of the warning message, providing information about the issue or alert.
  - `startedAt` string, date-time, required: The timestamp when the batch processing began, in ISO 8601 format.
  - `status` 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING', required: The status of the batch processing request: "PENDING", "PROCESSING", "CANCELLED", or "COMPLETE"

## Other responses

- `207`: multiple statuses
- `default`: An error occurred.

## Changes

- **2026-09-22** (v3) `6af2ebb37fe0`: 1 info
  - the endpoint scheme security `oauth2` was removed from the API
- **2026-07-13** (v3) `2a8d409d7f40`: 1 info
  - endpoint added
- **2026-07-13** (v3) `ef081db8be86`: 1 breaking
  - api path removed without deprecation
- **2026-06-23** (v3) `2a8d409d7f40`: 2 info
  - added the optional property `results/items/warnings` to the response with the `201` status
  - added the optional property `results/items/warnings` to the response with the `207` status
- **2026-06-15** (v3) `f564d79fa468`: 1 breaking, 8 info
  - the `errors/items/` response's property type changed from no type to `object` for status `207`
  - added the optional property `errors/items/id` to the response with the `207` status
  - added the optional property `errors/items/subCategory` to the response with the `207` status
  - added the required property `errors/items/category` to the response with the `207` status
  - …5 more

[Operation history](https://skmtc.dev/hubspot/apis/crm-leads/changes/crm/v3/objects/leads/batch/create/post.md)

---

[API](https://skmtc.dev/hubspot/apis/crm-leads.md) - [All operations](https://skmtc.dev/hubspot/apis/crm-leads/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/crm-leads/revisions/a8b7be0524f9?raw)
