> ## 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 Campaign Blocked Leads

> Removes leads from the blocked list of a specific campaign, allowing them to receive campaign messages again. This endpoint unblocks previously blocked LinkedIn profiles.

## Overview

Removes leads from the blocked list of a specific campaign, allowing them to receive campaign messages again. This endpoint unblocks previously blocked LinkedIn profiles.

<Warning>
  **License Requirement**: This endpoint requires a **Pro** or **Agency** license to use.
</Warning>

## Use Cases

* **Unblock Contacts**: Remove leads from the blocked list to allow outreach
* **Correct Mistakes**: Restore leads that were blocked by error
* **Update Targeting**: Re-enable contact with leads that now match your criteria

## 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/campaigns/CAMPAIGN_ID/blocked-leads \
  -H "x-api-key: YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "publicIdentifiers": [
      "john-doe",
      "jane-smith"
    ]
  }'
```

## Request Details

This endpoint requires an API key for authentication and accepts an array of LinkedIn public identifiers to unblock.

### Request Body

The body should contain:

* **publicIdentifiers** (required): Array of LinkedIn public identifiers to unblock

### Public Identifiers

The `publicIdentifiers` field should contain LinkedIn profile identifiers (the username part of a LinkedIn URL). For example, from `linkedin.com/in/john-doe`, the public identifier would be `john-doe`.

## Important Notes

* **License Required**: Pro or Agency license is required to use this endpoint
* The `publicIdentifiers` array is required and must not be empty
* You can unblock multiple leads in a single request
* Unblocked leads will be able to receive campaign messages again
* This only affects the specific campaign's blocked list
* This is a public route that requires API key authentication


## OpenAPI

````yaml DELETE /v1/campaigns/{campaignId}/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/campaigns/{campaignId}/blocked-leads:
    delete:
      summary: Delete Campaign Blocked Leads
      description: >-
        Removes leads from the blocked list of a specific campaign, allowing
        them to receive campaign messages again. This endpoint unblocks
        previously blocked LinkedIn profiles.
      parameters:
        - name: campaignId
          in: path
          description: Campaign ID
          required: true
          schema:
            type: string
      requestBody:
        description: Public identifiers of leads to unblock
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddBlockedLeads'
        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 - publicIdentifiers 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'
        '403':
          description: Forbidden - Pro or Agency license required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Campaign not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AddBlockedLeads:
      type: object
      required:
        - publicIdentifiers
      properties:
        publicIdentifiers:
          type: array
          items:
            type: string
          description: >-
            Array of LinkedIn public identifiers to block (e.g., 'john-doe' from
            linkedin.com/in/john-doe)
    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.

````