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

# Get run

> Check the status and results of a pipeline run

Poll this endpoint to check whether a pipeline run has completed. When `status` is `COMPLETED`, the `result` field contains the output data.

This endpoint works for any pipeline type (hiring signals, enrichment, etc.). The `run_id` is returned when you trigger a pipeline (e.g., from [find leavers](/api-reference/endpoint/find-leavers)).

<Note>
  Poll every 10 seconds for small runs. For larger runs, poll every 30 seconds. Most runs complete within 30-90 seconds depending on the pipeline and data volume.
</Note>

## Example responses

<Accordion title="Completed (hiring signals leavers)">
  ```json theme={null}
  {
    "run_id": "019d678b-c737-213f-f6b2-ed713064874d",
    "status": "COMPLETED",
    "result": {
      "costs": {
        "exa_cost": 0.072,
        "openrouter_cost": 0.001564,
        "ai_ark_credits_consumed": -30186.2
      },
      "summary": {
        "leavers_count": 1,
        "new_company_dms_count": 3,
        "old_company_dms_count": 3
      },
      "leavers_url": "https://tmpfiles.org/dl/12345/acme_leavers.csv",
      "new_company_dms_url": "https://tmpfiles.org/dl/12346/acme_new_company_dms.csv",
      "old_company_dms_url": "https://tmpfiles.org/dl/12347/acme_old_company_dms.csv"
    },
    "started_at": "2026-04-07T11:36:38.725680Z",
    "finished_at": "2026-04-07T11:37:18.319535Z"
  }
  ```
</Accordion>

<Accordion title="Failed">
  ```json theme={null}
  {
    "run_id": "019d678b-c737-213f-f6b2-ed713064874d",
    "status": "FAILED",
    "result": {
      "error": {
        "message": "401 Client Error: Unauthorized",
        "step_id": "fetch_contacts"
      }
    },
    "started_at": "2026-04-07T11:36:38.725680Z",
    "finished_at": "2026-04-07T11:36:40.057865Z"
  }
  ```
</Accordion>


## OpenAPI

````yaml openapi.json GET /v1/runs/{run_id}
openapi: 3.1.0
info:
  title: Automindz API
  version: 0.1.0
servers:
  - url: https://api.automindz.co
    description: Production
security: []
paths:
  /v1/runs/{run_id}:
    get:
      tags:
        - runs
      summary: Get Run
      operationId: get_run_v1_runs__run_id__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RunResponse:
      properties:
        run_id:
          type: string
          title: Run Id
          description: The unique identifier for this run.
        status:
          type: string
          title: Status
          description: 'Current status: QUEUED, RUNNING, COMPLETED, or FAILED.'
        result:
          anyOf:
            - {}
            - type: 'null'
          title: Result
          description: >-
            Pipeline output. Structure varies by endpoint. null while in
            progress.
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
          description: ISO 8601 timestamp when the run started.
        finished_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Finished At
          description: ISO 8601 timestamp when the run completed. null while in progress.
      type: object
      required:
        - run_id
        - status
      title: RunResponse
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````