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

# Check Extraction Status

> Check the status of an asynchronous extraction task

<Note>
  This API requires authentication. See our [Authentication Guide](/common/authentication) for details.
</Note>

### Path Parameters

<ParamField path="task_id" type="string" required>
  UUID of the extraction task
</ParamField>

### Status Values

* **PROCESSING**: Task is currently being processed
* **COMPLETED**: Task has completed successfully
* **FAILED**: Task has failed

When status is COMPLETED, the response will include the extraction results.
When status is FAILED, the response will include error information.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.appliedai.club/api/extractor/v1/extract-status/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.appliedai.club/api/extractor/v1/extract-status/550e8400-e29b-41d4-a716-446655440000"
  headers = {
      "Authorization": "YOUR_API_KEY"
  }

  response = requests.get(url, headers=headers)
  result = response.json()
  print(result)
  ```
</RequestExample>


## OpenAPI

````yaml GET /api/extractor/v1/extract-status/{task_id}
openapi: 3.1.0
info:
  title: Image Extraction API
  description: Extract structured data from images and PDFs
  version: 1.0.0
servers: []
security:
  - APIKeyHeader: []
paths:
  /api/extractor/v1/extract-status/{task_id}:
    get:
      tags:
        - extractor
      summary: Check Extraction Task Status
      description: >-
        Check the status of an asynchronous extraction task and retrieve results
        if available.
            
            **Status Values:**
            * PROCESSING: Task is currently being processed
            * COMPLETED: Task has completed successfully
            * FAILED: Task has failed
            
            When status is COMPLETED, the response will include the extraction results.
            When status is FAILED, the response will include error information.
      operationId: get_extraction_status_api_extractor_v1_extract_status__task_id__get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            description: UUID of the extraction task
            title: Task Id
          description: UUID of the extraction task
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtractionStatusResponse'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
          description: Too Many Requests
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetail'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ExtractionStatusResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        status:
          $ref: '#/components/schemas/BatchProcessingStatus'
        total_files:
          type: integer
          title: Total Files
          default: 1
        processed_files:
          type: integer
          title: Processed Files
          default: 0
        failed_files:
          type: integer
          title: Failed Files
          default: 0
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
        results:
          anyOf:
            - type: object
            - type: 'null'
          title: Results
        errors:
          anyOf:
            - type: string
            - type: 'null'
          title: Errors
      type: object
      required:
        - task_id
        - status
        - created_at
        - updated_at
      title: ExtractionStatusResponse
      description: Response model for extraction status check
    AuthError:
      properties:
        detail:
          type: string
          title: Detail
        error_code:
          type: string
          title: Error Code
          default: unauthorized
      type: object
      required:
        - detail
      title: AuthError
      description: Authentication error response schema
    ErrorDetail:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: ErrorDetail
      description: Standard error response schema
    ValidationError:
      properties:
        detail:
          items:
            type: object
          type: array
          title: Detail
      type: object
      required:
        - detail
      title: ValidationError
      description: Validation error response schema
    RateLimitError:
      properties:
        detail:
          type: string
          title: Detail
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After
      type: object
      required:
        - detail
      title: RateLimitError
      description: Rate limit error response schema
    BatchProcessingStatus:
      type: string
      enum:
        - processing
        - retrying
        - completed
        - failed
      title: BatchProcessingStatus
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization
      description: Enter your API key

````