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

# Cancel Enrichment

> Use this endpoint to stop a contact enrichment that is in progress.

* Only enrichments with the status `IN_PROGRESS` can be canceled. Other statuses return `409` with the code `error.enrichment.not_cancelable`.
* Contacts that are not finished are canceled. Contacts finished before the cancel keep their results.
* To get those results, call [Get Enrichment Result](https://docs.fullenrich.com/api/v2/contact/enrich/bulk/get.md). The status is `CANCELED`.
* This endpoint cancels contact enrichments only. A reverse email lookup ID returns `404`.


## OpenAPI

````yaml api/v2/reference/openapi.yaml POST /contact/enrich/bulk/{enrichment_id}/cancel
openapi: 3.1.0
info:
  title: FullEnrich API Documentation
  version: 2.0.0
  description: >
    FullEnrich API enables you to enrich B2B contacts with emails and phone
    numbers using data from 20+ providers.


    We are GDPR and CCPA compliant.
servers:
  - url: https://app.fullenrich.com/api/v2
security: []
paths:
  /contact/enrich/bulk/{enrichment_id}/cancel:
    post:
      summary: Cancel Bulk Enrich
      description: >-
        Stop a contact enrichment that is in progress. Contacts that are not
        finished are canceled. Results found before the cancel stay available
        with the Get Enrichment Result endpoint.
      operationId: CancelContactBulkEnrich
      parameters:
        - name: enrichment_id
          in: path
          required: true
          description: The unique identifier returned when the enrichment was started
          schema:
            type: string
          example: 2db5ea61-1752-42cf-8ea1-ab1da060cd0a
      responses:
        '200':
          description: OK. The enrichment is canceled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseCancelContactBulkEnrich'
              example:
                id: 2db5ea61-1752-42cf-8ea1-ab1da060cd0a
                name: Sales Operations in London
                status: CANCELED
                cost:
                  credits: 0
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: >-
            Not Found. The ID is not a valid UUID, does not exist, or is not a
            contact enrichment (for example, a reverse email lookup).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                EnrichmentNotFound:
                  value:
                    code: error.enrichment.not_found
                    message: Enrichment ID not found
        '409':
          description: >-
            Conflict. The enrichment is not in progress (for example, it is
            already finished or canceled).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                EnrichmentNotCancelable:
                  value:
                    code: error.enrichment.not_cancelable
                    message: Enrichment is not in progress and cannot be canceled
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                UnknownError:
                  value:
                    code: error.enrichment.unknown
                    message: An unmanaged error as been occurred
      security:
        - BearerAuth: []
components:
  schemas:
    ResponseCancelContactBulkEnrich:
      type: object
      properties:
        id:
          type: string
          format: uuid
          examples:
            - 2db5ea61-1752-42cf-8ea1-ab1da060cd0a
        name:
          type: string
          examples:
            - Sales Operations in London
        status:
          type: string
          description: Always CANCELED on success.
          enum:
            - CANCELED
        cost:
          $ref: '#/components/schemas/Cost'
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
    Cost:
      type: object
      properties:
        credits:
          type: integer
          format: int64
          description: Number of credits consumed for this enrichment
          examples:
            - 1
            - 0
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            AuthorizationHeaderNotSet:
              value:
                code: error.authorization.not_set
                message: Authorization headers not set
            AuthorizationHeaderNotBearer:
              value:
                code: error.authorization.not_bearer
                message: Authorization headers do not have prefix 'bearer'
            UnknownApiKey:
              value:
                code: error.api.key
                message: Unknown api key
    RateLimitExceeded:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: error.rate.limit
            message: Too many requests. Try again in 1m
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string

````

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