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

# Add prospects batch

> Adds multiple prospects to a campaign

Add multiple prospects to one campaign. Each prospect can include a `customData` string, max 3000 characters, that is saved on the created chat and available in prompts as `{{customData}}`.

The import is asynchronous. The response includes a `listId`; use [Prospect Import Status](/api-reference/prospects/import-status) to confirm which rows created chats.

## Example

```bash theme={null}
curl -X POST "https://api.kakiyo.com/v1/prospects/batch" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "campaignId": "campaign_12345abcde",
    "prospects": [
      {
        "name": "John Smith",
        "url": "https://linkedin.com/in/johnsmith",
        "customData": "John commented on Liam's LinkedIn post about AI outbound."
      },
      {
        "name": "Sarah Johnson",
        "url": "https://linkedin.com/in/sarahjohnson",
        "customData": "Sarah engaged with a Kakiyo post about sales automation."
      }
    ]
  }'
```

## Prospect object

| Field        | Type      | Required | Description                                                           |
| ------------ | --------- | -------- | --------------------------------------------------------------------- |
| `name`       | `string`  | Yes      | Prospect full name                                                    |
| `url`        | `string`  | Yes      | LinkedIn profile URL                                                  |
| `ongoing`    | `boolean` | No       | Whether the conversation should start as ongoing. Defaults to `false` |
| `customData` | `string`  | No       | Per-conversation prompt context, max 3000 characters                  |


## OpenAPI

````yaml POST /prospects/batch
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /prospects/batch:
    post:
      summary: Add Prospects Batch
      description: Adds multiple prospects to a campaign
      operationId: addProspectsBatch
      requestBody:
        description: Batch of prospects to add
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddProspectsBatchRequest'
        required: true
      responses:
        '201':
          description: Prospects added successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: 3 prospects added successfully
                  listId:
                    type: string
                    example: import_list_id
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Campaign not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AddProspectsBatchRequest:
      type: object
      required:
        - campaignId
        - prospects
      properties:
        campaignId:
          type: string
          example: campaign_12345abcde
        prospects:
          type: array
          items:
            type: object
            required:
              - name
              - url
            properties:
              name:
                type: string
                example: John Smith
              url:
                type: string
                format: uri
                example: https://linkedin.com/in/johnsmith
              customData:
                type: string
                maxLength: 3000
                example: John commented on Liam's LinkedIn post about AI outbound.
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````