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

# Get job documents

> Retrieve a paginated list of documents attached to a job, including job descriptions, contracts, offer letters, and legal documents. Stored files receive short-lived signed download URLs; re-fetch when a URL expires. Pass include_text=true to receive extracted plain-text content when it is available.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /v1/jobs/{id}/documents
openapi: 3.1.0
info:
  title: Stardex API (v1)
  version: 1.0.0
  description: >-
    Stardex ATS API — manage candidates, jobs, companies, and recruiting
    workflows.
servers:
  - url: https://api.stardex.ai
    description: Production API server
security:
  - bearerAuth: []
tags:
  - name: Persons
    description: Manage person records — contacts, work history, and custom fields.
  - name: Jobs
    description: Manage job postings — pipeline stages, team members, and custom fields.
  - name: Candidates
    description: Manage candidate records and pipeline stage transitions.
  - name: Companies
    description: Browse and retrieve company records.
  - name: Lists
    description: Create, search, and retrieve saved person and company lists.
  - name: Person Activities
    description: Create and manage activity records (notes, emails, meetings) for persons.
  - name: Team Members
    description: List team members for use in search filters and assignments.
  - name: Custom Fields
    description: Retrieve custom field definitions and tag options for search filters.
paths:
  /v1/jobs/{id}/documents:
    get:
      tags:
        - Jobs
      summary: Get job documents
      description: >-
        Retrieve a paginated list of documents attached to a job, including job
        descriptions, contracts, offer letters, and legal documents. Stored
        files receive short-lived signed download URLs; re-fetch when a URL
        expires. Pass include_text=true to receive extracted plain-text content
        when it is available.
      operationId: getJobDocuments
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            description: Job UUID
        - schema:
            type:
              - integer
              - 'null'
            minimum: 0
            default: 0
            description: Records to skip for pagination. Defaults to 0.
          required: false
          name: offset
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 100
            description: Max records per page (1–100). Defaults to 100.
          required: false
          name: limit
          in: query
        - schema:
            type:
              - boolean
              - 'null'
            default: false
            description: >-
              When true, includes extracted plain-text content when available.
              Omit or pass false for metadata and links only.
          required: false
          name: include_text
          in: query
        - schema:
            type: string
            description: >-
              Comma-separated document type keys to filter by. Seeded values:
              job_description, offer_letter, contract, legal_document, other.
          required: false
          name: document_types
          in: query
      responses:
        '200':
          description: Documents fetched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobDocumentsResponse'
              example:
                success: true
                data:
                  - created_at: '2026-08-06T13:00:00Z'
                    updated_at: '2026-08-06T13:00:00Z'
                    type: job_description
                    title: Senior Software Engineer Job Description.pdf
                    link: >-
                      https://project.supabase.co/storage/v1/object/sign/job-documents/example
                    text_content: >-
                      Senior Software Engineer role focused on distributed
                      systems.
                    char_count: 61
                    truncated: false
                meta:
                  total: 1
                  offset: 0
                  limit: 20
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
components:
  schemas:
    JobDocumentsResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: array
          items:
            $ref: '#/components/schemas/JobDocument'
        meta:
          type: object
          properties:
            total:
              type: number
              description: Total matching records across all pages.
            offset:
              type: number
              description: Current pagination offset.
            limit:
              type: number
              description: Page size used for this request.
          required:
            - total
            - offset
            - limit
      required:
        - success
        - data
        - meta
    JobDocument:
      type: object
      properties:
        created_at:
          type:
            - string
            - 'null'
          description: ISO 8601 timestamp when the document was uploaded.
        updated_at:
          type:
            - string
            - 'null'
          description: ISO 8601 timestamp when the document was last updated.
        type:
          type: string
          description: Team-defined document type key.
        title:
          type:
            - string
            - 'null'
          description: Document title or filename.
        link:
          type: string
          description: >-
            Document link. Stored-file links are short-lived and should be
            re-fetched after they expire.
        text_content:
          type:
            - string
            - 'null'
          description: >-
            Extracted plain-text document content. Included only when
            include_text=true and text is available.
        char_count:
          type: number
          description: >-
            Number of characters returned in text_content. Included only when
            include_text=true.
        truncated:
          type: boolean
          description: >-
            Whether text_content was truncated due to response size limits.
            Included only when include_text=true.
      required:
        - created_at
        - updated_at
        - type
        - title
        - link
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Authenticate with a Bearer token: API key, OAuth token, or session
        token.

````