> ## 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.

# Get Campaign Blocked Leads

> Retrieves the list of blocked leads for a specific campaign. This endpoint returns all LinkedIn profiles that have been blocked from receiving messages in this campaign.

## Overview

Retrieves the list of blocked leads for a specific campaign. This endpoint returns all LinkedIn profiles that have been blocked from receiving messages in this campaign.

## Use Cases

* **Audit Blocked Contacts**: Review which leads have been blocked in your campaign
* **Export Blocked List**: Get a list of all blocked contacts for reporting purposes
* **Verification**: Confirm that specific leads have been successfully blocked

## 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 GET 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"
```

## Request Details

This endpoint requires an API key for authentication and supports pagination through optional query parameters.

### Query Parameters

* **skip** (optional): Number of records to skip for pagination (default: 0)
* **take** (optional): Number of records to return (default: 10, max: 100)

## Response

The response includes an array of blocked leads with their details:

* **publicIdentifier**: The LinkedIn public identifier of the blocked lead
* **reason**: Optional reason for blocking (if provided when blocking)
* **createdAt**: Timestamp when the lead was blocked

## Important Notes

* This endpoint requires API key authentication
* Results are paginated to optimize performance
* Use `skip` and `take` parameters to navigate through large lists of blocked leads
* Blocked leads in a campaign are specific to that campaign only


## OpenAPI

````yaml GET /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:
    get:
      summary: Get Campaign Blocked Leads
      description: >-
        Retrieves the list of blocked leads for a specific campaign. This
        endpoint returns all LinkedIn profiles that have been blocked from
        receiving messages in this campaign.
      parameters:
        - name: campaignId
          in: path
          description: Campaign ID
          required: true
          schema:
            type: string
        - name: skip
          in: query
          description: 'Number of records to skip for pagination (default: 0)'
          schema:
            type: integer
            default: 0
        - name: take
          in: query
          description: 'Number of records to return (default: 10, max: 100)'
          schema:
            type: integer
            default: 10
            maximum: 100
      responses:
        '200':
          description: Blocked leads retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    publicIdentifier:
                      type: string
                      description: LinkedIn public identifier
                    reason:
                      type: string
                      nullable: true
                      description: Reason for blocking
                    createdAt:
                      type: string
                      format: date-time
                      description: Timestamp when the lead was blocked
        '401':
          description: Unauthorized - Invalid API Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Campaign not found
          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.

````