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

# Cancel a queued or processing batch job

> ⚠️ Deprecated — use [POST /v2/jobs/{processId}/cancel](https://docs.revenuebase.ai/api-reference/jobs/cancel-a-batch-job) instead. Sunset: Tue, 07 Jul 2026.

Marks a batch job for cancellation. Jobs in `QUEUED` state will not be processed. Jobs in `PROCESSING` state may not stop immediately.

**Errors**
- `400 already_cancelled` — Job is already `CANCELLED` or `CANCELLING`.
- `400 not_cancellable` — Job has status `COMPLETED` or `ERROR` and cannot be cancelled.
- `400` — Invalid `process_id` or job does not belong to your account.



## OpenAPI

````yaml https://api.revenuebase.ai/v1/openapi.json post /v1/cancel-process
openapi: 3.1.0
info:
  title: Revenuebase Email Verification
  description: >-
    This API provides endpoints for validating email addresses individually or
    through file uploads.
  version: 0.1.0
servers:
  - url: https://api.revenuebase.ai
security: []
paths:
  /v1/cancel-process:
    post:
      tags:
        - Email Processing
      summary: Cancel a queued or processing batch job
      description: >-
        ⚠️ Deprecated — use [POST
        /v2/jobs/{processId}/cancel](https://docs.revenuebase.ai/api-reference/jobs/cancel-a-batch-job)
        instead. Sunset: Tue, 07 Jul 2026.


        Marks a batch job for cancellation. Jobs in `QUEUED` state will not be
        processed. Jobs in `PROCESSING` state may not stop immediately.


        **Errors**

        - `400 already_cancelled` — Job is already `CANCELLED` or `CANCELLING`.

        - `400 not_cancellable` — Job has status `COMPLETED` or `ERROR` and
        cannot be cancelled.

        - `400` — Invalid `process_id` or job does not belong to your account.
      operationId: cancel_process_v1_cancel_process_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchEmailStatusRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchEmailStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
      security:
        - APIKeyHeader: []
components:
  schemas:
    BatchEmailStatusRequest:
      properties:
        process_id:
          type: integer
          title: Process Id
      type: object
      required:
        - process_id
      title: BatchEmailStatusRequest
    BatchEmailStatusResponse:
      properties:
        process_id:
          type: integer
          title: Process Id
        filename:
          type: string
          title: Filename
        current_status:
          type: string
          title: Current Status
        message:
          type: string
          title: Message
      type: object
      required:
        - process_id
        - filename
        - current_status
        - message
      title: BatchEmailStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-key

````