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

> Create an exclusion list.

It builds in the background: poll `GET /search/exclusion-lists/{list_id}` until `status` is `ready`. A list cannot
be changed; create a new one and delete the old. Up to 20 active lists per organization (40 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 companies: research 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:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - 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.
  - name: Atlas
    description: >-
      Start, continue and read Atlas investigations: attribution graph,
      workspace files, reports and exports.
paths:
  /search/exclusion-lists:
    post:
      tags:
        - Search
      summary: Create Exclusion List
      description: >-
        Create an exclusion list.


        It builds in the background: poll `GET
        /search/exclusion-lists/{list_id}` until `status` is `ready`. A list
        cannot

        be changed; create a new one and delete the old. Up to 20 active lists
        per organization (40 with extended

        exclusion limits).
      operationId: create_exclusion_list_endpoint_search_exclusion_lists_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExclusionListRequest'
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateExclusionListResponse'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Invalid request body
                code: bad_request
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Invalid API key
                code: unauthenticated
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
        '403':
          description: Organization access is locked.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: >-
                  This organization no longer has access to Sixtyfour. Contact
                  your representative at Sixtyfour.
                code: forbidden
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
        '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:
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Internal server error
                code: internal_error
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
        '503':
          description: >-
            Temporarily unavailable. Nothing was charged; retry after the
            `Retry-After` header.
          content:
            application/json:
              schema:
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    description: Stable error code, for programs.
                  correlation_id:
                    type: string
                    description: >-
                      This request's ID, also in `X-Correlation-ID`. Quote it to
                      support.
                type: object
              example:
                detail: Could not verify the API key right now. Retry shortly.
                code: unavailable
                correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
components:
  schemas:
    CreateExclusionListRequest:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 200
              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: '#/components/schemas/InlineEntityIdsSource'
              resource_handle: '#/components/schemas/ResourceHandleSource'
              search_id: '#/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'
        code:
          type: string
          description: Stable error code, for programs.
        correlation_id:
          type: string
          description: This request's ID, also in `X-Correlation-ID`. Quote it to support.
      example:
        detail:
          - loc:
              - body
              - target_company
              - domain
            msg: Field required
            type: missing
            input: null
            ctx: {}
        code: invalid_request
        correlation_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
    ResourceHandleSource:
      properties:
        type:
          type: string
          const: resource_handle
          title: Type
        resource_handle_id:
          type: string
          maxLength: 200
          title: Resource Handle Id
        id_column:
          anyOf:
            - type: string
              maxLength: 100000
            - 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
            maxLength: 2048
          type: array
          maxItems: 10000
          minItems: 1
          title: Entity Ids
      type: object
      required:
        - type
        - entity_ids
      title: InlineEntityIdsSource
      description: >-
        Build the list from identifiers sent in the request.


        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
          maxLength: 200
          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
                maxLength: 2048
              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
                maxLength: 2048
              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
                maxLength: 200
              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: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Sixtyfour API key.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        An OAuth access token from `POST /oauth/token`, sent as `Authorization:
        Bearer <token>`. An API key sent as a bearer token is refused with 401.
        When both headers are sent, the bearer token is used.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.