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

# Poll a bulk-delete background job

> Returns the progress of a background bulk job created by `DELETE /api/contacts/query-bulk-delete`. Jobs live in an in-memory store and expire some time after completion; the response includes the cumulative `processed` count and the final `status` (`pending` while running, `completed`, or `failed`). Scoped to the caller's organization — SUPERADMIN can poll any org's jobs. Returns 404 for unknown/expired job IDs or jobs the caller does not own (no information leak).



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/contacts/bulk-job/{jobId}
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/contacts/bulk-job/{jobId}:
    get:
      tags:
        - Contacts
      summary: Poll a bulk-delete background job
      description: >-
        Returns the progress of a background bulk job created by `DELETE
        /api/contacts/query-bulk-delete`. Jobs live in an in-memory store and
        expire some time after completion; the response includes the cumulative
        `processed` count and the final `status` (`pending` while running,
        `completed`, or `failed`). Scoped to the caller's organization —
        SUPERADMIN can poll any org's jobs. Returns 404 for unknown/expired job
        IDs or jobs the caller does not own (no information leak).
      operationId: get_contact_bulk_job
      parameters:
        - in: path
          name: jobId
          required: true
          description: Job UUID returned by `DELETE /api/contacts/query-bulk-delete`.
          schema:
            type: string
      responses:
        '200':
          description: Job status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactBulkJobStatusResponse'
        '404':
          description: Job not found, expired, or not owned by caller's organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ContactBulkJobStatusResponse:
      type: object
      description: >-
        Progress snapshot for a background bulk job (currently
        `query-bulk-delete`). `processed` counts records cumulatively across all
        batches; `total` is set to the final count when the job completes.
      properties:
        jobId:
          type: string
        status:
          type: string
          enum:
            - pending
            - completed
            - failed
        processed:
          type: integer
        total:
          type: integer
        error:
          type: string
          description: Present only when `status` is `failed`.
      required:
        - jobId
        - status
        - processed
        - total
      additionalProperties: true
      example:
        jobId: b09c2c61-2f8f-4f02-9c1b-2f23a3a2f9c1
        status: pending
        processed: 1500
        total: 0
    LegacyErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        data: {}
      additionalProperties: true
      example:
        error: Attachment not found
        message: Attachment not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````