---
title: "Add items to exclusion list"
method: POST
path: "/v2/exclusion-lists/items"
tags: ["Exclusion Lists"]
---

# Add items to exclusion list

`POST /v2/exclusion-lists/items`

## Request

- Base URL: `https://api.ocean.io`
- URL: `https://api.ocean.io/v2/exclusion-lists/items`
- Auth: none declared

Add people (LinkedIn handles) or companies (domains) to an exclusion list. Creates a new list when `listId` is omitted. Items are company domains in a companies list and LinkedIn handles in a people list. A URL is reduced to its domain or LinkedIn handle (`https://www.linkedin.com/in/john-doe/` is stored as `john-doe`). Each request accepts up to 10,000 items. A list holds up to 300,000 items, or your plan's exclusion limit if it is lower. A request that would take the list past that limit returns a 400 and adds nothing.

## Query parameters

- `apiToken` string, nullable

## Headers

- `x-api-token` string, nullable

## Request body

- AddListItemsRequest
  - `type` 'people' | 'companies', required: Whether the list holds people or companies.
  - `listId` string, nullable: List to add items to. A new list is created when omitted.
  - `items` string[], required: Company domains or LinkedIn handles to add, up to 10,000 per request. Items are company domains in a companies list and LinkedIn handles in a people list. A URL is reduced to its domain or LinkedIn handle (`https://www.linkedin.com/in/john-doe/` is stored as `john-doe`).

## Response `200`

Successful Response

- ListIdResponse
  - `listId` string, required: Unique id of the list.

## Other responses

- `400`: Bad Request
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation Error
- `429`: Too Many Requests

## Changes

- **2026-10-12** `82337760de72`: 1 info
  - added the non-success response with the status `429`
- **2026-10-07** `e2fea9198213`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ocean/apis/ocean-io-api-documentation/changes/v2/exclusion-lists/items/post.md)

---

[API](https://skmtc.dev/ocean/apis/ocean-io-api-documentation.md) - [All operations](https://skmtc.dev/ocean/apis/ocean-io-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/ocean/apis/ocean-io-api-documentation/revisions/9c29c521c694?raw)
