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

# Get scan status

> Lightweight endpoint for polling a scan until it completes.

Returns a minimal payload with the scan's current status. Use this for polling; the response omits the findings summary that `GET /scans/{id}` computes.

<Info>**Scope required**: `read`</Info>

## Recommended polling

A poll interval of **10-30 seconds** is sufficient. Pentest scans complete on the order of minutes; tighter polling provides no additional signal and consumes the [rate limit](/api-reference/rate-limits) quota.

Stop polling when `status` reaches a terminal value: `completed`, `failed`, `stopped`, `cancelled`, or `skipped`.


## OpenAPI

````yaml GET /scans/{id}/status
openapi: 3.0.0
info:
  title: Hacktron REST API
  description: Public REST API for programmatic access to Hacktron
  version: '1.0'
  contact: {}
servers:
  - url: https://api.hacktron.ai/v1
security:
  - api-key: []
tags: []
paths:
  /scans/{id}/status:
    get:
      tags:
        - REST API - Scans
      summary: Get scan status
      operationId: RestScanController_getStatus
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestScanStatusResponseDto'
components:
  schemas:
    RestScanStatusResponseDto:
      type: object
      properties:
        id:
          type: string
        task_id:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - stopped
            - cancelled
            - skipped
            - pending_verification
            - pending_triage
            - draft
            - estimating
            - estimated
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - task_id
        - status
        - created_at
        - updated_at
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-Api-Key

````