---
title: "Bulk assign leads to organization users"
method: POST
path: "/api/v2/leads/bulk-assign"
tags: ["Lead"]
---

# Bulk assign leads to organization users

`POST /api/v2/leads/bulk-assign`

Bulk assign leads to organization users

## Request body

- object
  - `search` string — The search query to filter leads by.
  - `filter` 'FILTER_VAL_CONTACTED' | 'FILTER_VAL_NOT_CONTACTED' | 'FILTER_VAL_COMPLETED' | 'FILTER_VAL_UNSUBSCRIBED' | 'FILTER_VAL_ACTIVE' | 'FILTER_LEAD_INTERESTED' | 'FILTER_LEAD_NOT_INTERESTED' | 'FILTER_LEAD_MEETING_BOOKED' | 'FILTER_LEAD_MEETING_COMPLETED' | 'FILTER_LEAD_CLOSED' | 'FILTER_LEAD_OUT_OF_OFFICE' | 'FILTER_LEAD_WRONG_PERSON' | 'FILTER_LEAD_LOST' | 'FILTER_LEAD_NO_SHOW' | 'FILTER_LEAD_CUSTOM_LABEL_POSITIVE' | 'FILTER_LEAD_CUSTOM_LABEL_NEGATIVE' | 'FILTER_VAL_BOUNCED' | 'FILTER_VAL_SKIPPED' | 'FILTER_VAL_RISKY' | 'FILTER_VAL_INVALID' | 'FILTER_VAL_VALID' | 'FILTER_VAL_IN_SUBSEQUENCE' | 'FILTER_VAL_OPENED_NO_REPLY' | 'FILTER_VAL_COMPLETED_NO_REPLY' | 'FILTER_VAL_NO_OPENS' | 'FILTER_VAL_REPLIED' | 'FILTER_VAL_LINK_CLICKED' — The filter to apply to the leads.
  - `campaign` string, uuid — The ID of the campaign to filter leads by.
  - `list_id` string, uuid — The ID of the list to filter leads by.
  - `in_campaign` boolean — Whether the leads are in the campaign.
  - `in_list` boolean — Whether the leads are in the list.
  - `organization_user_ids` string[], required
  - `smart_view_id` string, uuid — The ID of the smart view to filter leads by.
  - `ids` string[] — The IDs of the leads to filter by.
  - `limit` integer — The limit of the number of leads to return.
  - `queries` object[]
    - `actionType` 'reply' | 'email-open' | 'last-contacted' | 'link-click' | 'lead-status' | 'lead-status-change', required
    - `values` object, required
      - `occurrence-days` number
      - `occurrence-count` object
        - `condition` 'more' | 'less' | 'equal'
        - `count` number
      - `lead-status` object
        - `status` number
        - `condition` 'is' | 'is-not'
  - `assigned_to` string, uuid — Filter leads by their current owner (the user they are currently assigned to).
  - `has_clause` boolean — Whether this endpoint should list data based on the filters currently applied in the web app.

## Response `202`

Default Response

- object
  - `status` string
  - `message` string

## Other responses

- `400` — Default Response
- `401` — This request is unauthorized (either the Authorization header is missing or invalid, or the API key has been revoked)
- `402` — This request cannot be fulfilled because the workspace does not have an active paid plan
- `404` — The requested resource was not found
- `429` — You have exceeded the rate limit. Please check the rate limit docs for more information.

---

[API](https://skmtc.net/instantly/apis/api-explorer.md) · [All operations](https://skmtc.net/instantly/apis/api-explorer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/instantly/api-explorer/revisions/378d1e253fe7/schema)
