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

# Get a validation job

> One validation job plus its per-address results. Poll this for progress and the final breakdown.

Requires the `read` permission.



## OpenAPI

````yaml GET /api/leads/validate/{jobId}
openapi: 3.1.0
info:
  title: ManyPI API
  description: >-
    The REST API behind ManyPI — AI lead generation, email validation,
    cold-email outreach, agent runs and web scraping. Every endpoint is
    authenticated with a ManyPI API key (`mpi_...`) or an OAuth 2.1 access
    token, and honours the permissions granted to that credential.
  version: 2.0.0
  contact:
    name: ManyPI Support
    email: support@manypi.com
    url: https://manypi.com
servers:
  - url: https://app.manypi.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Leads
    description: Find, store, enrich and manage leads.
  - name: Email validation
    description: Verify that lead addresses can receive mail.
  - name: Outreach
    description: Inboxes, sequences, campaigns, sending and replies.
  - name: Agent
    description: Agent runs, replies and skills.
  - name: Scraping
    description: Scrapers, runs and extracted data.
  - name: Endpoints
    description: Publish scrapers as typed REST endpoints.
  - name: Account
    description: Key validation and account information.
paths:
  /api/leads/validate/{jobId}:
    get:
      tags:
        - Email validation
      summary: Get a validation job
      description: >-
        One validation job plus its per-address results. Poll this for progress
        and the final breakdown.


        Requires the `read` permission.
      operationId: getValidationJob
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: items
          in: query
          description: Set to `false` to omit the per-address results.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
            default: 'true'
      responses:
        '200':
          description: The job and its results.
          content:
            application/json:
              schema:
                type: object
                properties:
                  job:
                    $ref: '#/components/schemas/ValidationJob'
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        email:
                          type: string
                        lead_id:
                          type: string
                          format: uuid
                          nullable: true
                        status:
                          type: string
                          enum:
                            - valid
                            - invalid
                            - catch_all
                            - no_mx
                            - disposable
                            - unknown
                        reason:
                          type: string
                          nullable: true
                        is_role:
                          type: boolean
                        smtp_code:
                          type: integer
                          nullable: true
                        billed:
                          type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ValidationJob:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
        source:
          type: string
          enum:
            - manual
            - enroll
            - agent
            - api
            - cron
        total:
          type: integer
        processed:
          type: integer
        billable:
          type: integer
        credits_charged:
          type: integer
        counts:
          type: object
          description: How many addresses landed in each status.
        error:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        finished_at:
          type: string
          format: date-time
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: >-
            A machine-readable code on gated failures: `lead_limit`,
            `outreach_locked`, `validation_credits_exhausted`.
  responses:
    Unauthorized:
      description: >-
        Missing, invalid or expired credential — or a key that lacks the
        permission this route requires.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such resource in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A ManyPI API key (`mpi_...`) from Settings → API keys, or an OAuth 2.1
        access token obtained through the MCP consent flow.

````