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

# Hybrid Job Compilation Log

> A presigned URL to the compilation log -- every lowering stage's IR text + the context.

The log is opaque text fetched whole, so it lives in S3 and this hands back a short-lived
URL rather than the bytes. Absent until the worker lowers (a failed compilation still has
one -- that is when it is most worth reading). Like the graph, it belongs to the current
run: a restart drops it and the re-run writes its own.

Returns:
    dict: ``{"url": "&lt;presigned GET&gt;"}``.

Raises:
    HTTPException: 404 if the job does not exist, is not accessible, is not a hybrid job,
        or has no compilation log.



## OpenAPI

````yaml https://api.haiqu.ai/openapi.json get /jobs/{job_id}/compilation-log
openapi: 3.1.0
info:
  title: Haiqu API
  summary: Haiqu RESTful API service.
  description: Cloud service providing the access to Haiqu cloud runtime
  contact:
    name: Haiqu Inc.
    url: https://haiqu.ai/
    email: info@haiqu.ai
  version: 1.8.1
servers: []
security: []
paths:
  /jobs/{job_id}/compilation-log:
    get:
      summary: Hybrid Job Compilation Log
      description: >-
        A presigned URL to the compilation log -- every lowering stage's IR text
        + the context.


        The log is opaque text fetched whole, so it lives in S3 and this hands
        back a short-lived

        URL rather than the bytes. Absent until the worker lowers (a failed
        compilation still has

        one -- that is when it is most worth reading). Like the graph, it
        belongs to the current

        run: a restart drops it and the re-run writes its own.


        Returns:
            dict: ``{"url": "&lt;presigned GET&gt;"}``.

        Raises:
            HTTPException: 404 if the job does not exist, is not accessible, is not a hybrid job,
                or has no compilation log.
      operationId: hybrid_job_compilation_log_jobs__job_id__compilation_log_get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyQuery: []
        - APIKeyHeader: []
components:
  schemas:
    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:
    APIKeyQuery:
      type: apiKey
      in: query
      name: HAIQU_API_KEY
    APIKeyHeader:
      type: apiKey
      in: header
      name: authorization

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.