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

# Create Exclusion List Endpoint

> Create an exclusion list (asynchronous materialization).

Lists are immutable in v1: to change one, create a new list and delete
the old. Up to 20 active lists per organization (40 for organizations
with extended exclusion limits).



## OpenAPI

````yaml https://api.sixtyfour.ai/openapi.json post /search/exclusion-lists
openapi: 3.1.0
info:
  title: Sixtyfour API
  description: >-
    Intelligence API for People and Entities. Deploy AI agents that investigate,
    resolve identities, map relationships, and surface risk signals
  contact:
    name: Sixtyfour
    url: https://sixtyfour.ai/
    email: support@sixtyfour.ai
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.sixtyfour.ai
    description: Production
security: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - name: org-chart
    description: Discover people inside a company and build org charts.
  - name: Search
    description: Run deep and filter searches over Sixtyfour's data.
  - name: Workflow
    description: Create, run, and manage enrichment workflows.
  - name: Workflow Schedules
    description: Create and manage recurring schedules for workflows.
  - name: Account
    description: Manage and inspect your account and credit balance.
  - name: Intelligence
    description: Verify identity attributes such as age using high-tier OSINT research.
paths:
  /search/exclusion-lists:
    post:
      tags:
        - Search
      summary: Create Exclusion List Endpoint
      description: |-
        Create an exclusion list (asynchronous materialization).

        Lists are immutable in v1: to change one, create a new list and delete
        the old. Up to 20 active lists per organization (40 for organizations
        with extended exclusion limits).
      operationId: create_exclusion_list_endpoint_search_exclusion_lists_post
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExclusionListRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateExclusionListResponse'
        '400':
          description: Request was rejected by the route's validation rules.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid request body
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid API key
        '403':
          description: Organization access is locked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: >-
                  This organization no longer has access to Sixtyfour. Contact
                  your representative at Sixtyfour.
        '422':
          description: Request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Unexpected server error. Retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Internal server error
components:
  schemas:
    CreateExclusionListRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 120
              minLength: 1
            - type: 'null'
          title: Name
          description: >-
            Required unless source.type is 'search_id' (defaults to a
            date-stamped name).
        entity_type:
          type: string
          enum:
            - person
            - company
          title: Entity Type
          default: person
        source:
          oneOf:
            - $ref: '#/components/schemas/ResourceHandleSource'
            - $ref: '#/components/schemas/InlineEntityIdsSource'
            - $ref: '#/components/schemas/SearchIdSource'
          title: Source
          discriminator:
            propertyName: type
            mapping:
              entity_ids:
                $ref: '#/components/schemas/InlineEntityIdsSource'
              resource_handle:
                $ref: '#/components/schemas/ResourceHandleSource'
              search_id:
                $ref: '#/components/schemas/SearchIdSource'
      type: object
      required:
        - source
      title: CreateExclusionListRequest
      examples:
        - name: Existing customers
          source:
            id_column: linkedin_url
            resource_handle_id: 8f14e45f-...
            type: resource_handle
        - name: Do not contact
          source:
            entity_ids:
              - john-doe-123
            type: entity_ids
        - entity_type: company
          name: Existing customer companies
          source:
            entity_ids:
              - '1441'
              - linkedin.com/company/openai
              - stripe.com
            type: entity_ids
        - source:
            max_results: 250000
            search_id: a1b2c3d4-...
            type: search_id
    CreateExclusionListResponse:
      properties:
        id:
          type: string
          title: Id
          description: >-
            Exclusion list ID; poll GET /search/exclusion-lists/{id} until
            ready.
        status:
          type: string
          title: Status
          description: Initial status, always 'pending'.
      type: object
      required:
        - id
        - status
      title: CreateExclusionListResponse
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      example:
        detail:
          - loc:
              - body
              - target_company
              - domain
            msg: Field required
            type: missing
            input: null
            ctx: {}
    ResourceHandleSource:
      properties:
        type:
          type: string
          const: resource_handle
          title: Type
        resource_handle_id:
          type: string
          title: Resource Handle Id
        id_column:
          anyOf:
            - type: string
            - type: 'null'
          title: Id Column
          description: >-
            CSV column containing entity identifiers. People: LinkedIn public
            IDs or profile URLs. Companies: numeric company IDs, LinkedIn
            company URLs/slugs, or exact website domains. Auto-detected when
            omitted.
      type: object
      required:
        - type
        - resource_handle_id
      title: ResourceHandleSource
      description: Build the list from an uploaded CSV (see POST /storage/csv/upload).
    InlineEntityIdsSource:
      properties:
        type:
          type: string
          const: entity_ids
          title: Type
        entity_ids:
          items:
            type: string
          type: array
          maxItems: 10000
          minItems: 1
          title: Entity Ids
      type: object
      required:
        - type
        - entity_ids
      title: InlineEntityIdsSource
      description: >-
        Build the list from inline identifiers (entity-generic).


        Person lists: LinkedIn public IDs or profile URLs. Company lists:
        numeric

        company IDs, LinkedIn company URLs/slugs, or exact website domains.
    SearchIdSource:
      properties:
        type:
          type: string
          const: search_id
          title: Type
        search_id:
          type: string
          title: Search Id
        max_results:
          type: integer
          maximum: 250000
          minimum: 1
          title: Max Results
          description: How many top search results to capture into the list.
          default: 250000
        exclude_public_ids:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 1000
            - type: 'null'
          title: Exclude Public Ids
          description: >-
            Optional people-mode inline exclusions to re-apply while replaying
            the saved search. `search_id` itself does not carry exclusions.
        exclude_entity_ids:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 1000
            - type: 'null'
          title: Exclude Entity Ids
          description: >-
            Optional inline exclusions to re-apply while replaying the saved
            search. People: LinkedIn public IDs/profile URLs. Companies: numeric
            company IDs, company URLs/slugs, or exact website domains.
        exclude_list_ids:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 10
            - type: 'null'
          title: Exclude List Ids
          description: >-
            Optional saved exclusion lists to re-apply while replaying the saved
            search. `search_id` itself does not carry exclusions.
      type: object
      required:
        - type
        - search_id
      title: SearchIdSource
      description: >-
        Build the list from the results of a saved search (mode must match
        entity_type).
    ValidationError:
      title: ValidationError
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            oneOf:
              - type: string
              - type: integer
          description: Path to the field that failed validation.
          example:
            - body
            - target_company
            - domain
        msg:
          type: string
          description: Human-readable error message.
          example: Field required
        type:
          type: string
          description: Error code (e.g. 'missing', 'value_error').
          example: missing
        input:
          description: The offending input value (any type, may be null).
          nullable: true
          example: null
        ctx:
          type: object
          description: Optional error context.
          additionalProperties: true
          example: {}

````