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

# Delete Workspace Blocked Leads

> Removes leads from the workspace-level blocked list, allowing them to receive campaign messages again. This endpoint unblocks previously blocked LinkedIn profiles across all campaigns in the workspace.

## Overview

Removes leads from the workspace-level blocked list, allowing them to receive campaign messages again. This endpoint unblocks previously blocked LinkedIn profiles across all campaigns in the workspace.

## Use Cases

* **Unblock Globally**: Remove leads from workspace-wide blocked list
* **Re-enable Contact**: Allow previously blocked leads to be contacted again
* **Correct Mistakes**: Restore leads that were blocked by error
* **Update Compliance List**: Remove contacts from the exclusion list when appropriate

## Authentication

All requests require an API key passed in the `x-api-key` header. You can generate your API key from the WaLead dashboard.

## Example Request

```bash theme={null}
curl -X DELETE https://app-api.walead.ai/api/v1/blocked-leads \
  -H "x-api-key: YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '[
    "blocked-lead-id-1",
    "blocked-lead-id-2",
    "blocked-lead-id-3"
  ]'
```

## Request Details

This endpoint requires an API key for authentication and accepts an array of blocked lead IDs to remove.

### Request Body

The body should be an array of strings containing the IDs of the blocked lead records to delete:

```json theme={null}
[
  "blocked-lead-id-1",
  "blocked-lead-id-2",
  "blocked-lead-id-3"
]
```

### Getting Blocked Lead IDs

Use the `GET /v1/blocked-leads` endpoint to retrieve the list of blocked leads with their IDs before attempting to delete them.

## Important Notes

* The request body must be an array of blocked lead IDs (not public identifiers)
* The IDs must correspond to existing blocked lead records in your workspace
* You can unblock multiple leads in a single request
* Once unblocked, leads can be added to campaigns and receive messages
* This affects **all campaigns** in the workspace
* This is a public route that requires API key authentication

## Workflow Example

1. Call `GET /v1/blocked-leads` to retrieve blocked leads and their IDs
2. Identify which leads you want to unblock
3. Call this endpoint with the array of IDs to remove them from the blocked list


## OpenAPI

````yaml DELETE /v1/blocked-leads
openapi: 3.1.0
info:
  title: WaLead API
  description: >-
    WaLead Public API for managing LinkedIn outreach campaigns, leads, and
    analytics
  version: 1.0.0
  contact:
    name: WaLead Support
    url: https://walead.ai
servers:
  - url: https://app-api.walead.ai/api
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /v1/blocked-leads:
    delete:
      summary: Delete Workspace Blocked Leads
      description: >-
        Removes leads from the workspace-level blocked list, allowing them to
        receive campaign messages again. This endpoint unblocks previously
        blocked LinkedIn profiles across all campaigns in the workspace.
      requestBody:
        description: Array of blocked lead IDs to remove
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
              description: Array of blocked lead record IDs to delete
        required: true
      responses:
        '200':
          description: Leads unblocked successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the operation was successful
                  message:
                    type: string
                    description: Response message
                  unblocked:
                    type: integer
                    description: Number of leads unblocked
        '400':
          description: Bad request - array of IDs is required and must not be empty
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid API Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Generate from your WaLead dashboard.

````