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

# List all batch jobs

> Find batch jobs across active, completed, cancelled, and failed states.

## Credits and plans

PAYG is Pay-as-you-go. AYCE is All-you-can-eat.

| Usage | PAYG | AYCE |
| - | - | - |
| This request | **Free**<br />0 credits | **Free**<br />0 credits |

These job endpoints manage **Email Verification batches**. Contact and company exports use `exportId` and their own export status endpoints.

## When to use this endpoint

Find a completed job for downloading, recover a lost process\_id, or inspect a failed run. You can filter by one status.

## Example

Set `REVENUEBASE_API_KEY` to your API key.

```bash
curl --request GET 'https://api.revenuebase.ai/v2/jobs/all?page=1&batch=10' \
  --header "X-Key: $REVENUEBASE_API_KEY"
```

Response captured from the local test API on October 13, 2026. Results can change as the dataset or account changes.

```json
{
  "processes": [],
  "page": 1,
  "batch": 10,
  "total": 0
}
```

## Pagination and results

| Field or input | Meaning |
| - | - |
| `page` | 1-based page number; default 1. |
| `batch` | Jobs per page; default 10, maximum 100. |
| `total` | Number of matching jobs, rather than emails. |
| `processes` | Job records, each with a process\_id, filename, status, message, and timestamps. |
| `total_emails`, `valid_emails`, `invalid_emails` | Email counters on each job; values can be zero while processing. |
| `credits_used` | Verification credits recorded for the job. Metadata has no surcharge. |

Set `status` to QUEUED, PROCESSING, COMPLETED, ERROR, CANCELLING, or CANCELLED to narrow the list.

Results are scoped to your own jobs. Increment page until you have read the total; new activity can change the list between requests. Save process\_id instead of relying on a job's position.

## Next steps

[Get a job's status](/api-reference/jobs/get-batch-job-status), [cancel it](/api-reference/jobs/cancel-a-batch-job), or [download its output](/api-reference/jobs/download-batch-job-results).


## OpenAPI

````yaml /api-reference/v2/email-openapi.json get /v2/jobs/all
openapi: 3.1.0
info:
  title: Revenuebase API v2
  version: 0.1.0
servers:
  - url: https://api.revenuebase.ai
security: []
paths:
  /v2/jobs/all:
    get:
      tags:
        - Jobs
      summary: List all batch jobs
      description: >-
        Returns all batch jobs for your account across every status (`QUEUED`,
        `PROCESSING`, `COMPLETED`, `ERROR`, `CANCELLING`, `CANCELLED`). Results
        are paginated; use `page` and `batch` to navigate. Optionally filter by
        a single `status`.
      operationId: list_all_jobs_v2_jobs_all_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number (1-based).
            default: 1
            title: Page
          description: Page number (1-based).
        - name: batch
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Number of jobs per page.
            default: 10
            title: Batch
          description: Number of jobs per page.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - QUEUED
                  - PROCESSING
                  - COMPLETED
                  - ERROR
                  - CANCELLING
                  - CANCELLED
                type: string
              - type: 'null'
            description: When set, only jobs with this status are returned.
            title: Status
          description: When set, only jobs with this status are returned.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueuedProcessesResponse'
              example:
                processes: []
                page: 1
                batch: 10
                total: 0
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    QueuedProcessesResponse:
      properties:
        processes:
          items:
            $ref: '#/components/schemas/Process'
          type: array
          title: Processes
        page:
          type: integer
          title: Page
        batch:
          type: integer
          title: Batch
        total:
          type: integer
          title: Total
      type: object
      required:
        - processes
        - page
        - batch
        - total
      title: QueuedProcessesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Process:
      properties:
        process_id:
          type: integer
          title: Process Id
        filename:
          type: string
          title: Filename
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
        last_updated:
          type: string
          format: date-time
          title: Last Updated
        total_emails:
          type: integer
          title: Total Emails
          default: 0
        valid_emails:
          type: integer
          title: Valid Emails
          default: 0
        invalid_emails:
          type: integer
          title: Invalid Emails
          default: 0
        credits_used:
          type: integer
          title: Credits Used
          default: 0
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
      type: object
      required:
        - process_id
        - filename
        - status
        - message
        - last_updated
      title: Process
    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

````

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