# Remove Companies from List `POST https://api.getprospect.com/v2/companies/lists/remove` Takes companies out of one company list, by company id. They stay saved, and stay in their other lists. `removed` counts the companies that were in the list. Safe to repeat. Free: costs no credits. ## Authentication Pass your API key in the `x-api-key` header. ## Body parameters - `list_id` (string, required): The company list: an `id` from `GET /v2/lists?type=companies`. - `ids` (string[], required): Company ids (24 hex characters, as `POST /v2/companies/search` answers them), 1-500. ## Example request ```bash curl --request POST \ --url https://api.getprospect.com/v2/companies/lists/remove \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' \ --data ' { "list_id": "66f1a2b3c4d5e6f7a8b9c0e7", "ids": [ "5f8d0d55b54764421b7156c9", "5f8d0d55b54764421b7156d2" ] } ' ``` ## Response 200 How many companies left the list. ```json { "success": true, "data": { "removed": 2 }, "metadata": { "timestamp": "2026-10-08T12:00:00.000Z" } } ``` ## Response 400 Invalid body (`VALIDATION_ERROR` with `payload.code`), or `list_id` is not a live company list of this workspace (`VALIDATION_ERROR` without `payload`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T12:00:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "ids must contain at least 1 elements", "payload": { "field": "ids", "code": "out_of_range", "received_value": [], "received_type": "object", "constraints": { "arrayMinSize": "ids must contain at least 1 elements" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 429 Too many requests (`RATE_LIMIT`). Not sent today: this operation is not rate limited. ## Response 500 Unexpected server error.